Template:CPT/doc

< Template:CPT

Usage

Creates an icon to identify a municipality in Portugal, using the municipal code (full list see Portuguese version of this list).

Examples:

  • "{{CPT|GRD}}" creates "GRD"
  • "{{CPT|fun}}" creates "FUN"
  • "{{CPT|mmn||sem_estilo}}" creates "MMN"

Behaves like Template:Colorbox if the code is not valid:

  • "{{CPT|CDFT|Cedofeita}}" creates "CDFT"
  • "{{CPT|XPTO}}" creates "XPTO"

With flag

If b is used, a simplified municipal flag will be dispayed:

  • "{{CPT|LSB|b=}}" creates "[[File:|x13px|border|bandeira]] LSB" (simplified)
  • "{{CPT|FAR|b=Pt-far1.png}}" creates "[[File:|x13px|border|bandeira]] FAR" (specified image)
  • "{{CPT|PLRG|Pelariga|b=Bandeira de Pelariga.jpg}}" creates "[[File:|x13px|border|bandeira]] PLRG" (municipal code not valid)
    • "{{CPT|XPTO||b=}}" creates "[[File:|x13px|border|bandeira]] XPTO"
  • "{{CPT|fig||sem_estilo|b=}}" creates "[[File:|x13px|border|bandeira]] FIG"