|
|
| Line 1: |
Line 1: |
| {{#ifeq:{{BASEPAGENAME}}|Location|{{Redirects|Camera location<!-- |Koordynaty -->}}}} {{Lua|Module:Coordinates}}
| | do not expand! |
| = Syntax #1: decimal degrees =
| |
| {{TemplateBox
| |
| |1=1
| |
| |1d-td-en= Degrees of Latitude. The sign indicates hemisphere: +(North) and -(South). DMS format is also allowed, for example <code>50° 37′ 50.63″ N</code>.
| |
| |1label-en=Latitude
| |
| |1type=string
| |
| |1def=
| |
| |1stat=optional
| |
| | |
| |2=2
| |
| |2d-td-en=Degrees of Longitude. The sign indicates hemisphere: +(East) and -(West). DMS format is also allowed, for example <code>6° 01′ 57.61″ E</code>.
| |
| |2label-en=Longitude
| |
| |2type=string
| |
| |2def=
| |
| |2stat=optional
| |
| | |
| |3=3
| |
| |3aliases=attributes
| |
| |3d={{Location/attribute documentation}}
| |
| |3label-en=attributes
| |
| |3type=string
| |
| |3def=
| |
| |3stat=optional
| |
| | |
| |4=wikidata
| |
| |4d=Wikidata Q-code of an item with [[d:Property:P625|coordinate location (P625)]]. Alternative to latitude and longitude.
| |
| |4aliases = Wikidata
| |
| |4label-en=wikidata
| |
| |4type=string
| |
| |4def=
| |
| |4stat=optional-
| |
| | |
| |5=bare
| |
| |5d="bare=1" will show only field value without field's name ("Object location")
| |
| |5label-en=bare
| |
| |5def=
| |
| |5stat=optional-
| |
| | |
| |6=secondary
| |
| |6d=''secondary=1'' will tag this set of coordinates as ''secondary''. This template calls {{[[mw:Extension:GeoData|#coordinates:]]}} [[meta:Manual:Parser functions|parser function]], one of the parameters of which is '''primary''' vs. '''secondary''' label. Primary coordinates define file's camera location and are the default, but each file can only have single ''primary'' location tag.
| |
| |6label-en=secondary
| |
| |6def=
| |
| |6stat=optional-
| |
| | |
| |7=prec
| |
| |7d=By default the georeference precision is about 0.3 meters or 1/100 of a second on the equator. To show less digits add parameter "prec" with a measurement precisions expressed in meters. For example 40 meter uncertainty would be expressed as "prec=40". At the moment this parameter only affects the display of the coordinates.
| |
| |7label-en=precision
| |
| |7type=number
| |
| |7def=0.3
| |
| |7stat=optional-
| |
| | |
| |8=lang
| |
| |8d=language code (only needs to be provided if the language shall be fixed and independent from the user's preferences)
| |
| |8label-en=language
| |
| |8type=string
| |
| |8def=language code of the user language (<nowiki>{{int:Lang}}</nowiki>)
| |
| |8stat=optional-
| |
| | |
| |name={{BASEPAGENAME}}
| |
| |desc-en= Template used for geocoding Commons images, providing camera location using decimal or degrees/minutes/seconds (DMS) syntax. See [[Commons:Geocoding]] for more information.
| |
| | |
| {{tl|Location}} = {{tl|Camera location}} is the main template of the {{tl|Object location}} and {{tl|Globe location}} family and is supposed to be used to define the coordinates and {{F|Compass Card B+W.svg|heading of the location}} of the camera.
| |
| | |
| |desc-de= Die Vorlage wird für die Geocodierung von Commons-Bildern verwendet, welche die Kameraposition mittels Dezimal- oder Grad / Minuten / Sekunden (DMS) Syntax bereitstellt. Siehe [[Commons: Geocoding]] für weitere Informationen.
| |
| | |
| {{tl|Location}} ist die Hauptvorlage für die {{tl|Object location}} und {{tl|Globe location}} -Gruppe und soll verwendet werden, um die Koordinaten und den Blickwinkel der Position der Kamera zu definieren.
| |
| |namespace=file
| |
| |usergroup=all
| |
| |placement=
| |
| |usage-notes=Should be placed directly above or below {{tl|Information}}, {{tl|Artwork}} or other similar template.<br /><small>Note: some users prefer to include location template(s) into the "Description" field of {{tl|Information}} template to group all location information – objections contend that graphic design is not ideally adjusted for such use. See [[Template talk:Information/Archive 2#Location template|this]] and [[Template talk:Information/Archive 2#Suggestions|this]] discussion.</small>
| |
| |type=infobox
| |
| |example=
| |
| |i18n-method=-
| |
| |i18n-desc=
| |
| |seealso=
| |
| |setscats= Depending on namespace:
| |
| *[[:Category:Media with locations]] (for files)
| |
| *[[:Category:Galleries with coordinates]] (for galleries)
| |
| *[[:Category:Categories with coordinates]] (for categories)
| |
| In case of errors:
| |
| *[[:Category:Media with default locations]] (set by the template in case of lat=0 and lon=0 coordinates)
| |
| *[[:Category:Media with erroneous locations]] (set by the template for other issues)
| |
| *[[:Category:Pages with malformed coordinate tags]] (set by {{[[mw:Extension:GeoData|#coordinates:]]}})
| |
| Wikidata related:
| |
| *[[:Category:Pages with local object coordinates and matching Wikidata coordinates]]
| |
| *[[:Category:Pages with local coordinates and similar Wikidata coordinates]]
| |
| *[[:Category:Pages with local object coordinates and missing Wikidata coordinates]]
| |
| *[[:Category:Pages with local object coordinates and mismatching Wikidata coordinates]]
| |
| |lines=one
| |
| |shorthand=
| |
| |relieson=
| |
| }}
| |
| | |
| = Syntax #2: Degrees/Minutes/Seconds (DMS) =
| |
| {{TemplateBox
| |
| |1=1
| |
| |1d-td-en= Degrees of Latitude
| |
| |1label-en=latitude degrees
| |
| |1type=number
| |
| |1def=
| |
| |1stat=required
| |
| | |
| |2=2
| |
| |2d-td-en=Minutes of Latitude
| |
| |2label-en=latitude minutes
| |
| |2type=number
| |
| |2def=
| |
| |2stat=required
| |
| | |
| |3=3
| |
| |3d-td-en=Seconds of Latitude
| |
| |3label-en=latitude seconds
| |
| |3type=number
| |
| |3def=
| |
| |3stat=required
| |
| | |
| |4=4
| |
| |4d-td-en= Latitude Direction or North/South hemisphere (N or S)
| |
| |4label-en=North/South hemisphere
| |
| |4type=string
| |
| |4def=
| |
| |4stat=required
| |
| | |
| |5=5
| |
| |5d-td-en=Degrees of Longitude
| |
| |5label-en=longitude degrees
| |
| |5type=number
| |
| |5def=
| |
| |5stat=required
| |
| | |
| |6=6
| |
| |6d-td-en=Minutes of Longitude
| |
| |6label-en=longitude minutes
| |
| |6type=number
| |
| |6def=
| |
| |6stat=required
| |
| | |
| |7=7
| |
| |7d-td-en=Seconds of Longitude
| |
| |7label-en=longitude seconds
| |
| |7type=number
| |
| |7def=
| |
| |7stat=required
| |
| | |
| |8=8
| |
| |8d-td-en=Longitude Direction or East/West Hemisphere (W or E)
| |
| |8label-en=East/West hemisphere
| |
| |8type=string
| |
| |8def=
| |
| |8stat=required
| |
| | |
| |9=9
| |
| |9aliases=attributes
| |
| |9d-en={{Location/attribute documentation}}
| |
| |9label-en=attributes
| |
| |9type=string
| |
| |9def=
| |
| |9stat=optional
| |
| | |
| |10=bare
| |
| |10d="bare=1" will show only field value without field's name ("Camera location")
| |
| |10label-en=bare
| |
| |10def=
| |
| |10stat=optional-
| |
| | |
| |11=prec
| |
| |11d=By default the georeference precision is about 0.3 meters or 1/100 of a second on the equator. To show less digits add parameter "prec" with a measurement precisions expressed in meters. For example 40 meter uncertainty would be expressed as "prec=40". At the moment this parameter only affects the display of the coordinates.
| |
| |11label-en=precision
| |
| |11type=number
| |
| |11def=0.3
| |
| |11stat=optional-
| |
| | |
| |12=lang
| |
| |12d=language code (only needs to be provided if the language shall be fixed and independent from the user's preferences)
| |
| |12label-en=language
| |
| |12type=string
| |
| |12def=language code of the user language (<nowiki>{{int:Lang}}</nowiki>)
| |
| |12stat=optional-
| |
| | |
| |name={{BASEPAGENAME}}
| |
| |desc=Alternative DMS syntax.
| |
| |namespace=contents
| |
| |usergroup=all
| |
| |placement=
| |
| |usage-notes=
| |
| |type=infobox
| |
| |example=
| |
| |i18n-method=
| |
| |i18n-desc=All translations at [[Module:I18n/coordinates]]
| |
| |seealso=
| |
| | |
| *Other templates from the family:
| |
| :*{{tl|Location}} – used to provide camera location using
| |
| :*{{tl|Object location}} – used to provide object location using
| |
| :*{{tl|Globe location}} – used to provide object location on other globes, like Moon, Mars, etc.
| |
| *Related templates
| |
| :*{{tl|Location-Panorama}}
| |
| :*{{tl|Location map notice}}
| |
| :*{{tl|Location possible}}, mark pictures without defined location
| |
| :*{{tl|Location required}}
| |
| :*{{tl|GPS EXIF}}
| |
| :*{{tl|Location withheld}}
| |
| :*{{tl|Location estimated}}
| |
| :*{{tl|Location rounded}}
| |
| *[[Template:Location/general documentation|old documentation]]
| |
| |setscats=
| |
| |lines=one
| |
| |shorthand=
| |
| |relieson=[[Module:Coordinates]]
| |
| }}
| |
| | |
| = Syntax #2a: Degrees/Minutes/Seconds (DMS) symbols =
| |
| It is possible to use the output format (of e.g. {{T0|Location}}, or {{W|Wikimapia}}) as the input for {{T0|Location}}:<br />
| |
| The DMS data string can be converted from the ''symbol format''
| |
| e.g. {{Tle|T={{BASEPAGENAME}} |p1=1|34°01′27.37″N 116°09′29.88″W |...}}<br />
| |
| to the above DMS format; all the other parameters also like above.
| |
| Additional spaces or commas won't matter.
| |
| | |
| = Examples =
| |
| {{#ifeq:{{BASEPAGENAME}}|Globe location|
| |
| <!-- ========================================================================= globe -->
| |
| <table class="wikitable" style="width:100%;">
| |
| <caption>Syntax #1</caption>
| |
| <caption>{{Tl|Globe location}} example</caption>
| |
| </tr>
| |
| <th>Code</th>
| |
| <td><code>{{Tlx|Globe location|34.02427|-116.15830|moon}}</code></td>
| |
| </tr><tr>
| |
| <th>Produces</th>
| |
| <td>{{{{<noinclude>BASE</noinclude>PAGENAME}}|34.02427|-116.15830|moon}}</td>
| |
| </table>
| |
| | |
| <table class="wikitable" style="width:100%;">
| |
| <caption>Syntax #2</caption>
| |
| </tr>
| |
| <th>Code</th>
| |
| <td><code>{{Tlx|Globe location|34|1|27.37|N|116|9<nowiki>|29.88|W|mars</nowiki>}}</code></td>
| |
| </tr><tr>
| |
| <th>Produces</th>
| |
| <td>{{{{<noinclude>BASE</noinclude>PAGENAME}}|34|1|27.375|N|116|9|29.88|W|mars}}</td>
| |
| </tr>
| |
| </table>
| |
| <!-- ??
| |
| <table class="wikitable" style="width:100%;">
| |
| <caption>Main syntax</caption>
| |
| <th>Code</th>
| |
| <td><code>{{Tlx|Location|34|1|27.37|N|116|9|29.88|W|region:DE-NI_scale:10000_heading:SW}}</code></td>
| |
| </tr><tr>
| |
| <th>Produces</th>
| |
| <td>{{{{<noinclude>BASE</noinclude>PAGENAME}}|34|1|27.37|N|116|9|29.88|W|region:DE-NI_scale:10000_heading:SW}}</td>
| |
| </tr>
| |
| </table> -->
| |
| <!-- ========================================================================= globe -->
| |
| |
| |
| <!-- ========================================================================= earth -->
| |
| <table class="wikitable" style="width:100%;">
| |
| <caption>Syntax #1 — 2 location values</caption>
| |
| </tr>
| |
| <th>Code</th>
| |
| <td>
| |
| <code>{{Tlx|{{BASEPAGENAME}}|34.02427|-116.15830|region:DE-NI_scale:5000}}</code>
| |
| </td>
| |
| </tr><tr>
| |
| <th>Produces</th>
| |
| <td>{{{{<noinclude>BASE</noinclude>PAGENAME}}|34.02427|-116.15830|region:DE-NI_scale:5000}}</td>
| |
| </tr>
| |
| </table>
| |
| | |
| <table class="wikitable" style="width:100%;">
| |
| <caption>Syntax #2 — 8 location values</caption>
| |
| </tr>
| |
| <th>Code</th>
| |
| <td>
| |
| <code>{{Tlx|{{BASEPAGENAME}}|34|1|27.37|N|116|9|29.88|W|region:DE-NI_scale:6000}}</code>
| |
| </td>
| |
| </tr><tr>
| |
| <th>Produces</th>
| |
| <td>{{{{<noinclude>BASE</noinclude>PAGENAME}}|34|1|27.37|N|116|9|29.88|W|region:DE-NI_scale:10000_heading:SW}}</td>
| |
| </tr>
| |
| </table>
| |
| | |
| <table class="wikitable" style="width:100%;">
| |
| <caption>Syntax #2a — 1 parameter</caption>
| |
| </tr>
| |
| <th>Code</th>
| |
| <td><code>{{Tlx|{{BASEPAGENAME}}|34° 01′ 27.37″ N, 116° 09′ 29.88″ W|region:DE-NI_scale:10000_heading:SW}}</code></td>
| |
| </tr><tr>
| |
| <th>Produces</th>
| |
| <td>{{{{<noinclude>BASE</noinclude>PAGENAME}}|34° 01′ 27.37″ N, 116° 09′ 29.88″ W|region:DE-NI_scale:10000_heading:SW}}</td>
| |
| </tr>
| |
| </table>
| |
| | |
| <table class="wikitable" style="width:100%;">
| |
| <caption>Syntax #2b — 1 parameter</caption>
| |
| </tr>
| |
| <th>Code</th>
| |
| <td><code>{{Tlx|Location|34 1 27.37 N 116 9 29.88 W|region:DE-NI_scale:10000_heading:SW}}</code></td>
| |
| </tr><tr>
| |
| <th>Produces</th>
| |
| <td>{{{{<noinclude>BASE</noinclude>PAGENAME}}|34 1 27.37 N 116 9 29.88 W |region:DE-NI_scale:10000_heading:SW}}</td>
| |
| </tr>
| |
| <!--
| |
| </tr>
| |
| <th>Code</th>
| |
| <td><code>{{Tlx|Location|34/1/27.37/N/116/9/29.88/W|region:DE-NI_scale:10000_heading:SW}}</code></td>
| |
| </tr><tr>
| |
| <th>Produces</th>
| |
| <td>{{{{<noinclude>BASE</noinclude>PAGENAME}}|34/1/27.37/N/116/9/29.88/W|region:DE-NI_scale:10000_heading:SW}}</td>
| |
| </tr> -->
| |
| </table>
| |
| }}
| |
| <includeonly>
| |
| [[Category:Lua-based templates|{{PAGENAME}}]]
| |
| [[Category:Geocoding templates|{{PAGENAME}}]]
| |
| </includeonly>
| |
| <templatedata>
| |
| {
| |
| "params": {
| |
| "lat": {},
| |
| "lon": {}
| |
| },
| |
| "description": "Template used for geocoding Commons images, providing camera location using decimal or degrees/minutes/seconds (DMS) syntax."
| |
| }
| |
| </templatedata>
| |