Template:Object location: Difference between revisions
Template page
More actions
m noinclude cat |
make sure this template generates urls which are distinct from camera location urls |
||
| Line 13: | Line 13: | ||
! style="background-color:#ccccff; text-align:right; vertical-align: middle;" width="15%"|Object location <span style="display:none" class="fn org">{{{name|{{PAGENAME}}}}}</span> | ! style="background-color:#ccccff; text-align:right; vertical-align: middle;" width="15%"|Object location <span style="display:none" class="fn org">{{{name|{{PAGENAME}}}}}</span> | ||
| | | | ||
{{coor_dms|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}| | {{coor_dms|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|class:object_type:landmark_{{{9}}}}} <span class="geo" style="display: none">{{ #ifeq:{{{4}}}|S|-|}}{{ #ifeq:{{{4}}}|s|-|}}{{#expr: {{{1|0}}} + {{{2|0}}}/60.0 + {{{3|0}}}/3600.0 }};{{ #ifeq:{{{8}}}|W|-|}}{{ #ifeq:{{{8}}}|w|-|}}{{#expr: {{{5|0}}} + {{{6|0}}}/60.0 + {{{7|0}}}/3600.0 }}</span> | ||
|{{Template:Commons:Geocoding visualized|{{ #ifeq:{{{4}}}|S|-|}}{{ #ifeq:{{{4}}}|s|-|}}{{#expr: {{{1|0}}} + {{{2|0}}}/60.0 + {{{3|0}}}/3600.0 }}|{{ #ifeq:{{{8}}}|W|-|}}{{ #ifeq:{{{8}}}|w|-|}}{{#expr: {{{5|0}}} + {{{6|0}}}/60.0 + {{{7|0}}}/3600.0 }}}} | |{{Template:Commons:Geocoding visualized|{{ #ifeq:{{{4}}}|S|-|}}{{ #ifeq:{{{4}}}|s|-|}}{{#expr: {{{1|0}}} + {{{2|0}}}/60.0 + {{{3|0}}}/3600.0 }}|{{ #ifeq:{{{8}}}|W|-|}}{{ #ifeq:{{{8}}}|w|-|}}{{#expr: {{{5|0}}} + {{{6|0}}}/60.0 + {{{7|0}}}/3600.0 }}}} | ||
|<small>([[Commons:Geocoding|Info]])</small> | |<small>([[Commons:Geocoding|Info]])</small> | ||
Revision as of 18:06, 24 January 2009
| Object location | Template:Commons:Geocoding visualized | (Info) |
|---|
Brief syntax description
| Syntax | {{Object location|Degree|Minute|Second|Latitude|Degree|Minute|Second|Longitude|Information attributes}} |
| Example | {{Object location|52|09|03.70|N|9|57|02.79|E|region:DE}} |
Note this template is for the location of the main subject of the photograph (features, landmarks, structures etc) and 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). Additionally it may be appropriate to specify the location and heading of the camera taking the photograph - use {{Location}}. See Commons:Geocoding#Parameters for more information.
This template also outputs a Geo microformat.