User:Rari/Template:Dynamic map label

From Guild Wars 2 Wiki
Jump to navigationJump to search


Usage[edit]

Used for interactive maps, so that (a) map label content is separated from formatting; (b) so that the formatting can change/evolve without having to redo the maps.

{{Dynamic map label
| label =
| link =
| labeltype =
| profession =
}}
label
Mandatory. Text to display.
label2
Optional. Second line of text to display.
link
Optional. Specify if the link target is different than the label text.
labeltype
Optional. Specifies text style. Can be one of "explorable", "mission", "outpost", "pvpoutpost", "boss", "collector", "portal", "landmark" or a valid HTML color code. Defaults to "White".
profession
Optional. If labeltype=boss, specify the color to use. Accepts either full profession names or the usual shorthand, case-insensitive (i.e. "Mesmer" and "me" both work). Defaults to white color.

Examples[edit]

Label Input Output
Outpost
{{Dynamic map label
| label = The Grove
| link = The Grove
| labeltype = outpost
}} 
pvpoutpost
{{Dynamic map label
| label = Ascalon City Ruins
| labeltype = pvpoutpost
}}
explorable
{{Dynamic map label
| label = Sorrow's Embrace (explorable)
| link = Sorrow's Embrace (explorable)
| labeltype = explorable
}}
boss
{{Dynamic map label
| label = Pywatt
| link = Pywatt the Swift
| labeltype = boss
| profession = Warrior, Ranger, etc.
}}
landmark
{{Dynamic map label
| label = Arterium Haven
| link = Arterium Haven
| labeltype = landmark
}}
Mission
{{Dynamic map label
| label = The Grove
| labeltype = mission
}}
Portal
{{Dynamic map label
| label = The Grove
| labeltype = portal
}}
Bounty
{{Dynamic map label
| label = The Grove
| labeltype = bounty
}}
Other
{{Dynamic map label
| label = Nonexistent page
| labeltype = other
}}

Notes[edit]

  • The template is designed to allow different color/size/font for each type of label; there is room to add more label types.