Template:Location map~/TemplateData

From Random Island Wiki
Revision as of 09:05, 12 December 2017 by w>GKFX (Create templatedata based on Template:Location_map+/doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<templatedata> { "params": { "1": { "label": "Map name", "description": "Must be the same as specified in the parent Location map +. For example, specifying England will use the values for England in Module:Location map/data/England if it exists, or Template:Location map England otherwise.", "type": "string", "required": true }, "label": { "label": "Label", "description": "The label to display; may be wikilinked.", "type": "content", "default": "No label displayed by default, just a marker.", "suggested": true }, "label_size": { "label": "Label font size", "description": "The font size to use for the label, given as a percentage of the normal font size (<100 = smaller, >100 = larger). The default is 90. Do not include %. If set to zero, the label is only shown on hovering over the marker.", "type": "number" }, "position": { "label": "Label position", "description": "Label position relative to the marker. May be left, right, top, or bottom.", "default": "Default is \"right\"." }, "background": { "label": "Label background color", "description": "A background color for the label.", "example": "\"white\"", "default": "The label has no background color; the text appears directly on top of the map." }, "mark": { "label": "Marker image", "description": "The name of an image to display as the mark. See examples at Commons:Location markers and Commons:Category:Map icons.", "example": "Cyan pog.svg", "type": "wiki-file-name", "default": "The default is Red pog.svg, a red spot." }, "marksize": { "label": "Marker image size", "description": "The size, in pixels, of the marker image. Specify as \"10\", not \"10px\"", "example": "10", "type": "number", "default": "8" }, "link": { "label": "Marker link", "description": "The name of a page to go to when the link is clicked. Do not wrap in square brackets.", "example": "Yellowstone National Park", "type": "wiki-page-name", "suggested": true }, "lat_deg": { "label": "Latitude (degrees)", "description": "The location of the marker. If using decimal degrees, do not specify minutes or seconds. If using signed (positive North, negative South) decimal degrees, do not specify direction.", "example": "-10.34", "required": true, "type": "number" }, "lat_min": { "label": "Latitude (minutes)", "description": "The location of the marker. If using decimal degrees, do not specify this value.", "type": "number" }, "lat_sec": { "label": "Latitude (seconds)", "description": "The location of the marker. If using decimal degrees, do not specify this value.", "type": "number" }, "lat_dir": { "label": "Latitude (North/South)", "description": "\"N\" for North (default), \"S\" for South. Do not use any other value. If latitude (degrees) uses negative values for South, this value is not needed.", "type": "string", "default": "North." }, "lon_deg": { "label": "Longitude (degrees)", "description": "The location of the marker. If using decimal degrees, do not specify minutes or seconds. If using signed (positive East, negative West) decimal degrees, do not specify direction.", "example": "-10.34", "type": "number", "required": true }, "lon_min": { "label": "Longitude (minutes)", "description": "The location of the marker. If using decimal degrees, do not specify this value.", "type": "number" }, "lon_sec": { "label": "Longitude (seconds)", "description": "The location of the marker. If using decimal degrees, do not specify this value.", "type": "number" }, "lon_dir": { "label": "Longitude (East/West)", "description": "\"E\" for East (default), \"W\" for West. Do not use any other value. If latitude (degrees) uses negative values for West, this value is not needed.", "type": "string", "default": "East." } }, "description": "A helper template for Template:Location map+. Creates a single place marker on a map." } </templatedata>