Difference between revisions of "Template:Part-BI"

From Wikishire
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{#switch:{{{1}}}  
 
{{#switch:{{{1}}}  
 
| Aberdeenshire=Scotland  
 
| Aberdeenshire=Scotland  
| Anglesey=Wales
+
| Angus=Scotland
| Angus=Scotland
+
| Anglesey=Wales
| County Antrim=Northern Ireland  
+
| County Antrim=Northern Ireland
| Argyll=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  
+
| 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  
+
| 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=Republic of Ireland
+
| County Carlow
| County Cavan=Republic of Ireland
+
| County Cavan
| County Clare=Republic of Ireland
+
| County Clare
| County Cork=Republic of Ireland
+
| County Cork
| County Donegal=Republic of Ireland
+
| County Donegal
| County Dublin=Republic of Ireland
+
| County Dublin
| County Galway=Republic of Ireland
+
| County Galway
| County Kerry=Republic of Ireland
+
| County Kerry
| County Kildare=Republic of Ireland
+
| County Kildare
| County Kilkenny=Republic of Ireland
+
| County Kilkenny
| County Laois=Republic of Ireland
+
| County Laois
| County Leitrim=Republic of Ireland
+
| County Leitrim
| County Limerick=Republic of Ireland
+
| County Limerick
| County Longford=Republic of Ireland
+
| County Longford
| County Louth=Republic of Ireland
+
| County Louth
| County Mayo=Republic of Ireland
+
| County Mayo
| Meath=Republic of Ireland
+
| Meath
| County Monaghan=Republic of Ireland
+
| County Monaghan
| County Offaly=Republic of Ireland
+
| County Offaly
| County Roscommon=Republic of Ireland
+
| County Roscommon
| County Sligo=Republic of Ireland
+
| County Sligo
| County Tipperary=Republic of Ireland
+
| County Tipperary
| County Waterford=Republic of Ireland  
+
| County Waterford
| Westmeath=Republic of Ireland
+
| Westmeath
| County Wexford =Republic of Ireland
+
| County Wexford
| County Wicklow=Republic of Ireland
+
| 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"