Template:Infobox UK place/doc

This is an old revision of this page, as edited by Jza84 (talk | contribs) at 14:45, 1 July 2007 (Automated features: update on avaliable maps). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Template:Template doc page viewed directly

Required fields and automation

Automated features

Feature Required fields
Basic function official_name
country (?)
map_type (leave blank)
England only: region (?)
Maps latitude
longitude
map_type (= United Kingdom, Northern Ireland, Scotland, Bristol, Cheshire, Cornwall, Derbyshire, Dorset, Greater Belfast, Greater London, Greater Manchester, Nottinghamshire, Southampton, South Yorkshire, Surrey, Tyne and Wear, West Yorkshire, Lincolnshire, Merseyside, Leicestershire)
Services country
unitary_scotland (?) OR unitary_england (?) OR unitary_northern_ireland (?) OR unitary_wales (?) OR london_borough (?) OR metropolitan_borough (?) OR shire_district (?)
England only: shire_county (?) OR metropolitan_county (?) OR lieutenancy_england (?)
England only: region
Vale of White Horse and Hart districts only: ambulance_service (needs to be populated)
Postal post_town (?)
postcode_area (?)
postcode_district
European Parliament country
England only: region
London Assembly london_borough
Footer lists country
london_borough OR shire_county OR metropolitan_county OR lieutenancy_england OR unitary_scotland OR unitary_wales OR lieutenancy_northern_ireland

Normally used features

Although not required for any of the automation, the following fields would normally be filled in
  • constituency_westminster
  • os_grid_reference OR irish_grid_reference
  • dial_code ([1] may be of help finding the dial code)
  • Northern Ireland only: lieutenancy_northern_ireland (?)
  • Wales only: lieutenancy_wales (?)
  • Scotland only: lieutenancy_scotland (?)

Optional features

Optional feature Required fields
Other language names gaelic_name OR scots_name OR welsh_name OR irish_name OR cornish_name
Any other language name other_language AND other_language_name
local_name
Languages spoken language
Distances from capitals london_distance
edinburgh_distance
cardiff_distance
belfast_distance
Civil parish civil_parish
Population figures population
population_density
(A good place to find the population figures is at neighbourhood.statistics.gov.uk)
Website link website
Static image static_image
static_image_caption

Division splits

Division splits

Many locations are within multiple post towns, constituencies, districts or regions. Where a place straddles multiple divisions, each division can be accomodated in its own field:

  • post_town AND post_town1 AND post_town2
  • civil_parish AND civil_parish1
  • shire_district AND shire_district1 AND shire_district2
  • region AND region1
  • westminster_constituency AND westminster_constituency1 AND westminster_constituency2

There are slightly more "esoteric" extras to handle some tricky situations of division splits, which, if needed, can be explained by contacting one of the users involved in this template's construction.

Examples

England

See: England documentation

Wales

Abergavenny
Population14,055 
OS grid referenceSO295145
Principal area
Preserved county
CountryWales
Sovereign stateUnited Kingdom
Post townABERGAVENNY
Postcode districtNP7
Dialling code01873
PoliceGwent
FireSouth Wales
AmbulanceWelsh
UK Parliament
List of places
UK
Wales
Monmouthshire
{{Infobox UK place
   |latitude=          51.824
   |longitude=         -3.0167
   |country=           Wales
   |official_name=     Abergavenny
   |unitary_wales=     [[Monmouthshire]]
   |lieutenancy_wales= [[Gwent]]
   |constituency_westminster=      [[Monmouth (UK Parliament constituency)|Monmouth]]
   |post_town=         ABERGAVENNY
   |postcode_area=     NP
   |postcode_district= NP7
   |dial_code=      01873
   |os_grid_reference=  SO295145
   |population=        14,055
 }}

Scotland

Aberdeen
Population202,370 
• Density2819 mile² (1,089 km²)
OS grid referenceNJ925065
• Edinburgh94 miles (151 km)
• London403 miles (649 km)
Civil parish
Council area
Lieutenancy area
  • Aberdeen
