Difference between revisions of "Template:Location"

From Peace Corps Wiki
Jump to: navigation, search
m (Protected "Template:Location" [edit=sysop:move=sysop])
(added example and example usage)
Line 1: Line 1:
 +
<noinclude>
 +
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:
 +
 +
<pre>
 +
{{Location
 +
|Coordinates={{#geocode:{{{Site, Region}}},{{{Country}}}}}
 +
}}
 +
</pre>
 +
 +
Edit the page to see the template text.
 +
 +
{|
 +
| colspan="2" align="center" | '''<big>EXAMPLE:</big>'''
 +
|-
 +
|
 +
<pre>{{Location
 +
|Coordinates={{#geocode:La Libertad, Guayas,Ecuador}}
 +
}}
 +
</pre>
 +
|
 +
{{Location
 +
|Coordinates={{#geocode:La Libertad, Guayas, Ecuador}}
 +
}}
 +
|}
 +
 +
</noinclude><includeonly>
 +
 +
 +
 +
 
<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">{{#semantic_google_map:{{{Coordinates}}}|13|G_NORMAL_MAP|GLargeMapControl|pmap|290|290}}
 
<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 15:15, 28 March 2009

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}}]])