Difference between revisions of "Template:Test/Map"

From Wikispooks
Jump to navigation Jump to search
m (t)
m (t)
Line 13: Line 13:
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{| class="wikitable" style="float:{{#if:{{{align|}}}|{{{align|}}}|right}}; margin: 1.0em 0.0em 0.8em 1.0em;"; margin: 1.0em 0.0em 0.8em 1.0em;"
+
{| class="wikitable" style="float:{{#if:{{{align|}}}|{{{align|}}}|right}}; margin: 1.0em 0.0em 0.8em 1.0em;"
 
|-
 
|-
 
|{{#Display_map:{{{coordinates|}}}|{{#if:{{{width|}}}|width={{{width|}}}px|width=400px}}|{{#if:{{{height|}}}|height={{{height|}}}px|height=340px}}|{{#if:{{{zoom|}}}|zoom={{{zoom}}}}}|{{#if:{{{type|}}}|type={{{type|}}} }} }}
 
|{{#Display_map:{{{coordinates|}}}|{{#if:{{{width|}}}|width={{{width|}}}px|width=400px}}|{{#if:{{{height|}}}|height={{{height|}}}px|height=340px}}|{{#if:{{{zoom|}}}|zoom={{{zoom}}}}}|{{#if:{{{type|}}}|type={{{type|}}} }} }}

Revision as of 08:18, 18 November 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:
{{Test/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)
|caption= Optional. map caption - standard wikitext including links
|align= optional. Horizontal float (right or left) defaults to right
|zoom= Optional. whole number, 1 - 13
|type= Optional. roadmap, satellite, hybrid or terrain
}}