Difference between revisions of "Template:Search map"
Jump to navigation
Jump to search
m (→Parameters) |
m |
||
Line 2: | Line 2: | ||
<div class="map-frame"> | <div class="map-frame"> | ||
<div class="map-title">{{{title|Search map}}}</div> | <div class="map-title">{{{title|Search map}}}</div> | ||
<div class="map"><div class="inner-border">[[File:Ruby Sea HQ Map.jpg|{{#switch:{{{size|}}}|big=1000|medium=750|#default=500}}px|link=]]</div></div> | <div class="map"><div class="inner-border">[[File:Ruby Sea HQ Map.jpg|{{#switch:{{{size|}}}|big=1000|medium=750|#default=500}}px|link=]]</div><!-- | ||
-->{{#if:{{{coordinates|}}}|{{#arraymap:{{{coordinates|}}}|;|@@@|<!-- Params -->{{#vardefine:searchmap_coords|{{#explode:@@@|{{!}}|0}}}}{{#vardefine:searchmap_typeicon|{{#explode:@@@|{{!}}|1}}}}{{#vardefine:searchmap_label|{{#explode:@@@|{{!}}|2}}}}<!-- | |||
--><div class="marker" style="top: 20px; left: 20px;" title="{{{marker-label|Marker}}}">[[File:{{#switch:{{#var:searchmap_typeicon|}} | |||
| #default = Flag marker.png}}|{{{marker-size|32}}}px|link=]]</div> | |||
|}}}}</div> | |||
</div>{{#if:{{{no-caption|}}}||<div class="caption">This is the caption</div>}} | </div>{{#if:{{{no-caption|}}}||<div class="caption">This is the caption</div>}} | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
Line 12: | Line 17: | ||
| title = | | title = | ||
| image = | | image = | ||
| size = | | size = | ||
| marker-type = | |||
| marker-label = | |||
| marker-size = | |||
| no-caption = | | no-caption = | ||
}}</pre> | }}</pre> | ||
== Parameters == | == Parameters == | ||
;''unnamed param 1'' | ; ''unnamed param 1'' | ||
: The pagename from which to pull the map through property <code>Has map image</code>. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>. | : The pagename from which to pull the map through property <code>Has map image</code>. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>. | ||
;coordinates | ; coordinates | ||
: The coordinates to mark on the map. It uses the following form separated by semi-colons: <code><x,y,z>|<type>|<label></code>. | : The coordinates to mark on the map. It uses the following form separated by semi-colons: <code><x,y,z>|<type>|<label></code>. | ||
: '''Example:''' <code>12.5,7.4||Cool label</code> | : '''Example:''' <code>12.5,7.4||Cool label</code> | ||
;title | ; title | ||
: Optional. The search map title. Defaults to "Search map". | : Optional. The search map title. Defaults to "Search map". | ||
;image | ; image | ||
: Optional. A plain image to be used as map. Overrides ''unnamed param 1''. | : Optional. A plain image to be used as map. Overrides ''unnamed param 1''. | ||
; size | ; size | ||
: Optional. The map size. Accepts either ''medium'' or ''big''. Defaults to small. | : Optional. The map size. Accepts either ''medium'' or ''big''. Defaults to small. | ||
; marker-type | |||
: Optional. The marker type to be used as default for all markers. Accepts: ''flag (default)'', ''creature'', ''fate'', ''quest'', ''fishing-node'', ''spearing-node'', ''logging-node'', ''harvesting-node'', ''mining-node'', ''quarrying-node''. (to be continued) | |||
; marker-label | |||
: Optional. The marker label to be used as default for all markers. | |||
; marker-size | |||
: Optional. The marker icon size to be used as default for all markers. Defaults to 32px. | |||
; no-caption | ; no-caption | ||
: Optional. Set anything to disable caption. | : Optional. Set anything to disable caption. |
Revision as of 20:14, 30 August 2018
Description
Displays a map with optional flags which can be marked onto it, using in-game coordinates.
{{Search map |<unnamed param1> | coordinates = | title = | image = | size = | marker-type = | marker-label = | marker-size = | no-caption = }}
Parameters
- unnamed param 1
- The pagename from which to pull the map through property
Has map image
. Defaults to{{PAGENAME}}
. - coordinates
- The coordinates to mark on the map. It uses the following form separated by semi-colons:
<x,y,z>|<type>|<label>
. - Example:
12.5,7.4||Cool label
- title
- Optional. The search map title. Defaults to "Search map".
- image
- Optional. A plain image to be used as map. Overrides unnamed param 1.
- size
- Optional. The map size. Accepts either medium or big. Defaults to small.
- marker-type
- Optional. The marker type to be used as default for all markers. Accepts: flag (default), creature, fate, quest, fishing-node, spearing-node, logging-node, harvesting-node, mining-node, quarrying-node. (to be continued)
- marker-label
- Optional. The marker label to be used as default for all markers.
- marker-size
- Optional. The marker icon size to be used as default for all markers. Defaults to 32px.
- no-caption
- Optional. Set anything to disable caption.
Examples
{{Search map}}
Search map
{{Search map|size=medium}}
Search map
{{Search map|title=White Joker Locations}}
White Joker Locations