Difference between revisions of "Template:Map"

From Wikispooks
Jump to navigation Jump to search
(create page)
 
m (default height and width)
Line 14: Line 14:
 
{| class="wikitable" width="20%" style="float:right; margin: 1.0em 0.0em 0.8em 1.0em;"
 
{| class="wikitable" width="20%" style="float:right; margin: 1.0em 0.0em 0.8em 1.0em;"
 
|-
 
|-
|{{#Display_map:{{{coordinates|}}}|{{#if:{{{width|}}}|width={{{width|}}}px}}|{{#if:{{{height|}}}|height={{{height|}}}px}}|{{#if:{{{zoom|}}}|zoom={{{zoom}}}}}|{{#if:{{{type|}}}|type={{{type|}}} }} }}
+
|{{#Display_map:{{{coordinates|}}}|{{#if:{{{width|}}}|width={{{width|}}}px}}|width=360px|{{#if:{{{height|}}}|height={{{height|}}}px|height=300px}}|{{#if:{{{zoom|}}}|zoom={{{zoom}}}}}|{{#if:{{{type|}}}|type={{{type|}}} }} }}
 
|-
 
|-
 
|style="text-align:center; padding: 0.5em;" |{{{caption|}}}<br/>
 
|style="text-align:center; padding: 0.5em;" |{{{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>
 
|}
 
|}

Revision as of 17:55, 7 September 2014

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 - no'px' (default 360)
|height= Optional. map height - whole number only - no'px' (default 300)
|caption= Optional. map caption - standard wikitext including links
|zoom= Optional. whole number, 1 - 13
|type= Optional. roadmap, satellite, hybrid or terrain
}}