Difference between revisions of "Template:Map"

From Wikispooks
Jump to navigation Jump to search
m (Text replacement - "|caption" to "|image_caption")
m (close the includeonly tag)
Line 18: Line 18:
 
|style="text-align:center; padding: 0.5em;" |{{#if:{{{caption|}}}|{{{caption|}}}<br/>}}
 
|style="text-align:center; padding: 0.5em;" |{{#if:{{{caption|}}}|{{{caption|}}}<br/>}}
 
<small>''Use controls or mouse to pan & resize. Click flags for more information''</small>
 
<small>''Use controls or mouse to pan & resize. Click flags for more information''</small>
|}
+
|}</includeonly>

Revision as of 13:07, 15 May 2015

This template is for placing a GoogleMaps map and caption in a right-floating box.
The caption text will wrap within the box border and the borders will expand to accommodate whatever width & height are specified for the map

Usage:
{{Map
|coordinates= Mandatory. coordinate1,2~marker title~marker text; repeat for more markers
|width= Optional. map width - whole number only - ie no 'px' (default 400)
|height= Optional. map height - whole number only - ie no 'px' (default 340)
|image_caption= Optional. map caption - standard wikitext including links
|zoom= Optional. whole number, 1 - 13
|type= Optional. roadmap, satellite, hybrid or terrain
}}