Template:Dynamic map label
Versione del 6 dic 2023 alle 17:25 di MusPuiDiTe (discussione | contributi) (Creata pagina con "<includeonly>{{#ifexist:{{{link}}}|{{{link}}}|{{{label}}} }}|<div {{#switch:{{lc:{{{labeltype|}}}}} | explorable = class="largeshadow" style="font-size: 140%; font-family:Constantia,Georgia, serif; font-weight:bold; color: #F0EFED; letter-spacing:0.5px; | outpost = class="largeshadow" style="font-size: 125%; font-family:Constantia,Georgia, serif; font-weight:bold; color: #FFF0BD; letter-spacing:0.3px; | mission = class="largeshadow" style="font-size: 125%; font-f...")
Usage
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
Label | Input | Output |
---|---|---|
Outpost | {{Dynamic map label | label = Eternal Grove | link = Eternal Grove (outpost) | labeltype = outpost }} |
|
pvpoutpost | {{Dynamic map label | label = Ascalon Arena | labeltype = pvpoutpost }} |
|
explorable | {{Dynamic map label | label = Eternal Grove | link = Eternal Grove (explorable) | labeltype = explorable }} |
|
boss | {{Dynamic map label | label = Pywatt | link = Pywatt the Swift | labeltype = boss | profession = Warrior, Ranger, etc. }} |
|
landmark | {{Dynamic map label | label = Abaddon's Mouth | link = Abaddon's Mouth (landmark) | labeltype = landmark }} |
|
Mission | {{Dynamic map label | label = Eternal Grove | labeltype = mission }} |
|
Portal | {{Dynamic map label | label = Eternal Grove | labeltype = portal }} |
|
Bounty | {{Dynamic map label | label = Eternal Grove | labeltype = bounty }} |
|
Other | {{Dynamic map label | label = Other label | labeltype = other }} |
Notes
- The template is designed to allow different color/size/font for each type of label; there is room to add more label types.