A Wiki in the Desert
Log in

Template:Map Marker/doc

From A Wiki in the Desert
< Template:Map Marker
Revision as of 23:36, 4 August 2018 by Brad (talk | contribs) (Updating examples to match the template - Removed the dash between region and coordinates)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{Map Marker}} generates a map marker for use with the {{CondMap}} template.

Usage

{{Map Marker
| icon   = 
| name   = 
| region = 
| coords = 
| info   = 
}}
icon
The icon that should be used for the map marker. See the documentation for the {{CondMap}} template for help selecting a marker. Technically optional but you'll pretty much always want to choose an appropriate icon for your marker.
name
The name/label for the marker.
region
The region in which the marker belongs. Technically optional but should be always be included if possible.
coords
The coordinates at which the marker should be placed.
info (optional)
Any additional info that should be included with the marker (e.g. nearby buildings to assist with mining).

Examples

With All Parameters

{{Map Marker|icon=MpFe|name=Iron|region=Meroe Desert|coords=-682, -6833|info=2 Blast Furnaces}}

results in:

(MpFe) -682, -6833, Iron<br>Meroe Desert (-682, -6833)<br>2 Blast Furnaces

Without Info Parameter

{{Map Marker|icon=GrL|name=Limestone|region=Blue Nile|coords=437, -6010}}

results in:

(GrL) 437, -6010, Limestone<br>Blue Nile - (437, -6010)

Without Icon Parameter

{{Map Marker|name=READ - The Wiki Guild|region=Upper Egypt|coords=829, -1833}}

results in:

(Cir) 829, -1833, READ - The Wiki Guild<br>Upper Egypt (829, -1833)

Above Examples Displayed On Map

{{CondMap|
mlayer Examples 650

{{Map Marker|icon=MpFe|name=Iron|region=Meroe Desert|coords=-682, -6833|info=2 Blast Furnaces}}
{{Map Marker|icon=GrL|name=Limestone|region=Blue Nile|coords=437, -6010}}
{{Map Marker|name=READ - The Wiki Guild|region=Upper Egypt|coords=829, -1833}}
|contentonly={{{contentonly|no}}}|{{{2}}}}}

results in: