Template:Flag Institute: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
No edit summary
RB (talk | contribs)
No edit summary
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#vardefine:tag|{{#switch:{{{1}}}
<includeonly>{{#vardefine:seed|{{#switch:{{{1}}}
|United Kingdom=Union_Flag
|United Kingdom
|Union Flag=Union_Flag
|Union Flag=Union Flag
|East Anglia=East_Anglia
|Portland=Isle of Portland
|Isles of Scilly=Isles_of_Scilly
|Purbeck=Isle of Purbeck
|Isle of Wight=Isle_of_Wight
|St Annes on Sea=St Annes on the Sea
|Cinque Ports=Cinque_Ports
|Scilly=Isles of Scilly
|City of London=City_of_London
|the East Riding of Yorkshire
|Finchfield, Staffordshire=Finchfield,_Staffordshire
|East Riding of Yorkshire=Yorkshire-east-riding
|Petersfield, Hampshire=Petersfield,_Hampshire
|the North Riding of Yorkshire
|Isle of Portland=Portland,_Dorset
|North Riding of Yorkshire=Yorkshire-north-riding
|Portland, Dorset=Portland,_Dorset
|the West Riding of Yorkshire
|Wroxton, Oxfordshire=Wroxton,_Oxfordshire
|West Riding of Yorkshire=Yorkshire-west-riding
|{{{1}}}}}}}http://ukflagregistry.org/wiki/index.php?title={{#var:tag}}<noinclude>
|{{{1}}}
 
}}}}{{#vardefine:tag|{{lc:{{#replace:{{#var:seed}}| |-}}}}-flag}}http://www.flaginstitute.org/wp/flags/{{#var:tag}}</includeonly><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.
{{documentation}}
 
<!-- 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)