Template:Part-BI: Difference between revisions
No edit summary |
No edit summary |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch:{{{1}}} | {{#switch:{{{1}}} | ||
| Aberdeenshire=Scotland | | Aberdeenshire=Scotland | ||
| | | Angus=Scotland | ||
| | | Anglesey=Wales | ||
| County Antrim=Northern Ireland | | County Antrim=Northern Ireland | ||
| Argyllshire=Scotland | | Argyllshire=Scotland | ||
| County Armagh=Northern Ireland | | County Armagh=Northern Ireland | ||
| Ayrshire=Scotland | | Ayrshire=Scotland | ||
| Banffshire=Scotland | | Banffshire=Scotland | ||
| Bedfordshire=England | | Bedfordshire=England | ||
| Berkshire=England | | Berkshire=England | ||
| Buckinghamshire=England | | Buckinghamshire=England | ||
| Berwickshire=Scotland | | Berwickshire=Scotland | ||
| Brecknockshire=Wales | | Brecknockshire=Wales | ||
| Buteshire=Scotland | | Buteshire=Scotland | ||
| Caernarfonshire=Wales | | Caernarfonshire=Wales | ||
| Caithness=Scotland | | Caithness=Scotland | ||
| Cambridgeshire=England | | Cambridgeshire=England | ||
| Cardiganshire=Wales | | Cardiganshire=Wales | ||
| Carmarthenshire=Wales | | Carmarthenshire=Wales | ||
| Cheshire=England | | Cheshire=England | ||
| Clackmannanshire=Scotland | | Clackmannanshire=Scotland | ||
| Cornwall=England | | Cornwall=England | ||
| Cromartyshire=Scotland | | Cromartyshire=Scotland | ||
| Cumberland=England | | Cumberland=England | ||
| Denbighshire=Wales | | Denbighshire=Wales | ||
| Derbyshire=England | | Derbyshire=England | ||
| Devon=England | | Devon=England | ||
| Dorset=England | | Dorset=England | ||
| County Down=Northern Ireland | | County Down=Northern Ireland | ||
| | | Dunbartonshire=Scotland | ||
| Dumfriesshire=Scotland | | Dumfriesshire=Scotland | ||
| County Durham=England | | County Durham=England | ||
| East Lothian=Scotland | | East Lothian=Scotland | ||
| Essex=England | | Essex=England | ||
| Fermanagh=Northern Ireland | | Fermanagh=Northern Ireland | ||
| Fife=Scotland | | Fife=Scotland | ||
| Flintshire=Wales | | Flintshire=Wales | ||
| Glamorgan=Wales | | Glamorgan=Wales | ||
| Gloucestershire=England | | Gloucestershire=England | ||
| Hampshire=England | | Hampshire=England | ||
| Herefordshire=England | | Herefordshire=England | ||
| Hertfordshire=England | | Hertfordshire=England | ||
| Huntingdonshire=England | | Huntingdonshire=England | ||
| Inverness-shire=Scotland | | Inverness-shire=Scotland | ||
| Kent=England | | Kent=England | ||
| Kincardineshire=Scotland | | Kincardineshire=Scotland | ||
| Kinross-shire=Scotland | | Kinross-shire=Scotland | ||
| Kirkcudbrightshire=Scotland | | Kirkcudbrightshire=Scotland | ||
| Lanarkshire=Scotland | | Lanarkshire=Scotland | ||
| Lancashire=England | | Lancashire=England | ||
| Leicestershire=England | | Leicestershire=England | ||
| Lincolnshire=England | | Lincolnshire=England | ||
| County Londonderry=Northern Ireland | | County Londonderry=Northern Ireland | ||
| | | Merionethshire=Wales | ||
| Middlesex=England | | Middlesex=England | ||
| Midlothian=Scotland | | Midlothian=Scotland | ||
| Monmouthshire=Wales | | Monmouthshire=Wales | ||
| Montgomeryshire=Wales | | Montgomeryshire=Wales | ||
| Morayshire=Scotland | | Morayshire=Scotland | ||
| Nairnshire=Scotland | | Nairnshire=Scotland | ||
| Norfolk=England | | Norfolk=England | ||
| Northamptonshire=England | | Northamptonshire=England | ||
| Northumberland=England | | Northumberland=England | ||
| Nottinghamshire=England | | Nottinghamshire=England | ||
| Orkney=Scotland | | Orkney=Scotland | ||
| Oxfordshire=England | | Oxfordshire=England | ||
| Peeblesshire=Scotland | | Peeblesshire=Scotland | ||
| Pembrokeshire=Wales | | Pembrokeshire=Wales | ||
| Perthshire=Scotland | | Perthshire=Scotland | ||
| Radnorshire=Wales | | Radnorshire=Wales | ||
| Renfrewshire=Scotland | | Renfrewshire=Scotland | ||
| Ross-shire=Scotland | | Ross-shire=Scotland | ||
| Roxburghshire=Scotland | | Roxburghshire=Scotland | ||
| Rutland=England | | Rutland=England | ||
| Selkirkshire=Scotland | | Selkirkshire=Scotland | ||
| Shetland=Scotland | | Shetland=Scotland | ||
| Shropshire=England | | Shropshire=England | ||
| Somerset=England | | Somerset=England | ||
| Staffordshire=England | | Staffordshire=England | ||
| Stirlingshire=Scotland | | Stirlingshire=Scotland | ||
| Suffolk=England | | Suffolk=England | ||
| Surrey=England | | Surrey=England | ||
| Sussex=England | | Sussex=England | ||
| Sutherland=Scotland | | Sutherland=Scotland | ||
| Tyrone=Northern Ireland | | Tyrone=Northern Ireland | ||
| Warwickshire=England | | Warwickshire=England | ||
| West Lothian=Scotland | | West Lothian=Scotland | ||
| Westmorland=England | | Westmorland=England | ||
| Wigtownshire=Scotland | | Wigtownshire=Scotland | ||
| Wiltshire=England | | Wiltshire=England | ||
| Worcestershire=England | | Worcestershire=England | ||
| Yorkshire=England | | Yorkshire=England | ||
| County Carlow | | County Carlow | ||
| County Cavan | | County Cavan | ||
| County Clare | | County Clare | ||
| County Cork | | County Cork | ||
| County Donegal | | County Donegal | ||
| County Dublin | | County Dublin | ||
| County Galway | | County Galway | ||
| County Kerry | | County Kerry | ||
| County Kildare | | County Kildare | ||
| County Kilkenny | | County Kilkenny | ||
| County Laois | | County Laois | ||
| County Leitrim | | County Leitrim | ||
| County Limerick | | County Limerick | ||
| County Longford | | County Longford | ||
| County Louth | | County Louth | ||
| County Mayo | | County Mayo | ||
| | | Meath | ||
| County Monaghan | | County Monaghan | ||
| County Offaly | | County Offaly | ||
| County Roscommon | | County Roscommon | ||
| County Sligo | | County Sligo | ||
| County Tipperary | | County Tipperary | ||
| County Waterford=Republic of Ireland | | County Waterford | ||
| | | Westmeath | ||
| | | County Wexford | ||
| | | County Wicklow=Republic of Ireland | ||
| Bailiwick of Guernsey=Bailiwick of Guernsey | |||
| Bailiwick of Jersey=Bailiwick of Jersey | |||
| Isle of Man=Isle of Man | |||
| Akrotiri and Dhekelia=Akrotiri and Dhekelia | |||
| Anguilla=Anguilla | |||
| Bermuda=Bermuda | |||
| British Antarctic Territory=British Antarctic Territory | |||
| British Indian Ocean Territory=British Indian Ocean Territory | |||
| British Virgin Islands=British Virgin Islands | |||
| Cayman Islands=Cayman Islands | |||
| Falkland Islands=Falkland Islands | |||
| Gibraltar=Gibraltar | |||
| Montserrat=Montserrat | |||
| Pitcairn Islands=Pitcairn Islands | |||
| St Helena, Ascension and Tristan da Cunha=St Helena, Ascension and Tristan da Cunha | |||
| South Georgia and the South Sandwich Islands=South Georgia and the South Sandwich Islands | |||
| Turks and Caicos Islands=Turks and Caicos Islands | |||
| ''error: name not on list'' | | ''error: name not on list'' | ||
}} | }}<noinclude>[[Category:Wider placing templates|Part-BI]] | ||
{{Wider placing templates/doc}}</noinclude> |
Latest revision as of 17:40, 12 August 2016
error: name not on list
The Wider placing templates are amongst the 'Categorisation templates'. These templates work as sub-routines embedded in other templates, to locate places in a wider context. Each takes a single parameter, which is the name of a county or overseas territory, and returns its wider context.
{{Part-BI}} determines whether the county is part of England, Northern Ireland, Scotland, Wales, the Republic of Ireland or an overseas territory / Crown dependency. This is of use in, for example determining whether a "Places of Interest" box should display the name and logo of English Heritage, the NIAE, Historic Environment Scotland, Cadw etc, and which National Trust is referred to when {{Infobox NT}} is used. Certain in-line templates such as {{britlist}}, {{charity}}, {{sssi}} point to an external source, and {{Part-BI}} (embedded in each) directs then to the right sub-national register.
The other templates determine whether the place is in in the United Kingdom, in the Republic of Ireland, in the overseas territories etc. This means that, for example a categorisation template like {{Bridges}} will know to categorise the category in "Bridges in the United Kingdom" or "Bridges in the Republic of Ireland", etc.
In each case, the template needs the (Wikishire) standard form of name as the parameter, so {{namefix}} should generally be used with it.
Examples:
{{Part-BI|Angus}} | => | Scotland |
{{State-BI|Angus}} | => | United Kingdom |
{{State|Angus}} | => | the United Kingdom |
The templates
The templates are:
{{Part-BI}} | Returns: 'England', 'Northern Ireland', 'Scotland', 'Republic of Ireland', 'Wales', or the name of an overseas territory / Crown dependency |
{{State-BI}} | Returns: 'United Kingdom', 'Republic of Ireland', or 'Isle of Man' (mainly for choosing between Wikishire mapping or Googlemaps). |
{{State2}} | Almost identical, but returns the name with "the" in front, so we get categories "X in the United Kingdom" not "X in United Kingdom", and it includes "the British overseas territories" and "the Channel Islands" |