Templat:Infobox UK place
Infobox UK place | |
Polis | |
---|---|
Balai bomba | |
Ambulans | |
|
Template: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 - see examples. There is an associated Template:Infobox UK feature which operates in a similar manner and is intended for features e.g. bridges, castles, hills etc which do not require the options about governance etc.
Required fields and automation
Automated features
Ciri | Jurusan diperlukan |
---|---|
Fungsi asas | official_name country (?) England sahaja: daerah (?) |
Peta | latitude longitude country England sahaja: daerah (= London) ATAU metropolitan_county ATAU shire_county ATAU unitary_england (= Bristol, Isle of Wight, Southampton) Scotland only: unitary_scotland |
Perkhidmatan | country unitary_scotland (?) ATAU unitary_england (?) ATAU unitary_northern_ireland (?) OR unitary_wales (?) ATAU london_borough (?) ATAU metropolitan_borough (?) ATAU shire_district (?) England sahaja: shire_county (?) ATAU metropolitan_county (?) ATAU lieutenancy_england (?) England sahaja: daerah Vale of White Horse and Hart districts sahaja: ambulance_service (perlu didiami) |
Poskod | post_town (?) postcode_area (?) postcode_district |
Parlimen Eropah | country England only: region |
Perhimpunan London | london_borough |
Senarai pengaki | country london_borough ATAU shire_county ATAU metropolitan_county ATAU lieutenancy_england ATAU unitary_scotland ATAU unitary_wales ATAU lieutenancy_northern_ireland |
Normally used features
Although not required for any of the automation, the following fields would normally be filled in |
---|
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 |
Area | area_footnotes area_total_sq_mi area_total_km2 Only one value needs to be entered in RAW format as it will be automatically formatted and converted to opposite system |
Distances from capitals | Replace <capital> with belfast, cardiff, douglas, edinburgh, or london <capital>_distance_mi <capital>_distance_km Only one value needs to be entered in RAW format as it will be automatically formatted and converted to opposite system <capital>_distance Used for footnotes or direction – see Boxing the compass (Distances "as the crow flies" can be found from Genuki, or postcode.org.uk) |
Distances within London | charingX_distance_mi, or charingX_distance_km Only one value needs to be entered in RAW format as it will be automatically formatted and converted to opposite system (Distances "as the crow flies" can be found from Genuki, or postcode.org.uk) charingX_distance |
Civil parish or Community | civil_parish OR community_wales (?) |
Population figures | population population_density population_ref (A good place to find the population figures is at neighbourhood.statistics.gov.uk) |
Website link | website |
Static image | static_image (deprecated) static_image_name static_image_width static_image_caption static_image_alt (see WP:ALT]) static_image_2 (deprecated) static_image_2_name static_image_2_width static_image_2_caption static_image_2_alt Images will default to 240px wide to match the maps. |
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 accommodated in its own field:
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
Scotland and Wales
- See: Examples
Full syntax
{{Infobox UK place <!-- BASICS -->> | official_name= | 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: e.g. East of England NOT [[East of England]] (also produces EU constituency) --> | region1= <!-- for places split between regions --> <!-- IMAGES --> | static_image= <!-- this is used for a static image (most commonly a skyline or landmark) --> <!-- specified as [[File:filename.jpg|240px]] --> <!-- Now deprecated in favour of static_image_name (below) --> | 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= <!-- this is used for a second static image (for example a town crest) --> <!-- specified as [[File:filename.jpg|240px]] --> <!-- Now deprecated in favour of static_image_2_name (below) --> | 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_footnotes= <!-- to cite the values used in the area fields. Use the <ref> </ref> tags --> | area_total_sq_mi= <!-- Enter square mile data in RAW format (no commas or spaces) will automatically convert km² (if blank)--> | area_total_km2 = <!-- Enter square kilometre data in RAW format (no commas or spaces) will automatically convert sq mi (if blank)--> | 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|wiki=yes}} --> <!-- if pop density/km² is known use {{Pop density km2 to mi2|(enter value) |precision=1|abbr=yes|wiki=yes}} --> <!-- if population is given and either area_total_sq_mi or area_total_km2 is given then population_density will be calculated --> <!-- 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 WP:ALT --> | 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 coordinates 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--> <!-- 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 --> | belfast_distance_mi= <!-- NORTHERN IRISH articles only, distance to Belfast --> | belfast_distance_km= | belfast_distance= | cardiff_distance_mi= <!-- WELSH articles only, distance to Cardiff --> | cardiff_distance_km= | cardiff_distance= | edinburgh_distance_mi= <!-- SCOTTISH articles only, distance to Edinburgh --> | edinburgh_distance_km= | edinburgh_distance= | london_distance_mi= <!-- for UK articles (outside of Greater London), distance to London --> | london_distance_km= | london_distance= | douglas_distance_mi= <!-- MANX articles only, distance to Douglas --> | douglas_distance_km= | douglas_distance= | charingX_distance_mi = <!-- for places WITHIN Greater London ONLY--> | charingX_distance_km = | charingX_distance= <!-- 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= | 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 --> }}
Microformat
Penanda HTML yang dihasilkan oleh templat ini termasuklah mikroformat hCard, yang menjadikan nama tempat dan lokasi boleh dihuraikan oleh komputer, sama adan bertindak secara automatik untuk mengkatalogkan rencana merentasi Wikipedia atau melalui alat pelayar yang dikendalikan oleh orang, contohnya untuk menambah subjek pada buku alamat. Di dalam hCard terdapat mikroformat Geo, yang membolehkan koordinat (garis lintang dan bujur) dihuraikan, supaya ia boleh mencari peta atau memuat turun unit GPS.
Subtemplat
Jika suatu tempat itu mempunyai medan "diasaskan", "ditubuhkan", "dibuka atau yang serupa, gunakan templat {{Tarikh mula}}. Jika ia mempunyai URL, gunakan templat {{URL}}.
Harap tidak membuang contoh-contoh subtemplat ini.
Kelas
hCard menggunakan kelas-kelas HTML termasuklah:
- adr
- agent
- category
- county-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- region
- street-address
- url
- vcard
Geo dihasilkan dengan memanggil {{Koord}}, dan menggunakan kelas-kelas HTML:
- geo
- latitude
- longitude
Jangan menamakan semula atau membuang kelas-kelas ini, atau meruntuhkan unsur-unsur bersarang yang menggunakannya.
Ketepatan
Apabila menggunakan koordinat, sila gunakan tahap ketepatan yang bersesuaian. Jangan gunakan parameter |name=
pada {{Koord}}.