Template:Place

From OpenStreetMap Wiki
(Redirected from Template:EN:Place)
Jump to: navigation, search
{{{name}}}, {{{area}}}
latitude: , longitude:
Browse map of {{{name}}} {{{lat}}}, {{{long}}}
Edit map
External links:
Use this template for your city
{{{name}}} is a {{{type}}} in [[{{{area}}}|{{{area}}}]] at latitude {{{lat}}}, longitude {{{long}}}.
[Edit] [Octicons-sync.svgpurge] Template-info.svg Template documentation
Available languages — Place
· Afrikaans · Alemannisch · aragonés · asturianu · azərbaycanca · Bahasa Indonesia · Bahasa Melayu · Bân-lâm-gú · Basa Jawa · Baso Minangkabau · bosanski · brezhoneg · català · čeština · dansk · Deutsch · eesti · English · español · Esperanto · estremeñu · euskara · français · Frysk · Gaeilge · Gàidhlig · galego · Hausa · hrvatski · Igbo · interlingua · Interlingue · isiXhosa · isiZulu · íslenska · italiano · Kiswahili · Kreyòl ayisyen · kréyòl gwadloupéyen · Kurdî · latviešu · Lëtzebuergesch · lietuvių · magyar · Malagasy · Malti · Nederlands · Nedersaksies · norsk bokmål · norsk nynorsk · occitan · Oromoo · oʻzbekcha/ўзбекча · Plattdüütsch · polski · português · português do Brasil · română · shqip · slovenčina · slovenščina · Soomaaliga · suomi · svenska · Tiếng Việt · Türkçe · Vahcuengh · vèneto · Wolof · Yorùbá · Zazaki · српски / srpski · беларуская · български · қазақша · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · मराठी · हिन्दी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ · አማርኛ · 한국어 · 日本語 · 中文(简体)‎ · 吴语 · 粵語 · 中文(繁體)‎ · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް

Summary

Template:en:Place is a template to place details of a place on to the wiki page, in English. Template:Place is a template to place details of a place on to the wiki page with the language set by the parameter "lang", but currently that functionality is not yet implemented, so they both do the same thing, in English. The template places a text description in the page itself and a box on the right with links to further details on the place. There are options for a slippy map centered on the left, and an image in the box on the right.

The template puts the article in the correct categories: [[Category:Types in subarea]] and/or [[Category:Types in area]] and [[Category:name]] (if the category name exists) so there is no need to do that manually.

One does need to manually put the categories like [[Category:Types in subarea]] into categories like [[Category:Types in area|subarea]] and also into [[Category:subarea]], as well as placing [[Category:name]] into [[Category:Types in subarea]] and/or [[Category:Types in area]].

Parameters

The following parameters can be passed into the template:

Parameter name Required Purpose
lang No The two character language code for the results to be returned. Default is "en". Not yet implemented.
name Yes The name of the place being referred to (eg. Nottingham). This name is used to lookup category names (it may contain a disambiguating precision).
fullname No An alternate full name to display on the page (adding an article, or removing the disambiguating precision). If not set, the name parameter will be used.
type Yes The type of place. Recognized values are: village/ city/ ville/ town/ suburb/ hamlet/ hameau/ municipality /metropolitan borough and town/ county/ district/ canton/ kreis/ landkreis/ département/ province/ prefecture/ oblast/ région/ region/ state/ country/ pays/ sovereign state/ continent/ island/ isle.
subarea No A subarea of the area (for example a province of china). It is possible to not define the subarea and just use area instead.
area Yes The area the place is in (eg. China)
lat Yes The latitude of the place.
long Yes The longitude of the place.
zoom No The zoom level to open linked to maps at. Default value is 12.
image No The title of the image to display. No image will be display if image is not defined
map No "Yes" if you would like a slippymap included in the main page (width and height can also be used). No map will be displayed if field left blank.
latlon No "Yes" if you would like to add link to LatLon.org public transport render.
sortkey No The sortkey for categories. If sortkey is not supplied the name of the place will be used as the sortkey.
list No URL of a mailing list for the place. If this is not supplied no archive link will appear.
archive No URL of an archive page for the place. If this is not supplied no archive link will appear.
forum No URL of a forum page for the place. If this is not supplied no forum link will appear.
wikipedia depreciated depreciated - use en.wikipedia
en.wikipedia No The article name on en.wikipedia. Default value is name
es.wikipedia No The article name on es.wikipedia.
de.wikipedia No The article name on de.wikipedia.
fr.wikipedia No The article name on fr.wikipedia.
it.wikipedia No The article name on it.wikipedia.
ru.wikipedia No The article name on ru.wikipedia.
uk.wikipedia No The article name on uk.wikipedia.
osmose No Adding link to Osmose.openstreetmap.fr (Only in France at this time)
BestOfOSM No Inscription in bestofosm.org possibles values are : BestOf/ Interesting/ Import/ Historic, categorize the page in the relevant category
krdb No The database to use in the Keep Right link. Default value is EU. See Template:Keepright for details.

