Difference between revisions of "Template:Flag Institute"
From Wikishire
Line 1: | Line 1: | ||
− | {{#vardefine:tag|{{#switch:{{{1}}} | + | {{#vardefine:tag|{{#replace:{{#switch:{{{1}}} |
− | |United Kingdom | + | |United Kingdom |
− | |Union Flag= | + | |Union Flag=Union Flag |
− | | | + | |Penrith=penrith_cumberland |
− | | | + | |Petersfield=petersfield_hampshir |
− | |Isle of | + | |Isle of Portland |
− | | | + | |Portland, Dorset=portland_dorset |
− | | | + | |Preston=preston_lancashire |
− | | | + | |St Annes on Sea=stannesonthesea_lancashir |
− | | | + | |Belfast=Belfast_northernireland |
− | | | + | |Cardif=Cardiff_wales |
− | | | + | |Edinburgh=edinburgh_scotland |
− | |Wroxton | + | |Wing=wing-buckinghamshire |
− | |{{{1}}}}}}}http:// | + | |Wroxton=wroxton_oxfordshire |
+ | |{{{1}}}}}| ||}}http://www.flaginstitute.org/wp/flags/{{lc:{{#var:tag}}}}<noinclude> | ||
This template is used generate URLs at the [[Flag Institute]]. This template permits them to be accessed by name. The Flag Institute recently (2012) adopted an improved and more stable system of indexing index, but this template has allowed the change to be made in just one place, here, for all to work. | This template is used generate URLs at the [[Flag Institute]]. This template permits them to be accessed by name. The Flag Institute recently (2012) adopted an improved and more stable system of indexing index, but this template has allowed the change to be made in just one place, here, for all to work. |
Revision as of 00:20, 1 July 2013
{{#vardefine:tag|{{{1}}}http://www.flaginstitute.org/wp/flags/
This template is used generate URLs at the Flag Institute. This template permits them to be accessed by name. The Flag Institute recently (2012) adopted an improved and more stable system of indexing index, but this template has allowed the change to be made in just one place, here, for all to work.
Use {{Flag Institute|Yorkshire}}
to generate a URL such as http://www.flaginstitute.org/wp/flags/yorkshire-flag.
List of supported flags
(This makes it easy to check each link works correctly)