قالب:جدول مكان بريطاني

(تم التحويل من قالب:Infobox UK place)
Template documentation[view] [edit] [history] [purge]

{{Infobox UK place}} is intended for use with articles about places i.e. human settlements in the United Kingdom. It has provision for a location map, images, captions, and detailed information about the place e.g. population, governance, and public services. There is an associated Template:Infobox UK feature which operates in a similar manner and is intended for features such as bridges, castles, and hills which do not require the options about governance etc.

Basic syntax

Examples are available showing typical infoboxes together with the code for those examples. This code can be cut and pasted into new articles. The samples provided are:

Isle of Man
Northern Ireland
Scotland
Wales
England – these can have differing structures:
Greater London
City of London
Metropolitan county (Greater Manchester, Merseyside, Tyne and Wear, South Yorkshire, West Yorkshire, West Midlands)
Shire district in a shire county
...within a parish of the same name
Unitary district within a shire
Standalone unitary (Herefordshire, Rutland, Bristol, Isle of Wight)

Full syntax

{{Infobox UK place
<!-- BASICS -->
| official_name                     = <!-- defaults to {{{PAGENAME}}} -->
| local_name                        = 
| country                           = <!-- England, Northern Ireland, Wales, Scotland - NOT [[linked]] (also produces EU constituency) -->
| crown_dependency                  = <!-- Isle of Man - NOT [[linked]] (this removes formal mentions of the UK) -->
| region                            = <!-- (England only) this should NOT be linked (also produces EU constituency) -->
| region1                           = <!-- for places split between regions -->
<!-- IMAGES -->
| static_image                      = <!-- now deprecated in favour of static_image_name (below); this is used for a static image (most commonly a skyline or landmark) -->
<!-- specified as [[File:filename.jpg|240px]] -->
| static_image_name                 = <!-- for a static image of the place, such as a skyline or defining local landmark -->
<!-- specified as filename.jpg -->
| static_image_width                = <!-- allows control of the image width. Should be omitted in most cases (will default to 240) -->
| static_image_caption              = <!-- optional caption for static image (Use <small>Small text</small>) -->
| static_image_alt                  = <!-- for a description of the image per [[WP:ALT]] -->
| static_image_2                    = <!-- now deprecated in favour of static_image_2_name (below); this is used for a second static image (for example a town crest) -->
<!-- specified as [[File:filename.jpg|240px]] -->
| static_image_2_name               = <!-- for a second static image, such as a town crest; specified as filename.jpg -->
| static_image_2_width              = <!-- allows control of the image width. Should not exceed 240 -->
| static_image_2_caption=<!-- optional caption for static image (Use <small>Small text</small>) -->
| static_image_2_alt                = <!-- for a description of the image per [[WP:ALT]] -->
<!-- STATISTICS -->
| area_total_sq_mi                  = <!-- square mile data as a number - will automatically provide conversion to  km<sup>2</sup> -->
| area_total_km2                    = <!-- sq km data as a number - will automatically provide 
conversion to sq mi (if blank) -->           
| area_footnotes= <!-- to cite the values used in the area fields. Use the <ref> </ref> tags -->
| population                        = <!-- Enter just the number -->
| population_ref                    = <!-- include a reference: e.g. <ref>Census, 2001</ref> -->
<!-- a good place to check for these figures is http://neighbourhood.statistics.gov.uk/ -->
<!-- any non-numeric population values should also go here, such as "c.500" or "<500" -->
| population_density                = <!-- for /sq mi ...use convert template {{Pop density mi2 to km2|(enter value) |precision=1|abbr=yes}} -->
<!-- if pop density/km<sup>2</sup> is known use {{Pop density km2 to mi2|(enter value) |precision=1|abbr=yes}} -->
<!-- note: if population is given and either area_total_sq_mi or area_total_km2 is given then population_density will be calculated -->
<!-- MAP & LOCATION -->
| os_grid_reference                 = 
| map_type                          = <!-- type of map (leave blank for default map, or set to nomap, UK or Greater Belfast to force a particular map) -->
| map_alt                           = <!-- alt text for map, for visually impaired and other readers who cannot see the image; see </nowiki>[[WP:ALT]]<nowiki> -->
| longitude                         = <!-- location of the place, puts a dot on the map -->
| latitude                          = <!-- location of the place, puts a dot on the map -->
| label_position                     = <!-- adjust position of label by dot – defaults to right -->        
| scale                             = <!-- optionally include a scale parameter in the coordinates link (default is city scale) -->
| post_town                         = <!-- e.g. UXBRIDGE - converted automatically to upper case -->
| 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 with more than one dial code-->
| dial_code2                        = <!-- for places with more than one dial code-->
<!-- GOVERNANCE -->
| 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. -->
<!-- DISTANCES -->
<!-- you can use the template {{convert|(enter data)|mi|precision=0}} to help convert miles to km automatically; both are displayed -->
| london_distance_mi                = <!-- for UK articles (outside of Greater London), distance to London as the crow flies -->
| london_distance_km                = 
| london_distance                   = 
| london_direction                   = 
| belfast_distance_mi               = <!-- NORTHERN IRISH articles only, distance to Belfast as the crow flies-->
| belfast_distance_km               = 
| belfast_distance                  = 
| belfast_direction                  = 
| cardiff_distance_mi               = <!-- WELSH articles only, distance to Cardiff as the crow flies-->
| cardiff_distance_km               = 
| cardiff_distance                  = 
| cardiff_direction                  = 
| dublin_distance_mi               = <!-- distance to Dublin – may be relevant to NORTHERN IRISH articles as the crow flies-->
| dublin_distance_km               = 
| dublin_distance                  = 
| dublin_direction                  = 
| edinburgh_distance_mi             = <!-- SCOTTISH articles only, distance to Edinburgh as the crow flies-->
| edinburgh_distance_km             = 
| edinburgh_distance                = 
| edinburgh_direction                = 
| douglas_distance_mi               = <!-- MANX articles only, distance to Douglas as the crow flies-->
| douglas_distance_km               = 
| douglas_distance                  = 
| douglas_direction                  = 
| charingX_distance_mi              = <!-- for places WITHIN Greater London ONLY as the crow flies-->
| charingX_distance_km              = 
| charingX_distance                 = 
| charingX_direction                 = 
<!-- SCOTLAND-SPECIFIC -->
| 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 -->
<!-- WALES-SPECIFIC -->
| welsh_name                        = 
| community_wales                   = <!-- Use a link, e.g. [[Eglwyscummin]] -->
| 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 -->
<!-- NORTHERN IRELAND-SPECIFIC -->
| 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 -->
| constituency_ni_assembly          = 
| constituency_ni_assembly1         = <!-- for places in more than one -->
<!-- ISLE OF MAN-SPECIFIC -->
| manx_name                         = 
| manx_parish                       = <!-- for places in the Isle of Man -->
| manx_shedding                     = <!-- for places in the Isle of Man, also generates emergency services -->
| constituency_manx_parliament      = <!-- for House of Keys constituency -->
<!-- ENGLAND-SPECIFIC -->
| metropolitan_borough              = 
| metropolitan_borough1             = <!-- for places in more than one -->
| metropolitan_county               = <!-- Use a link. e.g. [[Tyne and Wear]] -->
| metropolitan_county1              = <!-- for places in more than one -->
| shire_district                    = 
| shire_district1                   = <!-- for places in more than one -->
| shire_county                      = <!-- Use a link. e.g. [[Devon]] -->
| 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                      = 
<!-- ALL AREAS -->
| 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                           = <!-- Council website for place (specifically) -->
| hide_services                     = <!-- Set to Yes to turn off Police/Fire/Ambulance -->
}}

