Template: Location map: Difference between revisions
From A Wiki of Ice and Fire
No edit summary |
No edit summary |
||
| (39 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
< | <includeonly>{{location map+ | ||
| {{{1|World}}} | |||
| border = {{{border|}}} | |||
| alt = {{{alt|}}} | |||
== | | caption_undefined = {{#ifeq: {{{caption|+}}} | {{{caption|-}}} || defined }} | ||
| caption = {{{caption|}}} | |||
| label = {{{label|}}} | |||
| float = {{{float|}}} | |||
| width = {{{width|}}} | |||
| relief= {{{relief|}}} | |||
| AlternativeMap = {{{AlternativeMap|}}} | |||
| overlay_image = {{{overlay_image|}}} | |||
| places = {{Location map~ | |||
| {{{1|World}}} | |||
| label = {{{label|}}} | |||
| label_size = {{{label_size|}}} | |||
| label_width = {{{label_width|}}} | |||
| mark = {{#ifexist:media:{{{mark}}}|{{{mark}}}|Red pog.png}} <!-- I'd rather not user this, but its needed to work around some typos--> | |||
| marksize = {{{marksize|}}} | |||
| alt = {{{alt|}}} | |||
| position = {{{position|}}} | |||
| background = {{{background|}}} | |||
</ | | link = {{{link|}}} | ||
</ | | lat_dir = {{{lat_dir|}}} | ||
| lat_deg = {{{lat_deg|}}} | |||
| lat_min = {{{lat_min|}}} | |||
| lat_sec = {{{lat_sec|}}} | |||
| lon_deg = {{{lon_deg|}}} | |||
| lon_min = {{{lon_min|}}} | |||
| lon_sec = {{{lon_sec|}}} | |||
| lon_dir = {{{lon_dir|}}} | |||
| lat = {{{lat|}}} | |||
| long = {{{long|}}} | |||
}} | |||
}}</includeonly><noinclude>{{documentation}}</noinclude> | |||
Latest revision as of 21:23, 19 October 2022
This template generates a location map as a composite image consisting of a map and a location mark. Optionally a label and caption can be added. Note: The template was copied whole from Wikipedia:Template:Location map, while we don't use all of its functionality, it was left intact to ease the process of future integration.
Basic Usage
[edit]Simple syntax versions
{{Location map| RegionName | long=XX |lat=YY }}
{{Location map| RegionName | long=XX |lat=YY | label= LocationName }}
Additional Options
[edit]| Additional Map display parameters | |
|---|---|
| Parameter | Description |
width
|
Determines the width of the map in pixels. The default is 350. Do not include px, for example: width=300, not width=300px.
|
caption
|
The text of a caption to be displayed below the map. Specifying a caption will cause the map to be displayed with a frame. If caption is defined but is not assigned a value, the map will not be framed and no caption will be displayed. If caption is not defined, the map will not be framed and a default caption will be generated. The default caption is created from the label parameter (or the current page name if label not defined) and the name parameter from map definition template. See the examples below.
|
alt
|
Alt text for map; shown on mouse hover. |
position
|
The position of the label relative to the mark. Valid values are left, right, top and bottom. The default is right.
|
mark
|
The name of an image to display as the mark. The default is Red pog.png ( |
link
|
Specifies a wiki link which will be followed if the reader clicks on the mark. The name of the linked article is displayed when the mouse pointer hovers over the mark. |
Empty template with all the options
[edit]{{Location map
| {{{1}}}
| width =
| caption =
| alt =
| label =
| label_size =
| position =
| mark =
| marksize =
| link =
| lat_deg =
| lon_deg =
}}
References
[edit]This page uses content from the English Wikipedia. The original content was at Template:Location map. The list of authors can be seen in the page history of Template:Location map. As with A Wiki of Ice and Fire, the content of Wikipedia is available under the Creative Commons Attribution-ShareAlike License.