Template:Flag Institute: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
Created page with '{{#switch: {{{1|}}} | United Kingdom = http://www.flaginstitute.org/index.php?location=10&flagtype=national&flagid=1 | England = http://www.flaginstitute.org/index.php…'
 
RB (talk | contribs)
No edit summary
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#switch: {{{1|}}}
<includeonly>{{#vardefine:seed|{{#switch:{{{1}}}
| United Kingdom   = http://www.flaginstitute.org/index.php?location=10&flagtype=national&flagid=1
|United Kingdom
| England          = http://www.flaginstitute.org/index.php?location=10&flagtype=national&flagid=2
|Union Flag=Union Flag
| Scotland        = http://www.flaginstitute.org/index.php?location=10&flagtype=national&flagid=3
|Portland=Isle of Portland
| Wales            = http://www.flaginstitute.org/index.php?location=10&flagtype=national&flagid=4
|Purbeck=Isle of Purbeck
| Buckinghamshire  = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=100
|St Annes on Sea=St Annes on the Sea
| Cornwall        = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=101
|Scilly=Isles of Scilly
| Derbyshire      = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=102
|the East Riding of Yorkshire
| Devon            = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=103
|East Riding of Yorkshire=Yorkshire-east-riding
| Dorset          = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=104
|the North Riding of Yorkshire
| East Anglia      = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=105
|North Riding of Yorkshire=Yorkshire-north-riding
| Essex            = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=106
|the West Riding of Yorkshire
| Gloucestershire  = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=107
|West Riding of Yorkshire=Yorkshire-west-riding
| Hertfordshire    = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=108
|{{{1}}}
| Huntingdonshire  = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=109
}}}}{{#vardefine:tag|{{lc:{{#replace:{{#var:seed}}| |-}}}}-flag}}http://www.flaginstitute.org/wp/flags/{{#var:tag}}</includeonly><noinclude>
| Isle of Wight    = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=110
{{documentation}}
| Isles of Scilly = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=111
<!-- Add categories and to the /doc subpage, not here! -->
| Kent            = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=112
| Lancashire      = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=113
| Lincolnshire    = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=114
| Middlesex        = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=115
| Northumberland  = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=116
| Nottinghamshire  = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=117
| Orkney          = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=118
| Pembrokeshire    = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=119
| Shetland        = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=120
| Sussex          = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=121
| Wessex          = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=122
| Wiltshire        = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=123
| Yorkshire       = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=124
| Belfast          = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=125
| Cardiff          = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=126
| Edinburgh        = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=127
| City of London  = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=128
| Lord Mayor of the City of London = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=129
| Cinque Ports    = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=130
| Lord Warden of the Cinque Ports = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=131
| Finchfield, Staffordshire = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=132
| Petersfield, Hampshire = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=133
| Portland, Dorset = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=134
| Wroxton, Oxfordshire = http://www.flaginstitute.org/index.php?location=10&flagtype=county&flagid=135
| http://www.flaginstitute.org/index.php?location=10&flagtype=county
}}<noinclude>
This template is used generate URLs at the [[Flag Institute]], whose database uses numeric flag indices which change when they add a new flag.
 
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.
 
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|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:Vexillological 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)