Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Object location: Difference between revisions

Template page
m dab
version using internationalized template
Line 1: Line 1:
<!--Explanation of Variables
<noinclude><!--Explanation of Variables
{1}:Degree(°)
{1}:Degree(°)
{2}:Minutes(')
{2}:Minutes(')
{3}:Seconds("), 40.22
{3}:Seconds("),
{4}:Latitude, e.g. N (North) or S (South)
{4}:Latitude, e.g. N (North) or S (South)
{5}:Degree (°)
{5}:Degree (°)
Line 9: Line 9:
{8}:Longitude, e.g. E (East) or W (West)
{8}:Longitude, e.g. E (East) or W (West)
{9}:Attribute-Parameters "type", "region" and "scale"(type:landmark_region:EG_scale:5000
{9}:Attribute-Parameters "type", "region" and "scale"(type:landmark_region:EG_scale:5000
-->
--></noinclude>
{| cellpadding="3" class="toccolours vcard" width="100%" style="margin-top:-1px;"
{{Location/{{#ifexist:Template:Location/{{int:Lang}}|{{int:Lang}}|en}}
! style="background-color:#ccccff; text-align:right; vertical-align: middle;" width="15%"|Object location <span style="display:none" class="fn org">{{{name|{{PAGENAME}}}}}</span>
| mode = 2 <!-- mode=2 gives Object Location -->
|
| lat  = {{ #ifeq:{{{4}}}|S|-|}}{{ #ifeq:{{{4}}}|s|-|}}{{#expr: {{{1|0}}} + {{{2|0}}}/60.0 + {{{3|0}}}/3600.0 }}
{{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>
| lon  = {{ #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 }}}}
| Coordinates = {{coor_dms|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|type:landmark_{{{9}}}}}
|<small>([[Commons:Geocoding|Info]])</small>
| NoError    = {{IsNum|{{{1|}}}}} and {{IsNum|{{{2|}}}}} and {{IsNum|{{{3|}}}}} and {{IsNum|{{{5|}}}}} and {{IsNum|{{{6|}}}}} and {{IsNum|{{{7|}}}}} and {{#ifeq:{{{4|}}}|N|1|{{#ifeq:{{{4|}}}|S|1|0}}}} and {{#ifeq:{{{8|}}}|E|1|{{#ifeq:{{{8|}}}|W|1|0}}}}
|}<includeonly>{{{category|[[Category:Media with object locations]]}}}</includeonly><noinclude>
}}<noinclude>
 
<!-- {{Documentation|template:location/doc}} -->
[[Category:Geocoding templates|{{PAGENAME}}]]
[[Category:Infobox templates|{{PAGENAME}}]]
[[Category:Templates generating Geo]]


==Brief syntax description ==
==Brief syntax description ==
Line 33: Line 36:
This template also outputs a [[w:WP:GEOUF|Geo microformat]].
This template also outputs a [[w:WP:GEOUF|Geo microformat]].


[[Category:Geocoding templates|{{PAGENAME}}]]
[[Category:Templates generating Geo]]
</noinclude>
</noinclude>

Revision as of 02:52, 10 March 2009

Template:Location/en

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.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.