The {{coords}} template creates marked coordinates on a map. It will display the coordinates and link to the corresponding zone page. Additionally, while pointing the mouse arrow at the link, an image of the zone map with markers on the coordinate positions is shown. The map with markers can also be shown directly on the page.
Coordinates can be retrieved in-game from the bottom of the map screen.
Contents
Syntax[]
The general syntax to use this template is
{{coords| 1234 | 5678 | zone-name }}
or
{{coords| 1234,5678 | zone-name }}
for single coordinates, and
{{coords| 1234,5678; 4321,8765; 1111,2222; ... | zone-name }}
for multiple coordinates.
Examples[]
Code | Result |
{{coords| 7050,5170 | freemarch }} | [7050,5170] |
{{coords| 6195,5000; 7251,5143; 6880,5925 | freemarch }} | [6195,5000], [7251,5143], [6880,5925] |
Optional Parameters[]
Code | Result | Description |
{{coords| ... | title=New Title }} | [7050,5170] | Replace the title above the map image |
{{coords| ... | title=- }} | [7050,5170] | Suppress the title completely |
{{coords| ... | linktext=New Text }} | [New Text] | Replace the shown coordinates |
{{coords| ... | link=New Link }} | [7050,5170] | Link to another page, instead of the zone page |
{{coords| ... | description=New Text }} | [7050,5170] | Add text description below the map image |
{{coords| ... | display=inline }} | Show map image directly on the page, not on mouse-over |
Customizing Location Markers[]
Each coordinate location will be marked with by default. This image can be changed individually for each location by specifying a third type argument behind the pair of coordinates.
{{coords| x,y,type,caption; x,y,type,caption; ... }}
The {{coords/Icon|type}}
template returns the image to be used as a marker for {{coords}}
. The following table contains the list of available icons.
default | ![]() | |||||||
black | x |
![]() |
v |
![]() |
o |
![]() |
. |
![]() |
red | xr |
![]() |
vr |
![]() |
or |
![]() |
.r |
![]() |
green | xg |
![]() |
vg |
![]() |
og |
![]() |
.g |
![]() |
blue | xb |
![]() |
vb |
![]() |
ob |
![]() |
.b |
![]() |
yellow | xy |
![]() |
vy |
![]() |
oy |
![]() |
.y |
![]() |
white | xw |
![]() |
vw |
![]() |
ow |
![]() |
.w |
![]() |
The above documentation is transcluded from Template:Coords/doc. (edit | history)
Additionally, each marker will show its coordinates as tooltip. An optional fourth caption argument to the location information will be added to that tooltip. Note, that the tooltip only works with the inline
display mode and a non-empty link
.
{{coords| 6195,5000,or,First Anchor; 7251,5143,og,Second Anchor; 6880,5925,ob,Third Anchor | freemarch | ... }}
Available Zones[]
The zone name argument is, generally, the name of the zone without spaces in lower case letters. All available zones can be found in the zone templates category.
Zones[]
{{#arraymap:droughtlands,freemarch,gloamwood,ironpinepeak,lakeofsolace,moonshadehighlands,scarletgorge,scarletgorgen,scarletgorges,scarwoodreach,shimmersand,silverwood,stillmoor,stonefield,terminus|,|xx|Name | Zone | Preview | Code |
[[Template:coords/xx|Template:Coords/xx]] | [[Template:Coords/xx]] | coords invalid (zone: xx) | {{coords| Expression error: Unrecognized punctuation character "[". | Expression error: Unrecognized punctuation character "[". | xx }} |
Dungeons[]
{{#arraymap:irontomb|,|xx|Name | Zone | Preview | Code |
[[Template:coords/xx|Template:Coords/xx]] | [[Template:Coords/xx]] | coords invalid (zone: xx) | {{coords| Expression error: Unrecognized punctuation character "[". | Expression error: Unrecognized punctuation character "[". | xx }} |
Caves[]
tbc.
Create a new Zone template[]
To create a new zone for the {{coords}} template called newzone
, create a page with the name Template:coords/newzone
with the following code.
<includeonly><onlyinclude>{{#switch:{{{1}}} |zone=Name of zone (actual page name) |title=Title of the zone (to be displayed above the map) |image=Newzone.png (image file name of zone map) |width=400 |height=300 |left=1000 |right=5000 |top=1000 |bottom=4000 }}</onlyinclude></includeonly>{{Coords/ZoneDocumentation}}
Change the width
and height
to the size in which the map image should be displayed. This may not be the actual size of the image, but a proportionate smaller dimension. The left
, right
, top
and bottom
coordinates need to be adjusted to the border coordinates of the zone map.
Note: After saving the page, it will show errors. The page needs to be saved a second time (no changes necessary) to fix the self reference of the created documentation text. end