Difference between revisions of "Template:Flag Institute"

From Wikishire
Jump to: navigation, search
Line 1: Line 1:
http://www.flaginstitute.org/index.php?location=10&flagtype={{FlagIDtype|{{{1}}}}}&flagid={{FlagIDno|{{{1}}}}}<noinclude>
+
{{#vardefine:tag|{{#switch:{{{1}}}
 +
|United Kingdom=Union_Flag
 +
|Union Flag=Union_Flag
 +
|East Anglia=East_Anglia
 +
|Isles of Scilly=Isles_of_Scilly
 +
|Isle of Wight=Isle_of_Wight
 +
|Cinque Ports=Cinque_Ports
 +
|City of London=City_of_London
 +
|Finchfield, Staffordshire=Finchfield,_Staffordshire
 +
|Petersfield, Hampshire=Petersfield,_Hampshire
 +
|Isle of Portland=Portland,_Dorset
 +
|Portland, Dorset=Portland,_Dorset
 +
|Wroxton, Oxfordshire=Wroxton,_Oxfordshire
 +
|{{{1}}}}}}}http://ukflagregistry.org/wiki/index.php?title={{#var:tag}}<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 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 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}}.
 
Use <code><nowiki> {{Flag Institute|Yorkshire}} </nowiki></code> to generate a URL such as {{Flag Institute|Yorkshire}}.
Line 46: Line 57:
 
*[{{Flag Institute|Edinburgh}} Edinburgh]
 
*[{{Flag Institute|Edinburgh}} Edinburgh]
 
*[{{Flag Institute|City of London}} City of London]
 
*[{{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|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|Finchfield, Staffordshire}} Finchfield, Staffordshire]
 
*[{{Flag Institute|Petersfield, Hampshire}} Petersfield, Hampshire]
 
*[{{Flag Institute|Petersfield, Hampshire}} Petersfield, Hampshire]
*[{{Flag Institute|Portland, Dorset}} Portland, Dorset]
+
*[{{Flag Institute|Isle of Portland}} Portland, Dorset]
 
*[{{Flag Institute|Wroxton, Oxfordshire}} Wroxton, Oxfordshire]
 
*[{{Flag Institute|Wroxton, Oxfordshire}} Wroxton, Oxfordshire]
 
|}
 
|}
 
[[Category:Flag templates]]
 
[[Category:Flag templates]]
 
</noinclude>
 
</noinclude>

Revision as of 20:54, 10 April 2012

http://ukflagregistry.org/wiki/index.php?title={{{1}}}

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)