CountryScotland
Sovereign stateUnited Kingdom
Post townABERDEEN
Postcode districtAB10-AB13 (part), AB15,
AB16, AB22-AB25
Dialling code01224
PoliceScotland
FireScottish
AmbulanceScottish
UK Parliament
Scottish Parliament
Websiteaberdeencity.gov.uk
List of places
UK
Scotland
{{Infobox UK place 
 | official_name= Aberdeen
 | gaelic_name=   Obar Dheathain
 | scots_name=    Aiberdeen
 | local_name=    Granite City, Oil Capital of Europe, Silver City
 | country=       Scotland 
 | map_type=      Scotland
 | population=    202,370
 | population_density=    2819 [[Square mile|mile²]] (1,089 [[Square kilometre|km²]])
 | os_grid_reference=     NJ925065
 | edinburgh_distance=    94 miles (151 km)
 | london_distance=       403 miles (649 km)
 | latitude=              57.0843
 | longitude=             -02.0615
 | post_town=             ABERDEEN
 | postcode_area=         AB
 | postcode_district=     AB10-AB13 (part), AB15,<br/> AB16, AB22-AB25
 | dial_code=             01224
 | constituency_westminster=    [[Aberdeen South (UK Parliament constituency)|Aberdeen South]]
 | constituency_westminster1=   [[Aberdeen North (UK Parliament constituency)|Aberdeen North]]
 | constituency_westminster2=   [[Gordon (UK Parliament constituency)|Gordon]]
 | civil_parish=          [[Presbytery of Aberdeen]]
 | unitary_scotland=      [[Aberdeen City Council]]
 | lieutenancy_scotland=  Aberdeen
 | constituency_scottish_parliament=     [[Aberdeen Central (Scottish Parliament constituency)|Aberdeen Central]]
 | constituency_scottish_parliament1=    [[Aberdeen North (Scottish Parliament constituency)|Aberdeen North]]
 | constituency_scottish_parliament2=    [[Aberdeen South (Scottish Parliament constituency)|Aberdeen South]]
 | website=               [http://www.aberdeencity.gov.uk aberdeencity.gov.uk]
}}

Northern Ireland

Belfast
Coat of arms of Belfast
Pro Tanto Quid Retribuamus
"What shall we give in return for so much"
PopulationExpression error: "City Proper: 276,459
Belfast Metropolitan Area: 579,276
(2001 Census)" must be numeric
Irish grid referenceJ338740
District
County
CountryNorthern Ireland
Sovereign stateUnited Kingdom
Post townBELFAST
Postcode districtBT1-BT17, BT29 (part of), BT58
Dialling code028
PoliceNorthern Ireland
FireNorthern Ireland
AmbulanceNorthern Ireland
UK Parliament
Websitewww.belfastcity.gov.uk
List of places
UK
Northern Ireland
Antrim
{{Infobox UK place |
  |official_name=     Belfast
  |gaelic_name=       Béal Feirste
  |scots_name=        Bilfawst 
  |static_image=      [[Image:Belfast city crest painting.png|100px|Coat of arms of Belfast]]
  |static_image_caption=Pro Tanto Quid Retribuamus <br>"What shall we give in return for so much"
  |map_type=          Greater Belfast
  |latitude=          54.596
  |longitude=         -5.914
  |population=        City Proper: 276,459<br/>[[Belfast Metropolitan Area]]: 579,276<br/>
([[United Kingdom Census 2001|2001 Census]])
  |irish_grid_reference= J338740 
  |unitary_northern_ireland= [[Belfast City Council|Belfast]]
  |country=           Northern Ireland
  |post_town=         BELFAST
  |postcode_area=     BT
  |postcode_district= BT1-BT17, BT29 (part of), BT58
  |dial_code=         028
  |constituency_westminster=  [[Belfast North (UK Parliament constituency)|Belfast North]]
  |constituency_westminster1= [[Belfast South (UK Parliament constituency)|Belfast South]]
  |constituency_westminster2= [[Belfast East (UK Parliament constituency)|Belfast East]]
  |constituency_westminster3= [[Belfast West (UK Parliament constituency)|Belfast West]]
  |lieutenancy_northern_ireland= [[County Antrim]]
  |website=           [http://www.belfastcity.gov.uk www.belfastcity.gov.uk]
}}

Full syntax

 
 {{Infobox UK place 
 | official_name=         
 | local_name=
 | country=               <!-- England, Northern Ireland, Wales, Scotland - NOT [[linked]] (also produces EU constituency) -->
 | region=                <!-- (England only) this should NOT be linked: e.g. East of England NOT [[East of England]] (also produces EU constituency) -->
 | region1=               <!-- for places split between regions -->

 | static_image=          <!-- this is used for a static image (for example a town crest) -->
 | static_image_caption=  <!-- optional caption for static image -->
 | population=            <!-- include a reference: e.g. <ref>Census, 2001</ref>, a good place to check for these figures is http://neighbourhood.statistics.gov.uk/ -->
 | population_density=    <!-- population density, write as format: 000&nbsp;[[Square mile|mile²]] (000&nbsp;[[Square kilometre|km²]]) -->
 | os_grid_reference=
 | map_type=              <!-- type of map (leave blank for UK map, or set to nomap, Scotland, Greater London, Greater Manchester or an image link -->
 | latitude=              <!-- ___location of the place, puts a dot on the map -->
 | longitude=             <!-- ___location of the place, puts a dot on the map -->
 | scale=                 <!-- optionally include a scale parameter in the coor title link (default is city scale) -->

 | post_town=             <!-- e.g. UXBRIDGE - NOT [[Uxbridge]] -->
 | post_town1=            <!-- for places in more than one post town -->
 | post_town2=            <!-- for places in more than one post town -->
 | postcode_area=         <!-- e.g. UB -->
 | postcode_area1=        <!-- for places in more than one postcode area -->
 | postcode_area2=        <!-- for places in more than one postcode area -->
 | postcode_district=     <!-- e.g. UB1, UB2 (this is displayed) -->
 | postcode_district1=    <!-- for places in more than one postcode area -->
 | postcode_district2=    <!-- for places in more than one postcode area -->
 | dial_code=             <!-- e.g. 020, 0161 or 01332 - NOT +44... -->
 | dial_code1=            <!-- for places in more than one dial code-->
 | dial_code2=            <!-- for places in more than one dial code-->

 | constituency_westminster=    <!-- Use a link. e.g. [[Chiltern Hundreds]]
 | constituency_westminster1=   <!-- for places in more than one constituency. Use a link. -->
 | constituency_westminster2=   <!-- for places in more than one constituency. Use a link. -->
 | constituency_westminster3=   <!-- for places in more than one constituency. Use a link. -->

 | civil_parish=          <!-- for places within a parish. Use a link, e.g. [[Odd Rode]] -->
 | civil_parish1=         <!-- for places in more than one parish. Use a link. -->

 | belfast_distance=                     <!-- NORTHERN IRISH articles only, distance to Belfast -->
 | cardiff_distance=                     <!-- WELSH articles only, distance to Cardiff -->
 | edinburgh_distance=                   <!-- SCOTTISH articles only, distance to Edinburgh --> 
 | london_distance=                      <!-- for all UK articles, distance to London -->

 | gaelic_name=
 | scots_name=
 | unitary_scotland=
 | unitary_scotland1=                    <!-- for places in more than one -->
 | lieutenancy_scotland=
 | lieutenancy_scotland1=                <!-- for places in more than one -->
 | constituency_scottish_parliament=
 | constituency_scottish_parliament1=    <!-- for places in more than one constituency -->
 | constituency_scottish_parliament2=    <!-- for places in more than one constituency -->

 | welsh_name=
 | unitary_wales=
 | unitary_wales1=                   <!-- for places in more than one -->
 | lieutenancy_wales=
 | lieutenancy_wales1=               <!-- for places in more than one -->
 | constituency_welsh_assembly=
 | constituency_welsh_assembly1=     <!-- for places in more than one constituency -->
 | constituency_welsh_assembly2=     <!-- for places in more than one constituency -->

 | irish_name= 
 | irish_grid_reference=
 | unitary_northern_ireland=
 | unitary_northern_ireland1=        <!-- for places in more than one -->
 | unitary_northern_ireland2=        <!-- for places in more than one -->
 | lieutenancy_northern_ireland=
 | lieutenancy_northern_ireland1=    <!-- for places in more than one -->
 | lieutenancy_northern_ireland2=    <!-- for places in more than one -->
         
 | metropolitan_borough=
 | metropolitan_borough1=          <!-- for places in more than one -->
 | metropolitan_county=
 | metropolitan_county1=           <!-- for places in more than one -->

 | shire_district=
 | shire_district1=                <!-- for places in more than one -->
 | shire_county=
 | shire_county1=                  <!-- for places in more than one -->

 | unitary_england=    
 | unitary_england1=               <!-- for places in more than one -->
 | lieutenancy_england=            <!-- not required where shire or metropolitan is the same -->
 | lieutenancy_england1=           <!-- for places in more than one -->

 | london_borough=                <!-- this should not be linked and simplified: e.g. Bromley NOT [[London Borough of Bromley]] (also produces London Assembly constituency) -->
 | london_borough1=               <!-- for places in more than one borough (also produces London Assembly constituency) -->
 | london_borough2=               <!-- for places in more than one borough (also produces London Assembly constituency) -->
 | london_borough3=               <!-- special cases, does not produce London Assembly constituency) -->
 | london_borough4=               <!-- special cases, does not produce London Assembly constituency) -->

 | cornish_name=
 | other_language_name=           <!-- any other alternative language name -->
 | other_language=                <!-- any other alternative language name -->
 | language=                      <!-- any locally spoken languages -->
 | language1=                     <!-- any locally spoken languages -->
 | language2=                     <!-- any locally spoken languages -->

 | website=                     <!-- local website for place -->
 }}

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and ___location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes nor collapse nested elements which use them.

Precision

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.