Difference between revisions of "Template:Flag Institute"

From Wikishire
Jump to: navigation, search
Line 1: Line 1:
{{#vardefine:tag|{{#switch:{{{1}}}
+
{{#vardefine:tag|{{#replace:{{#switch:{{{1}}}
|United Kingdom=Union_Flag
+
|United Kingdom
|Union Flag=Union_Flag
+
|Union Flag=Union Flag
|East Anglia=East_Anglia
+
|Penrith=penrith_cumberland
|Isles of Scilly=Isles_of_Scilly
+
|Petersfield=petersfield_hampshir
|Isle of Wight=Isle_of_Wight
+
|Isle of Portland
|Cinque Ports=Cinque_Ports
+
|Portland, Dorset=portland_dorset
|City of London=City_of_London
+
|Preston=preston_lancashire
|Finchfield, Staffordshire=Finchfield,_Staffordshire
+
|St Annes on Sea=stannesonthesea_lancashir
|Petersfield, Hampshire=Petersfield,_Hampshire
+
|Belfast=Belfast_northernireland
|Isle of Portland=Portland,_Dorset
+
|Cardif=Cardiff_wales
|Portland, Dorset=Portland,_Dorset
+
|Edinburgh=edinburgh_scotland
|Wroxton, Oxfordshire=Wroxton,_Oxfordshire
+
|Wing=wing-buckinghamshire
|{{{1}}}}}}}http://ukflagregistry.org/wiki/index.php?title={{#var:tag}}<noinclude>
+
|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)