Difference between revisions of "Template:CPT/doc"

From blackwiki
Jump to navigation Jump to search
imported>Trinaliv
m (Correct.)
imported>KylieTastic
(error condition doesn't help)
 
Line 18: Line 18:
 
* "<code>&#123;&#123;CPT|LSB|b=&#125;&#125;</code>" creates "{{CPT|LSB|b=}}" (simplified)
 
* "<code>&#123;&#123;CPT|LSB|b=&#125;&#125;</code>" creates "{{CPT|LSB|b=}}" (simplified)
 
* "<code>&#123;&#123;CPT|FAR|b=Pt-far1.png&#125;&#125;</code>" creates "{{CPT|FAR|b=Pt-far1.png}}" (specified image)
 
* "<code>&#123;&#123;CPT|FAR|b=Pt-far1.png&#125;&#125;</code>" creates "{{CPT|FAR|b=Pt-far1.png}}" (specified image)
** "<code>&#123;&#123;CPT|HRT|b=PT-HRT.GIF&#125;&#125;</code>" creates "{{CPT|HRT|b=PT-HRT.GIF}}" (image doesn't exist)
 
 
* "<code>&#123;&#123;CPT|PLRG|Pelariga|b=Bandeira de Pelariga.jpg&#125;&#125;</code>" creates "{{CPT|PLRG|Pelariga|b=Bandeira de Pelariga.jpg}}" (municipal code not valid)
 
* "<code>&#123;&#123;CPT|PLRG|Pelariga|b=Bandeira de Pelariga.jpg&#125;&#125;</code>" creates "{{CPT|PLRG|Pelariga|b=Bandeira de Pelariga.jpg}}" (municipal code not valid)
 
** "<code>&#123;&#123;CPT|XPTO||b=&#125;&#125;</code>" creates "{{CPT|XPTO||b=}}"
 
** "<code>&#123;&#123;CPT|XPTO||b=&#125;&#125;</code>" creates "{{CPT|XPTO||b=}}"

Latest revision as of 13:34, 15 March 2020

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"