Difference between revisions of "Template:CPT/doc"

From blackwiki
Jump to navigation Jump to search
imported>Trinaliv
m
imported>Trinaliv
m (Correct.)
Line 3: Line 3:
 
== Usage ==
 
== Usage ==
  
Creates an icon to identify a municipality in Portugal, using the municipal code (full list [[pt:Lista de municípios de Portugal|here]]).
+
Creates an icon to identify a municipality in Portugal, using the municipal code (full list [[List of municipalities of Portugal|see Portuguese version of this list]]).
  
 
Examples:
 
Examples:

Revision as of 21:36, 21 May 2019

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|HRT|b=PT-HRT.GIF}}" creates "bandeiraHRT" (image doesn't exist)
  • "{{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"