Jump to content

Template:Location map/doc/infobox parameters

From bestpressey

Below are the parameters used by Module:Location map to produce the pushpin map in this Infobox. These parameters are available for editors to set in articles that use this infobox. For the maps available, please consult available maps.

Parameter Description Default
<syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_map= The map(s) to display. For example, specifying England will use the values for England in Module:Location map/data/England.Multiple maps can be shown by providing a list of map names separated by <syntaxhighlight lang="text" class="" style="" inline="1">#</syntaxhighlight>. For multiple maps, the first is shown by default. A reader can select the others with radio buttons. N/A
<syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_caption= The text of a caption to be displayed below the map. If not provided a default caption will be generated. Multiple captions can be shown when separated by <syntaxhighlight lang="text" class="" style="" inline="1">##</syntaxhighlight> (that's two). Location within MAPNAME
<syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_relief= 0/false/off will cause the template to display the map defined as <syntaxhighlight lang="text" class="" style="" inline="1">image</syntaxhighlight> (generally not a relief map). 1/true/on will cause the template to display the map defined as <syntaxhighlight lang="text" class="" style="" inline="1">image1</syntaxhighlight> (generally a relief map). Any non-zero numeric value such as <syntaxhighlight lang="text" class="" style="" inline="1">2</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">3</syntaxhighlight> will display <syntaxhighlight lang="text" class="" style="" inline="1">image2</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">image3</syntaxhighlight>, if those images are defined. Any other non-empty value will cause display of <syntaxhighlight lang="text" class="" style="" inline="1">image1</syntaxhighlight>. See the example at Location map+/relief. 0
<syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_label= The text of the label to display next to the identifying mark; a wikilink can be used. You can enclose the label inside of {{nowrap}} if you want to make sure that it stays on a single line. N/A
<syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_label_size= The font size to use for the label, given as a percentage of the normal font size (<100=smaller, >100=larger); the default size is 90. Do not include %. For example, use <syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_label_size=80, not <syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_label_size=80%. If set to <syntaxhighlight lang="text" class="" style="" inline="1">0</syntaxhighlight>, the label is only displayed when the user hovers over the mark. 90
<syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_label_position= The position of the label relative to the identifying mark; valid values are <syntaxhighlight lang="text" class="" style="" inline="1">left</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1">right</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1">top</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1">bottom</syntaxhighlight> and <syntaxhighlight lang="text" class="" style="" inline="1">none</syntaxhighlight>. This defaults to either <syntaxhighlight lang="text" class="" style="" inline="1">left</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">right</syntaxhighlight>, depending on the coordinates of the marker and its position relative to the right border of the map image. When <syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_label_position=none, any defined label will not be displayed with the mark, but it will be used to create the default caption. N/A
<syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_mark= The name of an image file to display as the identifying mark; the default is Red pog.svg . See examples at Commons:Location markers and Commons:Category:Map icons. Red pog.svg
<syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_mark_size= The size of the identifying mark in pixels. Do not include px 8
<syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_alt= Alt text for map; used by screen readers. See WP:ALT. N/A
<syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_background= The background color to use for the label; see Web colors. The default is no background color, which shows the map image behind the label. N/A
<syntaxhighlight lang="wikitext" inline style="display: none;" />|pushpin_map_size= Determines the width of the map in pixels, overriding any default values; do not include px. N/A