Template:Location
This is a modified version that uses #coordinates from Extension:DataValues which parses differently than in Extension:GeoData that is used on Wikimedia Commons.
So parameters #9 and the last (primary or secondary) are ignored. |
Camera location |
|
This and other images at their locations on: Google Maps - Google Earth - OpenStreetMap | (Info) |
---|
Afrikaans | беларуская (тарашкевіца) | brezhoneg | català | čeština | dansk | Deutsch | English | español | eesti | euskara | suomi | français | galego | עברית | hrvatski | magyar | Հայերեն | italiano | 日本語 | ភាសាខ្មែរ | 한국어 | lietuvių | македонски | മലയാളം | Plattdüütsch | Nederlands | norsk bokmål | polski | português | română | русский | slovenščina | српски / srpski | svenska | ไทย | Türkçe | vèneto | 中文(简体) | 中文(繁體) | +/−
[edit]
Documentation
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 above or below {{Information}}, {{Artwork}} or other similar template.
Note: some users prefer to include location template(s) into the „Description“ field of {{Information}} template in order to group all location information together – objections are in point of graphic design not ideal adjusted for such use. See this and this discussion.
Parameters
Parameter name | Description | Default value | required or optional?
|
---|---|---|---|
parameter #1 (1) | Degrees of Latitude | empty | required |
parameter #2 (2) | Minutes of Latitude | empty | required |
parameter #3 (3) | Seconds of Latitude | empty | required |
parameter #4 (4) | Latitude Direction (N or S) | empty | required |
parameter #5 (5) | Degrees of Longitude | empty | required |
parameter #6 (6) | Minutes of Longitude | empty | required |
parameter #7 (7) | Seconds of Longitude | empty | required |
parameter #8 (8) | Longitude Direction (W or E) | empty | required |
parameter #9 (9) | Information attributes - used to pass to GeoHack server metadata about the coordinates. This information is not used by {{Location}} template. Attributes have to be in the format field1:value1_field2:value2_field3:value3 , etc. The following fields are supported:
|
empty | optional |
secondary | This template calls {{#coordinates:}} parser function, one of the parameters of which is primary vs. secondary label. Primary coordinates define file's camera location and are the default. Use this parameter to define coordinates as secondary. | 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
Afrikaans | العربية | беларуская (тарашкевіца) | brezhoneg | català | čeština | dansk | Deutsch | English | Esperanto | español | eesti | euskara | فارسی | suomi | français | galego | עברית | hrvatski | magyar | Հայերեն | italiano | 日本語 | ភាសាខ្មែរ | 한국어 | lietuvių | македонски | മലയാളം | Plattdüütsch | Nederlands | norsk nynorsk | norsk bokmål | polski | português | română | русский | slovenčina | slovenščina | српски / srpski | svenska | ไทย | Türkçe | vèneto | 中文(简体) | 中文(繁體) |
This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:Location/layout.
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 |
|