Categories

If there is a category for the name of the place (e.g. New York) then this category is added to the page.

The template will add the place to a category types in subarea (e.g. Cities in Berkshire).

If the subarea is not defined then the template will also add the place to the category types in area (eg. Cities in UK). This increases the chance the place will be allocated to a category that exists, but ensures that if a more specific category exists it isn't allocated to the parent category.

Usage

Full Template

{{Template:Place
| lang         =xx          (two character language code, not yet implemented, default is "en")
| name         =name
| type         =something   (village/city/ville/town/suburb/hamlet/hameau...
                             municipality/metropolitan borough and town...
                             county/district/canton/kreis/landkreis/département...
                             province/prefecture/oblast/région/region/state...
                             country/pays/sovereign state...
                             continent/island/isle)
| subarea      =text        (optional, usually province, prefecture or state name)
| area         =text        (usually country name)
| lat          =number, +/- (latitude of the place)
| long         =number, +/- (longitude of the place)
| zoom         =number 1-17 (optional, The zoom level to open linked 
                             to maps at. Default value is 12. )
| image        =image.png   (optional, image in box)
| map          =Yes         (optional, slippymap included in the main page)
| width        =# of pixels (optional, width of slippymap, default is 400)
| height       =# of pixels (optional, width of slippymap, default is 400)
| layer        =layer       (optional, layer of slippymap, default is mapnik)
| latlon       =Yes         (optional, to add link to LatLon.org 
                             public transport render.)
| sortkey      =text        (optional, If sortkey is not supplied the 
                             name of the place will be used as the sortkey.)
| list         =URL         (optional, mailing list page for the place.)
| archive      =URL         (optional, archive page for the place)
| forum        =URL         (optional, forum page for the place)
| de.wikipedia =text        (optional, article name on de.wikipedia)
| en.wikipedia =text        (optional, article name on en.wikipedia, 
                             default value is 'name')
| es.wikipedia =text        (optional, article name on es.wikipedia)
| fr.wikipedia =text        (optional, article name on fr.wikipedia)
| it.wikipedia =text        (optional, article name on it.wikipedia)
| ja.wikipedia =text        (optional, article name on ja.wikipedia)
| ru.wikipedia =text        (optional, article name on ru.wikipedia)
| uk.wikipedia =text        (optional, article name on uk.wikipedia)
| osmose       =Yes         (optional, to add link to osmose.openstreetmap.fr - Only in France)
| BestOfOSM    =text        (optional, possibles values are: 
                             BestOf/ Interesting/ Import/ Historic)
| krdb         =text        (optional, database to use in the 'Keep Right' 
                             link. Default value is EU. See Template:Keepright 
                             for details.)
}}

Blank template with required fields only

{{Template:Place
| name         = 
| type         = 
| area         = 
| lat          = 
| long         = 
}}

Blank template with all fields

{{Template:Place
| lang         = en
| name         = 
| type         = 
| subarea      = 
| area         = 
| lat          = 
| long         = 
| zoom         =12
| image        = 
| map          = 
| width        = 
| height       = 
| layer        = 
| latlon       = 
| sortkey      = 
| list         = 
| archive      = 
| forum        = 
| de.wikipedia = 
| en.wikipedia = 
| es.wikipedia = 
| fr.wikipedia = 
| it.wikipedia = 
| ja.wikipedia = 
| ru.wikipedia = 
| uk.wikipedia = 
| osmose       = 
| BestOfOSM    = 
| krdb         = 
}}

Examples

{{Template:Place
| lang         = en
| name         = Reading
| type         = town
| area         = Berkshire
| lat          = 51.445
| long         = -0.9685
| zoom         = 11
| image        = Image:UK_Reading_status.png
}}

Result:

  • Text (in English): Reading is a town in Berkshire at latitude 51.445, longitude -0.9685.
  • Page is allocated to the Reading category if it exists
  • Page is allocated to the Towns in Berkshire category.
  • No link to mailing list, forum or archive is added.
  • A link to the en.wikipedia page is made to Reading
  • No link to other language Wikipedia pages are made.
  • The image UK_Reading_status.png is added to the information box.
  • No slippy map is displayed
{{Template:Place
| lang         = en
| name         = Los Angeles
| type         = city
| subarea      = California
| area         = United States
| lat          = 34.05
| long         = -118.25
| zoom         = 11
| map          = yes
}}
  • Text (in English): Los Angeles is a city in California, United States at latitude 34.05, longitude -118.25.
  • Page is allocated to the Los Angeles category if it exists
  • Page is allocated to the Cities in California category - which should be manually allocated to the Cities in United States category.
  • Page is allocated to the Cities in United States category if the more specific category Cities in California does not exist
  • A link to the en.wikipedia page is made to Los Angeles
  • No link to other language Wikipedia pages are made.
  • No link to mailing list, forum or archive is added.
  • No image of the place is added to the information box.
  • A slippy map of the default size is displayed to the left of the info box.