Template:Namefix: Difference between revisions
No edit summary |
|||
(15 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch:{{{1}}} | <includeonly>{{#switch:{{{1}}} | ||
| | |Aberdeen=Aberdeenshire | ||
|Antrim=County Antrim | |Antrim=County Antrim | ||
|Armagh=County Armagh | |Armagh=County Armagh | ||
|Brecknock | |Argyll | ||
|Argyle=Argyllshire | |||
|Ayr=Ayrshire | |||
|Banff=Banffshire | |||
|Bedford=Bedfordshire | |||
|Berks=Berkshire | |||
|Berwick=Berwickshire | |||
|Brecon | |||
|Brecknock | |||
|Breconshire=Brecknockshire | |Breconshire=Brecknockshire | ||
|Buckingham=Buckinghamshire | |||
|Bute=Buteshire | |Bute=Buteshire | ||
|Carnarvonshire=Caernarfonshire | |Cambridge=Cambridgeshire | ||
| | |Carnarvon | ||
| | |Carnarvonshire | ||
|Carnarfonshire | |||
|Caernarvonshire | |||
|Caernarfon=Caernarfonshire | |||
|Cardigan=Cardiganshire | |||
|Carmarthen=Carmarthenshire | |||
|Chester=Cheshire | |||
|Clackmannan=Clackmannanshire | |||
|County Fermanagh=Fermanagh | |||
|County Tyrone=Tyrone | |||
|Cromarty | |||
|Cromartieshire=Cromartyshire | |Cromartieshire=Cromartyshire | ||
|Denbigh=Denbighshire | |||
|Derby=Derbyshire | |||
|Devonshire=Devon | |Devonshire=Devon | ||
| | |Down | ||
|Downshire=County Down | |Downshire=County Down | ||
| | |Dumfries=Dumfriesshire | ||
|Dumbarton | |||
|Dumbartonshire | |||
|Dunbarton=Dunbartonshire | |||
|Durham=County Durham | |Durham=County Durham | ||
|Edinburgh | |||
|Edinburghshire=Midlothian | |||
|Elgin | |||
|Moray=Morayshire | |||
|Haddington | |||
|Haddingtonshire=East Lothian | |Haddingtonshire=East Lothian | ||
| | |Isle of Anglesey=Anglesey | ||
|Fifeshire=Fife | |Fifeshire=Fife | ||
|Flint=Flintshire | |||
|Forfar | |||
|Forfarshire=Angus | |||
|Gloucester=Gloucestershire | |||
|Southampton | |||
|Hants=Hampshire | |||
|Hereford=Herefordshire | |||
|Hertford=Hertfordshire | |||
|Huntingdon=Huntingdonshire | |||
|Inverness | |||
|Invernessshire=Inverness-shire | |Invernessshire=Inverness-shire | ||
|Kincardine=Kincardineshire | |||
|Kinross | |||
|Kinrossshire=Kinross-shire | |Kinrossshire=Kinross-shire | ||
| | |Kirkcudbright=Kirkcudbrightshire | ||
|Lanark=Lanarkshire | |||
|Lancaster=Lancashire | |||
|Leicester=Leicestershire | |||
|Lincoln=Lincolnshire | |||
|Linlithgow | |||
|Linlithgowshire=West Lothian | |||
|Londonderry | |||
|Derry=County Londonderry | |Derry=County Londonderry | ||
|County Derry=County Londonderry | |County Derry=County Londonderry | ||
|Merioneth=Merionethshire | |Merioneth=Merionethshire | ||
| | |Monmouth=Monmouthshire | ||
| | |Montgomery=Montgomeryshire | ||
| | |Nairn=Nairnshire | ||
|Northampton=Northamptonshire | |||
|Nottingham=Nottinghamshire | |||
|Oxford=Oxfordshire | |||
|Peebles=Peeblesshire | |||
|Pembroke=Pembrokeshire | |||
|Perth=Perthshire | |||
|Radnor=Radnorshire | |||
|Renfrew=Renfrewshire | |||
|Ross | |||
|Rossshire=Ross-shire | |Rossshire=Ross-shire | ||
| | |Roxburgh=Roxburghshire | ||
| | |Salop | ||
|Yorkshire | |Shrewsbury=Shropshire | ||
|Selkirk=Selkirkshire | |||
|Stafford=Staffordshire | |||
|Stirling=Stirlingshire | |||
|Warwick=Warwickshire | |||
|Wigtown=Wigtownshire | |||
|Wilts=Wiltshire | |||
|Worcester=Worcestershire | |||
|York=Yorkshire | |||
|Carlow=County Carlow | |Carlow=County Carlow | ||
|Cavan=County Cavan | |Cavan=County Cavan | ||
Line 44: | Line 106: | ||
|Kildare=County Kildare | |Kildare=County Kildare | ||
|Kilkenny=County Kilkenny | |Kilkenny=County Kilkenny | ||
|Leix | |Leix | ||
|Queen's | |||
|County Leix=County Laois | |County Leix=County Laois | ||
|Laois=County Laois | |Laois=County Laois | ||
Line 54: | Line 117: | ||
|County Meath=Meath | |County Meath=Meath | ||
|Monaghan=County Monaghan | |Monaghan=County Monaghan | ||
|Offaly=County Offaly | |Offaly | ||
|King's=County Offaly | |||
|Roscommon=County Roscommon | |Roscommon=County Roscommon | ||
|Sligo=County Sligo | |Sligo=County Sligo | ||
Line 66: | Line 130: | ||
|the Republic of Ireland=Republic of Ireland | |the Republic of Ireland=Republic of Ireland | ||
|Ireland=Republic of Ireland | |Ireland=Republic of Ireland | ||
|Guernsey=Bailiwick of Guernsey | |||
|Jersey=Bailiwick of Jersey | |||
|Man=Isle of Man | |Man=Isle of Man | ||
|East=East Riding | |East=East Riding | ||
Line 74: | Line 140: | ||
|West Riding of Yorkshire=West Riding | |West Riding of Yorkshire=West Riding | ||
|Catholic Church=Roman Catholic Church | |Catholic Church=Roman Catholic Church | ||
|SBA | |SBA | ||
|Akrotiri & | |Akrotiri & Dhekelia | ||
|Sovereign Base Areas=Akrotiri and Dhekelia | |Sovereign Base Areas=Akrotiri and Dhekelia | ||
|BIOT | |BIOT | ||
|the British Indian Ocean Territory=British Indian Ocean Territory | |the British Indian Ocean Territory=British Indian Ocean Territory | ||
|the British | |BAT | ||
|the British Antarctic Territory=British Antarctic Territory | |||
|the British Virgin Islands | |||
|BVI=British Virgin Islands | |BVI=British Virgin Islands | ||
|Caymans | |Caymans | ||
|the Cayman Islands=Cayman Islands | |the Cayman Islands=Cayman Islands | ||
|Falklands | |Falklands | ||
|the Falklands | |the Falklands | ||
|the Falkland Islands=Falkland Islands | |the Falkland Islands=Falkland Islands | ||
|Pitcairn | |Pitcairn | ||
|the Pitcairn Islands=Pitcairn Islands | |the Pitcairn Islands=Pitcairn Islands | ||
|South Georgia | |||
|SGSSI=South Georgia and the South Sandwich Islands | |SGSSI=South Georgia and the South Sandwich Islands | ||
| | |St Helena | ||
| | |Saint Helena | ||
| | |Saint Helena, Ascension and Tristan da Cunha | ||
|Saint Helena, Ascension and Tristan da Cuhna=St Helena, Ascension and Tristan da | |St Helena, Ascension and Tristan da Cuhna | ||
|Turks & Caicos | |Saint Helena, Ascension and Tristan da Cuhna=St Helena, Ascension and Tristan da Cunha | ||
|Turks & | |Turks & Caicos | ||
|the Turks & | |Turks & Caicos Islands | ||
|the Turks and Caicos Islands | |the Turks & Caicos Islands | ||
|{{{1}}} }} | |the Turks and Caicos Islands=Turks and Caicos Islands | ||
|{{{1}}} }}</includeonly><noinclude>[[Category:Name fix templates]] | |||
{{Namefix/doc}}</noinclude> |
Latest revision as of 13:14, 7 October 2016
{{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 contributor enters the county as "Devonshire", the system will, through these templates, silently amend 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.
Using examples as above:
entry | result |
---|---|
Carnarfonshire | Caernarfonshire |
Down | County Down |
BIOT | the British Indian Ocean Territory |
Falklands | the Falkland Islands |
Jersey | the Bailiwick of Jersey |
Man | the Isle of Man |
This template is mainly used within Categorisation templates.
{{Namefix 3}}
{{Namefix 3}} takes {{Namefix 2}} a step on, applying to any given name, but choosing the right preposition for it: "in" or "on", for example "in Berkshire" but "on the Falkland Islands", "on the Isle of Man" and so forth. "On" is only used for a few island territories.
This may be of use within categorisation protocols.
Using examples as above:
entry | result |
---|---|
Carnarfonshire | in Caernarfonshire |
Down | in County Down |
Gibraltar | in Gibraltar |
Falklands | on the Falkland Islands |
Caymans | on the Cayman Islands |
Man | on the Isle of Man |
This template is only 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".
Others
template | function |
---|---|
{{Check1shire}} | Gives an error message if the name entered is not a county nor an overseas territory. |
{{Hillfix}} | The names of ranges of hills (eg. 'Pennines' replacing 'Pennine Hills') |
{{Islegroupfix}} | The names of island groups (eg. 'Isles of Scilly' replacing 'Scilly') |
{{Mountsort}} | Alphabetical sorting, so that hills beginning "Mount" are sorted under the name not the prefix |
{{Saintsort}} | Alphabetical sorting, so that towns and villages beginning "St" are sorted as if it were written "Saint" |
{{Owned by code}} | For categories of ownership (see {{Owned by code}}). |
{{Unitfix}} | Works within the {{convert}} template: It render the names of units of measurement readable by the template |
{{Display admin}} | Abbreviates or puts line breaks in long constituency names in {{Infobox town}}, to avoid stretching the box. |
{{Display LG district}} | The same for long local government district names. |