Difference between revisions of "Template:CPT"
Jump to navigation
Jump to search
imported>Trinaliv (Translated from the corresponding Portuguese template, see its history for attribution.) |
imported>Trinaliv m (transl.) |
||
| Line 1: | Line 1: | ||
| − | {{#ifeq:{{{b|}}}|{{{b|-}}}|[[ | + | {{#ifeq:{{{b|}}}|{{{b|-}}}|[[File:{{#ifeq:{{{b}}}||{{#switch: {{uc:{{{1}}}}} |
| ABT = 23Flag(diagonalGyronny8)BY.svg | | ABT = 23Flag(diagonalGyronny8)BY.svg | ||
| AGD = 23Flag(diagonalGyronny8)YV.svg | | AGD = 23Flag(diagonalGyronny8)YV.svg | ||
Revision as of 20:38, 21 May 2019
[[{{{1}}}|{{{1}}}]]
Usage
Creates an icon to identify a municipality in Portugal, using the municipal code (full list see Portuguese version of this list).
Examples:
Behaves like Template:Colorbox if the code is not valid:
With flag
If b is used, a simplified municipal flag will be dispayed:
- "
{{CPT|LSB|b=}}" creates "bandeira LSB " (simplified) - "
{{CPT|FAR|b=Pt-far1.png}}" creates "bandeira FAR " (specified image) - "
{{CPT|PLRG|Pelariga|b=Bandeira de Pelariga.jpg}}" creates "bandeira PLRG " (municipal code not valid)- "
{{CPT|XPTO||b=}}" creates "
XPTO "
- "
- "
{{CPT|fig||sem_estilo|b=}}" creates "bandeira FIG"
| The above documentation is transcluded from Template:CPT/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |