2014-09-14

Created page with "{{Documentation subpage}} {{Languages|ns=Template:|lang={{#if:{{{lang|}}}|{{{lang|}}}|{{int:Lang}}}}}|Place}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS P..."

New page

{{Documentation subpage}}

{{Languages|ns=Template:|lang={{#if:{{{lang|}}}|{{{lang|}}}|{{int:Lang}}}}}|Place}}

<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

== Resumen ==

[[Template:Es:Place]] es una plantilla para colocar los detalles de un lugar en una página wiki, en español. [[Template:Place]] es una plantilla para colocar los detalles de un lugar en una página wiki con el idioma señalado con el parámetro "lang" (al momento esta funcionalidad aún no se encuentra implementada por lo que se usa el valor por defecto inglés). La plantilla coloca una descripción verbal en la página y una caja de información a la derecha del texto principal con ligas para tener más información del lugar. Existen opciones para un mapa centrado en la caja principal o una imagen colocada en la caja de información adicional.

La plantilla coloca al artículo en las categorías adecuadas: <nowiki>[[</nowiki>Category:'''Types''' in '''subarea'''<nowiki>]]</nowiki> y/o <nowiki>[[</nowiki>Category:'''Types''' in '''area'''<nowiki>]]</nowiki> y <nowiki>[[</nowiki>Category:'''name'''<nowiki>]]</nowiki> (si la categoría '''name''' existe) por lo que no hay necesidad de hacer eso manualmente.

Se necesita poner manualmente categorías como <nowiki>[[</nowiki>Category:'''Types''' in '''subarea'''<nowiki>]]</nowiki> en categorías como <nowiki>[[</nowiki>Category:'''Types''' in '''area'''<nowiki>|</nowiki>'''subarea'''<nowiki>]]</nowiki> and also into <nowiki>[[</nowiki>Category:'''subarea'''<nowiki>]]</nowiki>, además de <nowiki>[[</nowiki>Category:'''name'''<nowiki>]]</nowiki> dentro <nowiki>[[</nowiki>Category:'''Types''' in '''subarea'''<nowiki>]]</nowiki> y/o <nowiki>[[</nowiki>Category:'''Types''' in '''area'''<nowiki>]]</nowiki>.

== Parámetros ==

Los siguientes parámetros pueden ser ingresados en la plantilla:

{| class="wikitable"

|+

| '''Nombre del parámetro''' || '''Requerido''' || '''Propósito'''

|-

| lang ||No ||Los dos caracteres asociados a un idioma específico. El valor por defecto es "en" (idioma inglés). Parámetro aún no implementado.

|-

| name ||Sí ||El nombre del lugar al que queremos referirnos (ej. Ciudad de México).

|-

| type ||Sí || El tipo de lugar. Los valores reconocidos son: ciudad/ village/ city/ villa/ ville/ pueblo/ town/ suburbio/ suburb/ hamlet/ hameau/ municipalidad/ municipality metropolitan borough and town/ condado/ county/ distrito/ district/ canton/ kreis/ landkreis/ departamento/ département/ provincia/ province/ oblast/ región/ région/ region/ estado/ state/ country/ país/ pays/ sovereign state/ continente/ continent/ isla/ island/ isle.

|-

| subarea ||No || Una subarea de el area (por ejemplo un estado de México). Es posible no definir el subarea y en su lugar solo usar el area.

|-

| area ||Sí || El area en donde se encuentra el lugar (ej. México)

|-

| lat ||Sí || La latitud de el lugar.

|-

| long ||Sí || La longitud de el lugar.

|-

| zoom ||No || El nivel de zoom al que se visualizarán los mapas que aparecen en las ligas. El valor por defecto es 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 ||en desuso || En desuso - use mejor en.wikipedia

|-

| en.wikipedia ||No || El nombre del artículo en en.wikipedia. El valor por defecto es ''name''

|-

| es.wikipedia ||No || El nombre del artículo en es.wikipedia.

|-

| de.wikipedia ||No || El nombre del artículo en de.wikipedia.

|-

| fr.wikipedia ||No || El nombre del artículo en fr.wikipedia.

|-

| it.wikipedia ||No || El nombre del artículo en it.wikipedia.

|-

| ru.wikipedia ||No || El nombre del artículo en ru.wikipedia.

|-

| uk.wikipedia ||No || El nombre del artículo en uk.wikipedia.

|-

| osmose || No || Agrega una liga a Osmose.openstreetmap.fr (Solo en Francia por el momento)

|-

| BestOfOSM ||No || Inscribe al lugar a [http://www.bestofosm.org/ bestofosm.org] Los valores posibles de ingresar son: BestOf/ Interesting/ Import/ Historic, además categoriza la página bajo la descripción apropiada [[:Category:Best of OpenStreetMap|category]]

|-

| krdb ||No || La base de datos a usar en la liga de Keep Right. El valor por defecto es ''EU''. Ver [[Template:Keepright]] para más detalles.

|}

==Categorías==

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 ===

<nowiki>{{</nowiki>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/oblast/région/region/state...

country/pays/sovereign state...

continent/island/isle)

| subarea =text (optional, usually province 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)

| 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.)

<nowiki>}}</nowiki>

===Blank template with required fields only===

<nowiki>{{</nowiki>Template:Place

| name =

| type =

| area =

| lat =

| long =

<nowiki>}}</nowiki>

===Blank template with all fields===

<nowiki>{{</nowiki>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 =

| ru.wikipedia =

| uk.wikipedia =

| osmose =

| BestOfOSM =

| krdb =

<nowiki>}}</nowiki>

===Examples===

<nowiki>{{</nowiki>Template:Place

| lang = en

| name = Reading

| type = town

| area = Berkshire

| lat = 51.445

| long = -0.9685

| zoom = 11

| image = Image:UK_Reading_status.png

<nowiki>}}</nowiki>

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

<nowiki>{{</nowiki>Template:Place

| lang = en

| name = Los Angeles

| type = city

| subarea = California

| area = United States

| lat = 34.05

| long = -118.25

| zoom = 11

| map = yes

<nowiki>}}</nowiki>

* 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.

<includeonly>

<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->

{{DEFAULTSORT:Place}}

[[Category:WikiProject Templates]]

[[Category:MapProject Templates]]

[[Category:Templates emitting microformats]]

</includeonly>

Show more