Template:Namefix/doc
{{Namefix}} and {{Namefix 2}} and {{Namefix&sort}} are Templates to deal with the fact that place-names have variant forms, and in particular county and territory names. They are not of use within the body of an article but they serve within the programming of other templates.
Wikishire categorises articles by county or territory automatically and it may contain automated links in an infobox, and this categorisation and linking is dependent on have a single, standard name for each county, or we could end up with some articles in "Category:Hills in Devon" and others in "Category:Hills in Devonshire"; both names are correct, but for Wikishire to work it has to work with one version. Therefore if in an infobox a contributors enters the county as "Devonshire", the system will, through these templates, silently emend it to "Devon".
{{Namefix}}
The most important of these templates, {{Namefix}} contains a list of variant names and the standard versions which Wikishire's systems.
Examples are:
Carnarvonshire | Caernarfonshire |
Caernarvonshire | |
Devonshire | Devon |
Downshire | County Down |
Dumbartonshire | Dunbartonshire |
Haddingtonshire | East Lothian |
BIOT | British Indian Ocean Territory |
Falklands | Falkland Islands |
The template is used in a great many templates and every Infobox, wherever the contributor is invited to enter the name of a county.
{{Namefix 2}}
{{Namefix 2}} applies {{Namefix}} to any given name, but then adds "the " in front of in the case of certain territories and crown dependencies, for example "the Falkland Islands", "the Isle of Man" and so forth.
This is of use within categorisation protocols, for example {{Infobox waterfall}} will automatically categorise an article as, for example "Category:Waterfalls of Devon" or "Category:Waterfalls of the Falkland Islands"; it is {{Namefix 2}} which adds "the" where required.
This template is mainly used within Categorisation templates.
{{Namefix&sort}}
This is a template to deal with the alphabetical order of county names; for example "County Antrim", and "County Durham" should be listed under "A" and "D" respectively, not "C".
This template is used within categorisation templates to ensure alphabetical sorting, for example in {{Rivers}} so that within "Rivers of Britain and Ireland", the category "Rivers of County Antrim" appears under "A".