Changes
Jump to navigation
Jump to search
Line 38:
Line 38:
− "params": {+
− "1": {+
− "label": "Latitude",+
− "description": "Latitude of the map's centre, -90 to 90",+
− "type": "number",+
− "example": "51.47766",+
− "suggested": true+
− },+
− "2": {+
− "label": "Longitude",+
− "description": "Longitude of the map's centre, -180 to 180",+
− "example": "0.00115",+
− "type": "number",+
− "suggested": true+
− },+
− "zoom": {+
− "label": "Zoom level",+
− "description": "Zoom level from 0-18 (0=Earth, 18=city block, auto=fit all markers)",+
− "example": "14",+
− "type": "number",+
− "suggested": true+
− },+
− "align": {+
− "label": "Alignment",+
− "description": "Alignment of the map frame, left/right/center",+
− "example": "center",+
− "type": "string",+
− "default": "right"+
− },+
− "name": {+
− "label": "Name",+
− "description": "Name of the location as you want it to appear in the caption",+
− "default": "Article title",+
− "example": "the Binnenstad"+
− },+
− "staticmap": {+
− "label": "Static map image",+
− "description": "A PNG or SVG file to serve as the static map image",+
− "example": "map.png",+
− "type": "wiki-file-name"+
− },+
− "width": {+
− "label": "Width",+
− "description": "Width of map frame",+
− "example": "400",+
− "type": "number",+
− "default": "420"+
− },+
− "height": {+
− "label": "Height",+
− "description": "Height of map frame",+
− "example": "400",+
− "type": "number",+
− "default": "420"+
− },+
− "layer": {+
− "label": "Layer",+
− "description": "List of layers to show, see [[Wikivoyage:How to use dynamic maps#Mapframe]]",+
− "example": "MLSCG",+
− "type": "string"+
− }+
− },+
− "paramOrder": [+
− "1",+
− "2",+
− "zoom",+
− "width",+
− "height",+
− "name",+
− "align",+
− "layer",+
− "staticmap"+
− ],+
− "description": "This template acts as a frame for an external map. Javascript is used to replace \"mapdiv\" with an iframe. See [[Wikivoyage:How to use dynamic maps]] and [[Wikivoyage:Dynamic maps Expedition]] for more information.",+
− "format": "inline"+
no edit summary
<templatedata>
<templatedata>
{
{
"params": {
"1": {
"label": "Latitude",
"description": "Latitude of the map's centre, -90 to 90",
"type": "number",
"example": "51.47766",
"suggested": true
},
"2": {
"label": "Longitude",
"description": "Longitude of the map's centre, -180 to 180",
"example": "0.00115",
"type": "number",
"suggested": true
},
"zoom": {
"label": "Zoom level",
"description": "Zoom level from 0-18 (0=Earth, 18=city block, auto=fit all markers)",
"example": "14",
"type": "number",
"suggested": true
},
"align": {
"label": "Alignment",
"description": "Alignment of the map frame, left/right/center",
"example": "center",
"type": "string",
"default": "right"
},
"name": {
"label": "Name",
"description": "Name of the location as you want it to appear in the caption",
"default": "Article title",
"example": "the Binnenstad"
},
"staticmap": {
"label": "Static map image",
"description": "A PNG or SVG file to serve as the static map image",
"example": "map.png",
"type": "wiki-file-name"
},
"width": {
"label": "Width",
"description": "Width of map frame",
"example": "400",
"type": "number",
"default": "420"
},
"height": {
"label": "Height",
"description": "Height of map frame",
"example": "400",
"type": "number",
"default": "420"
},
"layer": {
"label": "Layer",
"description": "List of layers to show, see [[Wikivoyage:How to use dynamic maps#Mapframe]]",
"example": "MLSCG",
"type": "string"
}
},
"paramOrder": [
"1",
"2",
"zoom",
"width",
"height",
"name",
"align",
"layer",
"staticmap"
],
"description": "This template acts as a frame for an external map. Javascript is used to replace \"mapdiv\" with an iframe. See [[Wikivoyage:How to use dynamic maps]] and [[Wikivoyage:Dynamic maps Expedition]] for more information.",
"format": "inline"
}
}
</templatedata>
</templatedata>