Content added Content deleted
No edit summary |
No edit summary Tag: Manual revert |
||
(11 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_container"> |
|||
<div class="mini_map">{{#display_map:{{{location}}}|height=200px|zoom={{{zoom|}}};}}<div class="mini_map_caption">''{{{caption}}}''</div></div> |
|||
<div class="mini_map"> |
|||
{{#display_map:{{{location}}}|zoom={{{zoom|}}}|margin=0 auto|scrollwheelzoom=no|{{#if:{{{geojson|}}}|geojson={{{geojson}}}|}}}} |
|||
<div class="mini_map_caption">''{{{caption}}}''</div> |
|||
</div> |
|||
</div> |
|||
<noinclude> |
<noinclude> |
||
<templatedata> |
<templatedata> |
||
Line 24: | 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
Display a mini map on a wiki page
Parameter | Description | Type | Status | |
---|---|---|---|---|
Location | location | Add location(s) to the map. Use a semicolon (;) to add more than one
| String | required |
Zoom | zoom | The amount of zoom required to make the map look good
| Number | suggested |
Caption | caption | A caption for the map | String | required |
Geojson | geojson | A geojson location (e.g. GEOJSON:Rothwell Country Park)
| String | optional |