|
|
Zeile 1: |
Zeile 1: |
| <onlyinclude>{{Coordinate{{#if:{{#switch:{{{NS|}}}||/|//|///|///N|///S=1}}{{#switch:{{{EW|}}}||/|//|///|///E|///W=1}}|NO{{#if:{{NAMESPACE}}|x}}|MAIN}} | | <includeonly>{{Position dec/display/{{{display|inline}}} |
| |NS={{CoordinateLAT|{{{NS|}}}}}
| | |1={{Position/de/input/{{#ifeq:{{{1|}}}||nolat|{{#ifeq:{{{4|}}}{{{5|}}}{{{6|}}}||dec|{{#if:{{#switch:{{{4}}}{{{8}}}|NE|NW|SE|SW=y}}|dms|{{#if:{{#switch:{{{3}}}{{{6}}}|NE|NW|SE|SW=y}}|dm|{{#if:{{#switch:{{{2}}}{{{4}}}|NE|NW|SE|SW=y}}|d|ERROR}}}}}}}}}} |
| |EW={{CoordinateLONG|{{{EW|}}}}} | | |1={{{1|}}} |
| <!-- Wertebereichstest type, pop und elevation auch in Vorlage:Positionskarte~ -->
| | |2={{{2|}}} |
| |type={{#switch: {{{type|{{#ifeq:{{NAMESPACE}}|{{ns:6}}|landmark}}}}} | | |3={{{3|}}} |
| |country|state|adm1st|adm2nd|city|isle|airport|mountain|waterbody|forest|landmark={{{type}}}
| | |4={{{4|}}} |
| |example={{#if:{{NAMESPACE}}
| | |5={{{5|}}} |
| |{{{type}}}
| | |6={{{6|}}} |
| |{{CoordinateMSG|3|{{{type}}}}}
| | |7={{{7|}}} |
| }}
| | |8={{{8|}}} |
| |#default={{CoordinateMSG|3|{{{type|}}}}}
| | |9={{{9|}}} |
| }} | | |10={{{10|}}} |
| |pop={{{pop|}}} | | |format={{{format|}}} |
| |elevation={{{elevation|}}} | | |name={{{name|}}} |
| |dim={{{dim|}}} | | }}{{{notes|}}}}}<!-- |
| |region={{{region|}}} | | -->{{#ifeq:{{{dim|μ}}}|μ||{{Position dec/input/error2|msg=dim= should be dim:|sort_ch=D}}}}<!-- |
| |text={{{text|}}} | | -->{{#ifeq:{{{globe|μ}}}|μ||{PPosition dec/input/error2|msg=globe= should be globe:|sort_ch=G}}}}<!-- |
| |article={{#if:{{{article|}}}|{{{article|}}}|{{#if:{{{text|}}}{{{map|}}}||/}}}} | | -->{{#ifeq:{{{region|μ}}}|μ||{{Position dec/input/error2|msg=region= should be region:|sort_ch=R}}}}<!-- |
| |name={{#ifeq:{{{name|}}}|coordinates||{{{name|}}}}} | | -->{{#ifeq:{{{scale|μ}}}|μ||{{Position dec/input/error2|msg=scale= should be scale:|sort_ch=S}}}}<!-- |
| |sortkey={{#if:{{{text|}}}|{{{sortkey|}}}}} | | -->{{#ifeq:{{{source|μ}}}|μ||{{Position dec/input/error2|msg=source= should be source:|sort_ch=s}}}}<!-- |
| |globe={{{globe|}}}
| | -->{{#ifeq:{{{type|μ}}}|μ||{{Position dec/input/error2|msg=type= should be type:|sort_ch=T}}}}<!-- |
| }}{{#if:{{{1|}}} | | -->{{#coordinates:{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}} |
| |{{CoordinateMSG|5|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}}} | | |{{#switch:{{{display|}}} |
| }}{{#if:{{{map|}}}|{{Positionskarte+
| | |inline,title |
| |{{#switch: | | |inline, title |
| {{#if:{{ParmPart|1|{{{region|}}}}}
| | |it |
| |{{#ifexpr:{{#switch:{{{maplevel|}}}|global=-2|continental=-1|national=0|adm1st=1|adm2nd=2|#default=0}}>
| | |t |
| {{#switch:{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|map}}
| | |title,inline |
| |Erde=-2
| | |title={{#switch:{{SUBPAGENAME}} |
| |Afrika|Amerika|Antarktis|Asien|Australien|Eurasien|Europa|Nordamerika|Südamerika
| | |doc |
| |Nordpolarmeer|Atlantik|Indik|Pazifik|Südpolarmeer=-1
| | |testcases= |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|map}}=0
| | |#default={{talk other||primary}} |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}|map}}=1
| |
| |#default={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|level}}
| |
| }}
| |
| |{{#switch:{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|map}}
| |
| |Erde=-2
| |
| |Afrika|Amerika|Antarktis|Asien|Australien|Eurasien|Europa|Nordamerika|Südamerika
| |
| |Nordpolarmeer|Atlantik|Indik|Pazifik|Südpolarmeer=-1
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|map}}=0
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}|map}}=1
| |
| |#default={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|level}}
| |
| }}
| |
| |{{#switch:{{{maplevel|}}}|global=-2|continental=-1|national=0|adm1st=1|adm2nd=2|#default=0}}
| |
| }} | | }} |
| |-2 | | |#default= |
| }} | | }} |
| |-2={{Info globe|globe={{{globe|earth}}}|map}}
| | |name={{{name|}}} |
| |-1={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|continent}}
| | }}</includeonly><noinclude> |
| |1={{#switch:{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|level}}
| |
| |2={{#ifeq:{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}
| |
| |{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}
| |
| |{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|map}}
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}|map}}}}
| |
| |#default={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|map}}
| |
| }}
| |
| |2={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|map}}
| |
| |#default={{#ifeq:
| |
| {{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|continent}}
| |
| |{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|continent}}
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|map}}
| |
| |{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|continent}}
| |
| }}
| |
| }}
| |
| | |
| |caption = {{#switch:
| |
| {{#if:{{ParmPart|1|{{{region|}}}}}
| |
| |{{#ifexpr:{{#switch:{{{maplevel|}}}|global=-2|continental=-1|national=0|adm1st=1|adm2nd=2|#default=0}}>
| |
| {{#switch:{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|map}}
| |
| |Erde=-2
| |
| |Afrika|Amerika|Antarktis|Asien|Australien|Eurasien|Europa|Nordamerika|Südamerika
| |
| |Nordpolarmeer|Atlantik|Indik|Pazifik|Südpolarmeer=-1
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|map}}=0
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}|map}}=1
| |
| |#default={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|level}}
| |
| }}
| |
| |{{#switch:{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|map}}
| |
| |Erde=-2
| |
| |Afrika|Amerika|Antarktis|Asien|Australien|Eurasien|Europa|Nordamerika|Südamerika
| |
| |Nordpolarmeer|Atlantik|Indik|Pazifik|Südpolarmeer=-1
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|map}}=0
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}|map}}=1
| |
| |#default={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|level}}
| |
| }}
| |
| |{{#switch:{{{maplevel|}}}|global=-2|continental=-1|national=0|adm1st=1|adm2nd=2|#default=0}}
| |
| }}
| |
| |-1
| |
| }}
| |
| |-2={{Info globe|globe={{{globe|earth}}}|map}}
| |
| |-1={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|continent}}
| |
| |1={{#switch:{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|level}}
| |
| |2={{#ifeq:{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}
| |
| |{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}
| |
| |[[{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|lemma}}|{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|name}}]]
| |
| |[[{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}|lemma}}|{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}|name}}]]}}
| |
| |#default=[[{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|lemma}}|{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|name}}]]
| |
| }}
| |
| |2=[[{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|lemma}}|{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|name}}]]
| |
| |#default={{#ifeq:
| |
| {{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|continent}}
| |
| |{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|continent}}
| |
| |[[{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|lemma}}|{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|name}}]]
| |
| |{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|continent}}
| |
| }}
| |
| }}
| |
| |float ={{{map}}}
| |
| |width ={{{mapsize|}}}
| |
| |label ={{#if:{{{name|}}}|{{#if:{{{text|}}}|{{#ifexist:{{{name}}}|[[{{{name}}}]]|{{{name}}}}}|{{{name}}}}}|{{PAGENAME}}}}
| |
| |maptype={{{maptype|}}}
| |
| |places={{Positionskarte~
| |
| |{{#switch:
| |
| {{#if:{{ParmPart|1|{{{region|}}}}}
| |
| |{{#ifexpr:{{#switch:{{{maplevel|}}}|global=-2|continental=-1|national=0|adm1st=1|adm2nd=2|#default=0}}>
| |
| {{#switch:{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|map}}
| |
| |Erde=-2
| |
| |Afrika|Amerika|Antarktis|Asien|Australien|Eurasien|Europa|Nordamerika|Südamerika
| |
| |Nordpolarmeer|Atlantik|Indik|Pazifik|Südpolarmeer=-1
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|map}}=0
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}|map}}=1
| |
| |#default={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|level}}
| |
| }}
| |
| |{{#switch:{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|map}}
| |
| |Erde=-2
| |
| |Afrika|Amerika|Antarktis|Asien|Australien|Eurasien|Europa|Nordamerika|Südamerika
| |
| |Nordpolarmeer|Atlantik|Indik|Pazifik|Südpolarmeer=-1
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|map}}=0
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}|map}}=1
| |
| |#default={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|level}}
| |
| }}
| |
| |{{#switch:{{{maplevel|}}}|global=-2|continental=-1|national=0|adm1st=1|adm2nd=2|#default=0}}
| |
| }}
| |
| |-2
| |
| }}
| |
| |-2={{Info globe|globe={{{globe|earth}}}|map}}
| |
| |-1={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|continent}}
| |
| |1={{#switch:{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|level}}
| |
| |2={{#ifeq:{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}
| |
| |{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}
| |
| |{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|map}}
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|upper}}|map}}}}
| |
| |#default={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|map}}
| |
| }}
| |
| |2={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|map}}
| |
| |#default={{#ifeq:
| |
| {{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|continent}}
| |
| |{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|continent}}
| |
| |{{Info ISO-3166-2|code={{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|top}}|map}}
| |
| |{{Info ISO-3166-2|code={{ParmPart|1|{{{region|}}}}}|continent}}
| |
| }}
| |
| }}
| |
| | |
| |label={{#if:{{{name|}}}|{{#if:{{{text|}}}|{{#ifexist:{{{name}}}|[[{{{name}}}]]|{{{name}}}}}|{{{name}}}}}|{{PAGENAME}}}}
| |
| <!--
| |
| |label_size =
| |
| |mark =
| |
| |marksize =
| |
| |marktarget =
| |
| |position =
| |
| |wrap =
| |
| |background =
| |
| -->
| |
| <!--Coordinates Koordinaten -->
| |
| |lat = {{{NS|}}}
| |
| |long = {{{EW|}}}
| |
| <!-- Wertebereichstest type, pop, elevation in Vorlage:Positionskarte~ für alle Positionskarten! -->
| |
| |type = {{{type|}}}
| |
| |pop = {{{pop|}}}
| |
| |elevation = {{{elevation|}}}
| |
| |dim = {{{dim|}}}
| |
| |region = {{{region|}}}
| |
| |globe = {{{globe|}}}
| |
| |name = {{#ifeq:{{{name|}}}|coordinates||{{{name|}}}}}
| |
| }}}}
| |
| }}</onlyinclude>
| |
| | |
| {{Dokumentation}} | | {{Dokumentation}} |
| | </noinclude> |
Um die Funktion Vorlage:Position/de/input/dms}}{{#coordinates:57|18|22|N|4|27|32|W|
|
|name=
}} in einem Artikel zu nutzen, verwende {{Position dec}}, dies:
{{Position dec|57|18|22|N|4|27|32|W|display=title}}
Diese Koordinaten sind in Grad-, Minuten- und Bogensekunden.
'title' means that the coordinates will be displayed next to the title.
Verwende Vorlage:Position/de/input/d}}{{#coordinates:44.112|N|87.913|W|||||
|
|name=
}} to the top of an article, use either
{{Position dec|44.112|N|87.913|W|display=title}}
or
{{Position dec|44.112|-87.913|display=title}}
These coordinates are in decimal degrees.
- Degrees, minutes and seconds must be separated by a pipe ("|").
- Map datum must be WGS84 (except for off-earth bodies).
(0.0001° is <11 m, 1″ is <31 m).
- Latitude (N/S) must appear before longitude (E/W).
Optional coordinate parameters follow the longitude and are separated by an underscore ("_"):
Other optional parameters are separated by a pipe ("|"):
- display
|display=inline
(the default) to display in the body of the article only,
|display=title
to display at the top of the article only, or
|display=inline,title
to display in both places.
- name
name=
X to label the place on maps (default is PAGENAME)
Thus: {{Position dec|44.117|-87.913|dim:30_region:US-WI_type:event
|display=inline,title|name=accident site}}
Nutze |display=title
(oder |display=inline,title
) once per article, for the subject of the article, where appropriate.
Bei Fragen zu dieser Vorlage kannst du dich an die Vorlagenwerkstatt wenden oder in der Quelle nachschauen (bisher ist das meist die Vorlage in der Wikipedia).
|