Template:CPT/doc

From blackwiki
< Template:CPT
Revision as of 13:34, 15 March 2020 by imported>KylieTastic (error condition doesn't help)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 "bandeiraLSB" (simplified)
  • "{{CPT|FAR|b=Pt-far1.png}}" creates "bandeiraFAR" (specified image)
  • "{{CPT|PLRG|Pelariga|b=Bandeira de Pelariga.jpg}}" creates "bandeiraPLRG" (municipal code not valid)
    • "{{CPT|XPTO||b=}}" creates "bandeiraXPTO"
  • "{{CPT|fig||sem_estilo|b=}}" creates "bandeiraFIG"