Difference between revisions of "Template:CPT"

From blackwiki
Jump to navigation Jump to search
imported>Trinaliv
m
imported>Jonesey95
(Fix Linter errors)
 
Line 619: Line 619:
 
  | VZL = Vouzela
 
  | VZL = Vouzela
 
  | {{#if:{{{2|}}}| {{{2}}} | {{{1}}} }}
 
  | {{#if:{{{2|}}}| {{{2}}} | {{{1}}} }}
}}|<font color="#000">{{uc:{{{1}}}}}</font>]]{{#if:{{{3|}}}||&#8201;}}</span><noinclude>
+
}}|<span style="color:#000">{{uc:{{{1}}}}}</span>]]{{#if:{{{3|}}}||&#8201;}}</span><noinclude>
  
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 07:11, 5 February 2020

 [[{{{1}}}|{{{1}}}]] 

Template documentation[view] [edit] [history] [purge]

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"