Difference between revisions of "Template:Location"

From Peace Corps Wiki
Jump to: navigation, search
Line 48: Line 48:
  
  
<div style="width: 300px; height: 300px; clear:right; float:right; margin:0 0 2em 1em;word-wrap:break-word;"><div class="thumbinner">{{#semantic_google_map:{{{Coordinates}}}|13|G_NORMAL_MAP|GLargeMapControl|pmap|290|290}}
+
<div style="width: 300px; height: 300px; clear:right; float:right; margin:0 0 2em 1em;word-wrap:break-word;"><div class="thumbinner">{{{{#coordinates:{{{{Coordinates}}}|dms|yes}}
 
<div class="thumbcaption" style="width:280px;font-size: 85%;">{{PAGENAME}}<br />([[Location Coordinates::{{{Coordinates}}}]])</div></div></div>
 
<div class="thumbcaption" style="width:280px;font-size: 85%;">{{PAGENAME}}<br />([[Location Coordinates::{{{Coordinates}}}]])</div></div></div>
 
[[Category:Location]]
 
[[Category:Location]]

Revision as of 10:35, 10 June 2011

This is the 'Location' template. It is useful for specifying sites which have the same name within a country or which don't show up on Google maps.

It should be called in the following format:

{{Location
|Coordinates={{#geocode:{{{Site, Region}}},{{{Country}}}}}
}}

Edit the page to see the template text.

EXAMPLE:
{{Location
|Coordinates={{#geocode:La Libertad, Guayas,Ecuador}}
}}



{{#display_map:{{#geocode:La Libertad, Guayas, Ecuador}}|service=openlayers}}
Location
([[Location Coordinates::{{#geocode:La Libertad, Guayas, Ecuador}}]])
EXAMPLE 2:
{{Location
|Coordinates=16°37'36" N,24°21'07" W
}}



{{#display_map:16°37'36" N,24°21'07" W|service=openlayers}}

http://semantic-mediawiki.org/wiki/Type:Geographic_coordinate