Parameters

Automated features

Feature Required fields
Basic function official_name – defaults to {{{PAGENAME}}}
country (?)
England only: region (?)
Maps latitude
longitude
country
England only: region (= London) OR metropolitan_county OR shire_county OR unitary_england (= Bristol, Isle of Wight, Southampton)
Scotland only: unitary_scotland
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 should normally be filled in
  • constituency_westminster
  • map_alt
  • os_grid_reference OR irish_grid_reference
  • dial_code (this may be of help finding the dialling 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 OR manx_name
Any other language name other_language AND other_language_name
local_name
Languages spoken language
Static image(s) static_image (deprecated)
static_image_name
static_image_width - defaults to 240px wide to match the maps.
static_image_caption
static_image_alt (see WP:ALT)
static_image_2 (deprecated)
static_image_2_name
static_image_2_width - defaults to 240px wide to match the maps.
static_image_2_caption
static_image_2_alt
Map label position label_position
Used to adjust position of label by dot on map– options are top, bottom, left, right, or none – defaults to right
Area area_total_sq_mi
area_total_km2
area_footnotes
Only one value needs to be entered as a number and it will be automatically formatted and converted to opposite system
Population figures population – must be a number
population_density – will be calculated automatically if area and population are present
population_ref
(A good place to find the population figures is at neighbourhood.statistics.gov.uk)
For Census 2001 use | population_ref = <ref>[[United Kingdom Census 2001|Census 2001]]</ref>
Distance from capitals Replace <capital> with belfast, cardiff, douglas, dublin, edinburgh, or london
<capital>_distance_mi
<capital>_distance_km
Only one value needs to be entered as a number and it will be automatically formatted and converted to opposite system
<capital>_distance
Used for footnotes or direction – see Boxing the compass
<capital_direction>
Enter direction to capital e.g. W, E, NE, SW – it will be linked to Boxing the compass
(Distances "as the crow flies" can be found from Genuki, or postcode.org.uk)
Distance within London Same as Distance from capitals above – replace <capital> with charingX
Civil parish or Community civil_parish OR community_wales (?)
Website link website
WARNING: overlong urls may result in the sides of the infobox being pushed sideways.
If so, use a short link to the url e.g. [longurl.co.uk/home.html Short name]

Places split by boundaries

Places split by boundaries

Many locations straddle the boundaries of post towns, constituencies, districts or regions. Where a place straddles these, they can be accommodated with 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.

Microformat

The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article 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.

hCard uses HTML classes including:

  • "adr"
  • "county-name"
  • "fn"
  • "label"
  • "locality"
  • "nickname"
  • "note"
  • "org"
  • "region"
  • "street-address"
  • "vcard"

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

  • "geo"
  • "latitude"
  • "longitude"

Please do not rename or remove these classes.

When giving coordinates, please don't be overly precise.