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>Jonesey95 (Fix Linter errors) |
||
| (2 intermediate revisions by one other user not shown) | |||
| 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 | ||
| Line 434: | Line 434: | ||
| LMG = Lamego | | LMG = Lamego | ||
| LRA = Leiria | | LRA = Leiria | ||
| − | | LSB = | + | | LSB = Lisbon |
| LLE = Loulé | | LLE = Loulé | ||
| LRS = Loures | | LRS = Loures | ||
| Line 619: | Line 619: | ||
| VZL = Vouzela | | VZL = Vouzela | ||
| {{#if:{{{2|}}}| {{{2}}} | {{{1}}} }} | | {{#if:{{{2|}}}| {{{2}}} | {{{1}}} }} | ||
| − | }}|< | + | }}|<span style="color:#000">{{uc:{{{1}}}}}</span>]]{{#if:{{{3|}}}|| }}</span><noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 07:11, 5 February 2020
[[{{{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|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. |