User:Tub/Sandbox/Dynamic map label

From Guild Wars Wiki
Jump to navigationJump to search


Info-Logo.png Note: This template has been moved to the mainspace here.

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.

{{User:Tub/Sandbox/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
{{User:Tub/Sandbox/Dynamic map label
| label = Eternal Grove
| link = Eternal Grove (outpost)
| labeltype = outpost
}} 
pvpoutpost
{{User:Tub/Sandbox/Dynamic map label
| label = Ascalon Arena
| labeltype = pvpoutpost
}}
explorable
{{User:Tub/Sandbox/Dynamic map label
| label = Eternal Grove
| link = Eternal Grove (explorable)
| labeltype = explorable
}}
boss
{{User:Tub/Sandbox/Dynamic map label
| label = Pywatt
| link = Pywatt the Swift
| labeltype = boss
| profession = Warrior, Ranger, etc.
}}
landmark
{{User:Tub/Sandbox/Dynamic map label
| label = Abaddon's Mouth
| link = Abaddon's Mouth (landmark)
| labeltype = landmark
}}
Mission
{{User:Tub/Sandbox/Dynamic map label
| label = Eternal Grove
| labeltype = mission
}}
Portal
{{User:Tub/Sandbox/Dynamic map label
| label = Eternal Grove
| labeltype = portal
}}
Other
{{User:Tub/Sandbox/Dynamic map label
| label = Other label
| labeltype = other
}}

Notes[edit]

  • The color/size/font are illustrative; there is no current consensus on style.
  • The template is designed to allow different color/size/font for each type of label; there is room to add more label types.