Template:Location map~/TemplateData: Difference between revisions

From The Goon Show Depository
en>GKFX
(Create templatedata based on Template:Location_map+/doc)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 13:51, 27 August 2022

A helper template for Template:Location map+. Creates a single place marker on a map.

Template parameters

ParameterDescriptionTypeStatus
Map name1

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 {{Location map England}} otherwise.

Stringrequired
Labellabel

The label to display; may be wikilinked.

Default
No label displayed by default, just a marker.
Contentsuggested
Label font sizelabel_size

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.

Numberoptional
Label positionposition

Label position relative to the marker. May be left, right, top, or bottom.

Default
Default is "right".
Unknownoptional
Label background colorbackground

A background color for the label.

Default
The label has no background color; the text appears directly on top of the map.
Example
"white"
Unknownoptional
Marker imagemark

The name of an image to display as the mark. See examples at Commons:Location markers and Commons:Category:Map icons.

Default
The default is Red pog.svg, a red spot.
Example
Cyan pog.svg
Fileoptional
Marker image sizemarksize

The size, in pixels, of the marker image. Specify as "10", not "10px"

Default
8
Example
10
Numberoptional
Marker linklink

The name of a page to go to when the link is clicked. Do not wrap in [[square brackets]].

Example
Yellowstone National Park
Page namesuggested
Latitude (degrees)lat_deg

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
Numberrequired
Latitude (minutes)lat_min

The location of the marker. If using decimal degrees, do not specify this value.

Numberoptional
Latitude (seconds)lat_sec

The location of the marker. If using decimal degrees, do not specify this value.

Numberoptional
Latitude (North/South)lat_dir

"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.

Default
North.
Stringoptional
Longitude (degrees)lon_deg

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
Numberrequired
Longitude (minutes)lon_min

The location of the marker. If using decimal degrees, do not specify this value.

Numberoptional
Longitude (seconds)lon_sec

The location of the marker. If using decimal degrees, do not specify this value.

Numberoptional
Longitude (East/West)lon_dir

"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.

Default
East.
Stringoptional