Template:Location/doc: Difference between revisions
More actions
Jarekt moved page Template:Location/doc to Template:Location/general documentation: preparing for creation of standard documentation page using Template:TemplateBox |
No edit summary |
||
| Line 1: | Line 1: | ||
{{TemplateBox | |||
|1=1 | |||
|1d= Degrees of Latitude | |||
|1def= | |||
|1stat=required | |||
|2=2 | |||
|2d=Minutes of Latitude | |||
|2def= | |||
|2stat=required | |||
|3=3 | |||
|3d=Seconds of Latitude | |||
|3def= | |||
|3stat=required | |||
|4=4 | |||
|4d= Latitude Direction (N or S) | |||
|4def= | |||
|4stat=required | |||
|5=5 | |||
|5d=Degrees of Longitude | |||
|5def= | |||
|5stat=required | |||
|6=6 | |||
|6d=Minutes of Longitude | |||
|6def= | |||
|6stat=required | |||
|7=7 | |||
|7d=Seconds of Longitude | |||
|7def= | |||
|7stat=required | |||
|8=8 | |||
|8d=Longitude Direction (W or E) | |||
|8def= | |||
|8stat=required | |||
|9=9 | |||
|9d={{Location/attribute documentation}} | |||
*<code>'''class:object'''</code> is hard-coded value which will be added automatically to all images to tag this location as the ""object'' location | |||
|9def= | |||
|9stat=optional | |||
|name=Location | |||
|desc= Template used for Geo-codeing Commons images, providing camera location using degrees/minutes/seconds (DMS) notation or decimal notation. See [[Commons:Geocoding]] for more information. | |||
{{tl|Location}} is the main template of the {{Tl|Location dec}}, {{Tl|Location dec}}, {{Tl|Object location}}, {{Tl|Object location dec}}, {{Tl|Globe location}} family, as all the other templates rely on {{tl|Location}} [[Special:PrefixIndex/Template:Location|sub-templates]]. | |||
|namespace=file | |||
|usergroup=all | |||
|placement= | |||
|usage-notes=Should be placed directly below {{tl|Information}}, {{tl|Artwork}} or other similar template. If {{tl|Location}} template is also present than it should be placed above this template. | |||
|type=infobox | |||
|example= | |||
|i18n-method=autotranslate | |||
|i18n-desc= | |||
|seealso= | |||
*Other templates from the family: | |||
:*{{Tl|Location}} – used to provide camera location using degrees/minutes/seconds (DMS) notation | |||
:*{{Tl|Location dec}} – used to provide camera location using decimal notation | |||
:*{{Tl|Object location}} – used to provide object location using DMS notation | |||
:*{{Tl|Object location dec}} – used to provide object location using decimal notation | |||
:*{{Tl|Globe location}} – used to provide object location on other globes, like moon, mars, etc. Uses both decimal and DMS notations. | |||
*Related templates | |||
:*{{tl|Location-Panorama}} | |||
:*{{tl|Location map notice}} | |||
:*{{tl|Location possible}}, mark pictures without defined location | |||
:*{{tl|Location required}} | |||
*[[Template:Location/general documentation|old documentation]] | |||
|setscats= [[:Category:Media with locations]] or [[:Category:Media with erroneous locations]] | |||
|lines=one | |||
|shorthand= | |||
|relieson= | |||
}} | |||
= Examples = | |||
<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}}</td> | |||
</tr><tr> | |||
<th>Produces</th> | |||
<td>{{Location|34|1|27.37|N|116|9|29.88|W|region:DE-NI_scale:10000_heading:SW}}</td> | |||
</tr> | |||
</table> | |||
<includeonly> | |||
[[Category:Geocoding templates|{{PAGENAME}}]] | |||
</includeonly> | |||
Revision as of 11:45, 9 October 2012
Template used for Geo-codeing Commons images, providing camera location using degrees/minutes/seconds (DMS) notation or decimal notation. See Commons:Geocoding for more information.
{{Location}} is the main template of the {{Location dec}}, {{Location dec}}, {{Object location}}, {{Object location dec}}, {{Globe location}} family, as all the other templates rely on {{Location}} sub-templates.
The template automatically sets the following categories: Category:Media with locations or Category:Media with erroneous locations
Usage
{{Location |1= |2= |3= |4= |5= |6= |7= |8= |9= }}
Should be placed directly below {{Information}}, {{Artwork}} or other similar template. If {{Location}} template is also present than it should be placed above this template.
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | Degrees of Latitude | empty | required | |
2 | Minutes of Latitude | empty | required | |
3 | Seconds of Latitude | empty | required | |
4 | Latitude Direction (N or S) | empty | required | |
5 | Degrees of Longitude | empty | required | |
6 | Minutes of Longitude | empty | required | |
7 | Seconds of Longitude | empty | required | |
8 | Longitude Direction (W or E) | empty | required | |
9 | Information attributes - used to pass to GeoHack server metadata about the coordinates. Apart from heading, this information is not used by {{Location/doc}} template. Attributes have to be in the format field1:value1_field2:value2_field3:value3, etc. The following fields are supported:
| empty | optional | |
Additional information
The template is intended to be used in the following namespaces: the File namespace
The template is intended to be used by the following user groups: all users
See also
- Other templates from the family:
- {{Location}} – used to provide camera location using degrees/minutes/seconds (DMS) notation
- {{Location dec}} – used to provide camera location using decimal notation
- {{Object location}} – used to provide object location using DMS notation
- {{Object location dec}} – used to provide object location using decimal notation
- {{Globe location}} – used to provide object location on other globes, like moon, mars, etc. Uses both decimal and DMS notations.
- Related templates
- {{Location-Panorama}}
- {{Location map notice}}
- {{Location possible}}, mark pictures without defined location
- {{Location required}}
Localization
This template is localized through {{Autotranslate}}.
To add your language to the list of languages supported by this template, please copy the code of Template:Location/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.
Examples
| Code | {{Location|34|1|27.37|N|116|9|29.88|W|...}} |
|---|---|
| Produces | 34.0243° N 116.1583° W |