Difference between revisions of "Template:Flag Institute"

From Wikishire
Jump to: navigation, search
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
http://www.flaginstitute.org/index.php?location=10&flagtype={{FlagIDtype|{{{1}}}}}&flagid={{FlagIDno|{{{1}}}}}<noinclude>
+
<includeonly>{{#vardefine:seed|{{#switch:{{{1}}}
 
+
|United Kingdom
This template is used generate URLs at the [[Flag Institute]], whose database uses numeric flag indices which change when they add a new flag.
+
|Union Flag=Union Flag
 
+
|Portland=Isle of Portland
This template permits them to be accessed by name and means that the numbers only need changing in one place (here) for all to work.
+
|Purbeck=Isle of Purbeck
 
+
|St Annes on Sea=St Annes on the Sea
Use <code><nowiki> {{Flag Institute|Yorkshire}} </nowiki></code> to generate a URL such as {{Flag Institute|Yorkshire}}.
+
|Scilly=Isles of Scilly
 
+
|the East Riding of Yorkshire
===List of supported flags===
+
|East Riding of Yorkshire=Yorkshire-east-riding
(This makes it easy to check each link works correctly)
+
|the North Riding of Yorkshire
{|
+
|North Riding of Yorkshire=Yorkshire-north-riding
|valign="top"|
+
|the West Riding of Yorkshire
*[{{Flag Institute|United Kingdom}} United Kingdom]
+
|West Riding of Yorkshire=Yorkshire-west-riding
*[{{Flag Institute|England}} England]
+
|{{{1}}}
*[{{Flag Institute|Scotland}} Scotland]
+
}}}}{{#vardefine:tag|{{lc:{{#replace:{{#var:seed}}| |-}}}}-flag}}http://www.flaginstitute.org/wp/flags/{{#var:tag}}</includeonly><noinclude>
*[{{Flag Institute|Wales}} Wales]
+
{{documentation}}
|valign="top"|
+
<!-- Add categories and to the /doc subpage, not here! -->
*[{{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|Lord Mayor of the City of London}} Lord Mayor of the City of London]
+
*[{{Flag Institute|Cinque Ports}} Cinque Ports]
+
*[{{Flag Institute|Lord Warden of the Cinque Ports}} Lord Warden of the Cinque Ports]
+
*[{{Flag Institute|Finchfield, Staffordshire}} Finchfield, Staffordshire]
+
*[{{Flag Institute|Petersfield, Hampshire}} Petersfield, Hampshire]
+
*[{{Flag Institute|Portland, Dorset}} 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)