Line 38: |
Line 38: |
| <templatedata> | | <templatedata> |
| { | | { |
− | "params": {
| + | "params": { |
− | "1": {
| + | "1": { |
− | "label": "Latitude",
| + | "label": "Latitude", |
− | "description": "Latitude of the map's centre, -90 to 90",
| + | "description": "Latitude of the map's centre, -90 to 90", |
− | "type": "number",
| + | "type": "number", |
− | "example": "51.47766",
| + | "example": "51.47766", |
− | "suggested": true
| + | "suggested": true |
− | },
| + | }, |
− | "2": {
| + | "2": { |
− | "label": "Longitude",
| + | "label": "Longitude", |
− | "description": "Longitude of the map's centre, -180 to 180",
| + | "description": "Longitude of the map's centre, -180 to 180", |
− | "example": "0.00115",
| + | "example": "0.00115", |
− | "type": "number",
| + | "type": "number", |
− | "suggested": true
| + | "suggested": true |
− | },
| + | }, |
− | "zoom": {
| + | "zoom": { |
− | "label": "Zoom level",
| + | "label": "Zoom level", |
− | "description": "Zoom level from 0-18 (0=Earth, 18=city block, auto=fit all markers)",
| + | "description": "Zoom level from 0-18 (0=Earth, 18=city block, auto=fit all markers)", |
− | "example": "14",
| + | "example": "14", |
− | "type": "number",
| + | "type": "number", |
− | "suggested": true
| + | "suggested": true |
− | },
| + | }, |
− | "align": {
| + | "align": { |
− | "label": "Alignment",
| + | "label": "Alignment", |
− | "description": "Alignment of the map frame, left/right/center",
| + | "description": "Alignment of the map frame, left/right/center", |
− | "example": "center",
| + | "example": "center", |
− | "type": "string",
| + | "type": "string", |
− | "default": "right"
| + | "default": "right" |
− | },
| + | }, |
− | "name": {
| + | "name": { |
− | "label": "Name",
| + | "label": "Name", |
− | "description": "Name of the location as you want it to appear in the caption",
| + | "description": "Name of the location as you want it to appear in the caption", |
− | "default": "Article title",
| + | "default": "Article title", |
− | "example": "the Binnenstad"
| + | "example": "the Binnenstad" |
− | },
| + | }, |
− | "staticmap": {
| + | "staticmap": { |
− | "label": "Static map image",
| + | "label": "Static map image", |
− | "description": "A PNG or SVG file to serve as the static map image",
| + | "description": "A PNG or SVG file to serve as the static map image", |
− | "example": "map.png",
| + | "example": "map.png", |
− | "type": "wiki-file-name"
| + | "type": "wiki-file-name" |
− | },
| + | }, |
− | "width": {
| + | "width": { |
− | "label": "Width",
| + | "label": "Width", |
− | "description": "Width of map frame",
| + | "description": "Width of map frame", |
− | "example": "400",
| + | "example": "400", |
− | "type": "number",
| + | "type": "number", |
− | "default": "420"
| + | "default": "420" |
− | },
| + | }, |
− | "height": {
| + | "height": { |
− | "label": "Height",
| + | "label": "Height", |
− | "description": "Height of map frame",
| + | "description": "Height of map frame", |
− | "example": "400",
| + | "example": "400", |
− | "type": "number",
| + | "type": "number", |
− | "default": "420"
| + | "default": "420" |
− | },
| + | }, |
− | "layer": {
| + | "layer": { |
− | "label": "Layer",
| + | "label": "Layer", |
− | "description": "List of layers to show, see [[Wikivoyage:How to use dynamic maps#Mapframe]]",
| + | "description": "List of layers to show, see [[Wikivoyage:How to use dynamic maps#Mapframe]]", |
− | "example": "MLSCG",
| + | "example": "MLSCG", |
− | "type": "string"
| + | "type": "string" |
− | }
| + | } |
− | },
| + | }, |
− | "paramOrder": [
| + | "paramOrder": [ |
− | "1",
| + | "1", |
− | "2",
| + | "2", |
− | "zoom",
| + | "zoom", |
− | "width",
| + | "width", |
− | "height",
| + | "height", |
− | "name",
| + | "name", |
− | "align",
| + | "align", |
− | "layer",
| + | "layer", |
− | "staticmap"
| + | "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.",
| + | "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"
| + | "format": "inline" |
| } | | } |
| </templatedata> | | </templatedata> |