Difference between revisions of "Template:Flag Institute"

From Wikishire
Jump to: navigation, search
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#vardefine:tag|{{#replace:{{#switch:{{{1}}}
+
<includeonly>{{#vardefine:seed|{{#switch:{{{1}}}
 
|United Kingdom
 
|United Kingdom
 
|Union Flag=Union Flag
 
|Union Flag=Union Flag
|Penrith=penrith_cumberland
+
|Portland=Isle of Portland
|Petersfield=petersfield_hampshir
+
|Purbeck=Isle of Purbeck
|Isle of Portland
+
|St Annes on Sea=St Annes on the Sea
|Portland, Dorset=portland_dorset
+
|Scilly=Isles of Scilly
|Preston=preston_lancashire
+
|the East Riding of Yorkshire
|St Annes on Sea=stannesonthesea_lancashir
+
|East Riding of Yorkshire=Yorkshire-east-riding
|Belfast=Belfast_northernireland
+
|the North Riding of Yorkshire
|Cardif=Cardiff_wales
+
|North Riding of Yorkshire=Yorkshire-north-riding
|Edinburgh=edinburgh_scotland
+
|the West Riding of Yorkshire
|Wing=wing-buckinghamshire
+
|West Riding of Yorkshire=Yorkshire-west-riding
|Wroxton=wroxton_oxfordshire
+
|{{{1}}}
|{{{1}}}}}| ||}}http://www.flaginstitute.org/wp/flags/{{lc:{{#var:tag}}}}<noinclude>
+
}}}}{{#vardefine:tag|{{lc:{{#replace:{{#var:seed}}| |-}}}}-flag}}http://www.flaginstitute.org/wp/flags/{{#var:tag}}</includeonly><noinclude>
 
+
{{documentation}}
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.
+
<!-- Add categories and to the /doc subpage, not here! -->
 
+
Use <code><nowiki> {{Flag Institute|Yorkshire}} </nowiki></code> to generate a URL such as {{Flag Institute|Yorkshire}}.
+
 
+
===List of supported flags===
+
(This makes it easy to check each link works correctly)
+
{|
+
|valign="top"|
+
*[{{Flag Institute|United Kingdom}} United Kingdom]
+
*[{{Flag Institute|England}} England]
+
*[{{Flag Institute|Scotland}} Scotland]
+
*[{{Flag Institute|Wales}} Wales]
+
|valign="top"|
+
*[{{Flag Institute|Buckinghamshire}} Buckinghamshire]
+
*[{{Flag Institute|Cornwall}} Cornwall]
+
*[{{Flag Institute|Derbyshire}} Derbyshire]
+
*[{{Flag Institute|Devon}} Devon]
+
*[{{Flag Institute|Dorset}} Dorset]
+
*[{{Flag Institute|Essex}} Essex]
+
*[{{Flag Institute|Gloucestershire}} Gloucestershire]
+
*[{{Flag Institute|Hertfordshire}} Hertfordshire]
+
*[{{Flag Institute|Kent}} Kent]
+
*[{{Flag Institute|Lancashire}} Lancashire]
+
*[{{Flag Institute|Lincolnshire}} Lincolnshire]
+
*[{{Flag Institute|Middlesex}} Middlesex]
+
*[{{Flag Institute|Northumberland}} Northumberland]
+
*[{{Flag Institute|Nottinghamshire}} Nottinghamshire]
+
*[{{Flag Institute|Orkney}} Orkney]
+
*[{{Flag Institute|Pembrokeshire}} Pembrokeshire]
+
*[{{Flag Institute|Shetland}} Shetland]
+
*[{{Flag Institute|Sussex}} Sussex]
+
*[{{Flag Institute|Wiltshire}} Wiltshire]
+
*[{{Flag Institute|Yorkshire}} Yorkshire]
+
|valign="top"|
+
*[{{Flag Institute|East Anglia}} East Anglia]
+
*[{{Flag Institute|Isle of Wight}} Isle of Wight]
+
*[{{Flag Institute|Isles of Scilly}} Isles of Scilly]
+
*[{{Flag Institute|Wessex}} Wessex]
+
|valign="top"|
+
*[{{Flag Institute|Belfast}} Belfast]
+
*[{{Flag Institute|Cardiff}} Cardiff]
+
*[{{Flag Institute|Edinburgh}} Edinburgh]
+
*[{{Flag Institute|City of London}} City of London]
+
*[{{Flag Institute|Cinque Ports}} Cinque Ports]
+
*[{{Flag Institute|Finchfield, Staffordshire}} Finchfield, Staffordshire]
+
*[{{Flag Institute|Petersfield, Hampshire}} Petersfield, Hampshire]
+
*[{{Flag Institute|Isle of Portland}} Portland, Dorset]
+
*[{{Flag Institute|Wroxton, Oxfordshire}} Wroxton, Oxfordshire]
+
|}
+
[[Category:Flag templates]]
+
 
</noinclude>
 
</noinclude>

Latest revision as of 12:39, 6 May 2020

[edit] [{{#invoke:Purge|main}}] Template documentation

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)