Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Mini map: Difference between revisions

Template page
Content added Content deleted
(Created page with "<templatestyles src="Template:Mini map/styles.css" /> <div class="mini_map"> {{#display_map:{{{location}}}|zoom={{{zoom|}}};}} <div class="mini_map_caption"> ''{{{caption}}}'' </div> </div> <noinclude> <templatedata> { "params": { "location": { "label": "Location", "description": "Add location(s) to the map. Use a semicolon (;) to add more than one", "example": "Rothwell Country Park; 53°45'46\"N, 1°28'0\"W", "type": "string", "required": true },...")
 
No edit summary
Tag: Manual revert
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Mini map/styles.css" />
<templatestyles src="Template:Mini map/styles.css" />
<div class="mini_map">
<div class="mini_map_container">
<div class="mini_map">
{{#display_map:{{{location}}}|zoom={{{zoom|}}};}}
{{#display_map:{{{location}}}|zoom={{{zoom|}}}|margin=0 auto|scrollwheelzoom=no|{{#if:{{{geojson|}}}|geojson={{{geojson}}}|}}}}
<div class="mini_map_caption">
''{{{caption}}}''
<div class="mini_map_caption">''{{{caption}}}''</div>
</div>
</div>
</div>
</div>
<noinclude>
<noinclude>
Line 29: Line 29:
"type": "string",
"type": "string",
"required": true
"required": true
},
"geojson": {
"label": "Geojson",
"description": "A geojson location (e.g. GEOJSON:Rothwell Country Park)",
"example": "Rothwell Country Park",
"type": "string"
}
}
},
},

Latest revision as of 16:35, 30 June 2024

Loading map...
{{{caption}}}

Display a mini map on a wiki page

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Locationlocation

Add location(s) to the map. Use a semicolon (;) to add more than one

Example
Rothwell Country Park; 53°45'46"N, 1°28'0"W
Stringrequired
Zoomzoom

The amount of zoom required to make the map look good

Example
15
Numbersuggested
Captioncaption

A caption for the map

Stringrequired
Geojsongeojson

A geojson location (e.g. GEOJSON:Rothwell Country Park)

Example
Rothwell Country Park
Stringoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.