Difference between revisions of "Template:Location dec"
m |
(Created page with '<noinclude><!--Explanation of Variables {1}:Degree (decimal) of latitude , e.g. + (North) or - (South) {2}:Degree (decimal) of longitude, e.g. + (East) or - (West) {3}:Attribute-…') |
(No difference)
|
Revision as of 19:02, 1 July 2010
Camera location |
Latitude, Longitude |
This and other images at their locations on: Google Maps - Google Earth - OpenStreetMap | (Info) |
---|
Afrikaans | беларуская (тарашкевіца) | català | čeština | dansk | Deutsch | English | español | eesti | euskara | suomi | français | galego | Հայերեն | עברית | magyar | italiano | 日本語 | ភាសាខ្មែរ | 한국어 | lietuvių | македонски | Plattdüütsch | Nederlands | norsk bokmål | polski | português | română | русский | српски / srpski | ไทย | vèneto | 中文 | 中文(简体) | +/−
[edit]
DocumentationThe family of templates used to geo-code Commons images. See Commons:Geocoding for info on how to find coordinated for your images.
- {{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.
In most of the cases camera location is preferred and most of the images should use the first two templates. However in some cases object location, indicating position of the main subject of the photograph, makes more sense, for example when providing location of a painting or sheet music. It can also be used to point to a nearby feature when giving the location of a plant or animal where an exact location is not appropriate (eg where you do not want to reveal the exact location of a rare plant).
Those four templates output a Geo_(microformat) and add images to either Category:Media with locations or Category:Media with erroneous locations.
Syntax
{{Location|Degree|Minute|Second|Latitude|Degree|Minute|Second|Longitude|Information attributes}}
{{Location dec|Degree Latitude|Degree Longitude|Information attributes}}
{{Object location|Degree|Minute|Second|Latitude|Degree|Minute|Second|Longitude|Information attributes}}
{{Object location dec|Degree Latitude|Degree Longitude|Information attributes}}
{{Globe location|Degree Latitude|Degree Longitude|Globe|Information attributes}}
{{Globe location|Degree|Minute|Second|Latitude|Degree|Minute|Second|Longitude|Globe|Information attributes}}
Examples
Code | {{Location|34|1|27.37|N|116|9|29.88|W|region:DE-NI_type:landmark_scale:10000_heading:SE}} |
||||
---|---|---|---|---|---|
Produces |
|
Code | {{Location dec|34.02427|-116.15830|region:DE-NI_type:landmark_scale:10000_heading:SW}} |
||||
---|---|---|---|---|---|
Produces |
|
Code | {{Object location dec|34.02427|-116.15830|region:DE-NI_type:landmark_scale:10000}} |
||||
---|---|---|---|---|---|
Produces |
|
Code | {{Globe Location|34.02427|-116.15830|moon}} |
||||
---|---|---|---|---|---|
Produces |
|
Code | {{Globe location|34|1|27.37|N|116|9|29.88|W|mars}} |
||
Produces |
|
Note, that with above two templates, you should indicate camera position and not object position. To make clear what what was photographed add the heading:xyz
parameter using degrees or direction acronyms as shown on the compass. See Commons:Geocoding#Parameters for more information.
Also note that the output of those two templates is identical despite of different inputs.
The syntax and output of {{Object location}} and {{Object location dec}} templates is the same, except for the word "Object" in the template name resulting in use of Object Location phrase instead of Camera Location in the output.
Parameters
Parameter | Mandatory or Optional | Default | Description |
---|---|---|---|
{1} | Mandatory | Undefined | Degrees of Latitude |
{2} | Mandatory | Undefined | Minutes of Latitude |
{3} | Mandatory | Undefined | Seconds of Latitude |
{4} | Mandatory | Undefined | Latitude Direction (N or S) |
{5} | Mandatory | Undefined | Degrees of Longitude |
{6} | Mandatory | Undefined | Minutes of Longitude |
{7} | Mandatory | Undefined | Seconds of Longitude |
{8} | Mandatory | Undefined | Longitude Direction (W or E) |
{9} | Optional | type:landmark | region:XX-YYY_scale:_heading: |
Parameter | Mandatory or Optional | Default | Description |
---|---|---|---|
{1} | Mandatory | Undefined | Degrees of Latitude |
{2} | Mandatory | Undefined | Degrees of Longitude |
{3} | Optional | type:landmark | region:XX-YYY_scale:_heading: |
Parameter | Mandatory or Optional | Default | Description |
---|---|---|---|
{1} | Mandatory | Undefined | Degrees of Latitude |
{2} | Mandatory | Undefined | Degrees of Longitude |
{3} | Mandatory | Earth | Globe - Supported types: Mars, Moon, Venus, Mercury, Titan, Ganymede |
{4} | Optional | type:landmark | region:XX-YYY_scale:_heading: |
Where:
region:XX-YYY
XX
is an ISO 3166-1 alpha 2 country code abbreviation, andYYY
is a 2- or 3- characters ISO 3166-2 province/region/state code abbreviation (typically the same as a local postal code abbreviation).
type:
is a class descriptor about the object. It is defined by geohack.php and mapsources.php on ToolServer.Org and corresponding documentation can be found on en:WP:GEO. NOTE:type:landmark
is hard-coded default valuescale:
is an information about which range the image covers, given in meters (1000 is 1 kilometer)heading:
is either a compass rose point (up to four letters) or degree heading (zeropoint North, clockwise).
Translation
To create a new language version of all four templates, create a new subpage of Template:Location, cut and paste code below and translate terms in bold letters. For some languages it might also make sence to translate optional labels written in italics.
{{Location/layout
| lat = {{{lat}}}
| lon = {{{lon}}}
| attributes = {{{attributes}}}
| NoError = {{{NoError}}}
| mode = {{{mode}}}
| globe = Earth
| lang = {{subst:SUBPAGENAME}}
| Location-label3 = Location on {{#switch: {{{globe|Earth}}} | Mars = Mars | Moon = Moon | Venus = Venus | Mercury = Mercury
| Titan = Titan | Ganymede = Ganymede | Earth = Earth}}
| Location-label1 = Camera Location
| Location-label2 = Object Location
| Link-label = This and other images at their location on:
| GoogleMaps = Google Maps
| GoogleEarth = Google Earth
| OpenStreetMap = OpenStreetMap
| Proximityrama = Proximityrama
| Info-label = Info
| N = N
| S = S
| W = W
| E = E
}}<noinclude>{{translated tag|infobox}}</noinclude>
See also
- {{Location-Panorama}}
- {{Location map notice}}
- {{Location possible}}, mark pictures without defined location
- {{LocationRequired}}
af:Sjabloon:Coord
ar:قالب:كوورد
be-x-old:Шаблён:Каардынаты
bg:Шаблон:Coord
bs:Template:coord
ca:Template:Coord
cs:Šablona:Geo dms
en:Template:Coord
es:Plantilla:Coord
eo:Ŝablono:Koord
fr:Modèle:Coord
fur:Model:Coord
hsb:Předłoha:Koord
ia:Patrono:Coord
it:Template:Coord
ja:Template:Coord
no:Mal:Koordinater
pl:Szablon:Koordynaty
pt:Predefinição:Coord
ro:Format:Coord
ru:Template:Coord
simple:Template:Coord
sl:Predloga:Koord
sv:Mall:Coord
uk:Шаблон:Координати
vo:Samafomot:Coord
zh:Template:Coord