Шаблон:Location table header — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
|||
Строка 1: | Строка 1: | ||
− | < | + | <includeonly>{{#if:<!-- Hide whitespace --> |
− | + | {{#if:{{{showLevel|}}} | |
− | ! [[Area | + | | {{#vardefine:showLevel|{{{showLevel|true}}}}} |
− | {{# | + | | {{#if: {{#show:{{{1|{{PAGENAME}}}}}|?Has level range}} | {{#vardefine:showLevel|true}} }} |
− | + | }} | |
− | ! | + | }}{{#ifeq:{{{header|n}}} | y |
− | <noinclude> | + | | {{{!}} {{STDT|sortable pve locations}} |
+ | {{!}}- | ||
+ | }}|- style="vertical-align:top" | ||
+ | ! [[Area]] | ||
+ | {{#ifeq:{{#var:showLevel}}|true| | ||
+ | ! style="width:50px" {{!}} [[Dynamic level adjustment|Effective<br>level]] | ||
+ | }} | ||
+ | ! [[Map completion|Area objectives]] | ||
+ | </includeonly><noinclude> | ||
− | + | == Description == | |
+ | This template provides a standard set of headings for location tables typically used on zone pages. It is invoked just beneath the opening line with {{tl|STDT}} in it. | ||
− | + | == Usage == | |
− | + | === Parameters === | |
− | + | ;Unnamed parameter 1 | |
+ | :[[Zone]]. Default to <nowiki>{{PAGENAME}}</nowiki> | ||
+ | ;showLevel | ||
+ | :Optional. Default to true if the given zone has [[Property:Has level range]] defined. | ||
+ | ::''true'' to show the column. | ||
+ | ::''false'' to hide the column. | ||
− | Example | + | == Examples == |
− | + | === Example #1 === | |
− | {{ | + | With a level column: |
− | |}</ | + | <pre> |
+ | {| {{STDT|sortable pve locations}} | ||
+ | {{location table header|Frostgorge Sound}} | ||
+ | |- | ||
+ | | [[Arundon Vale]] | ||
+ | | style="text-align:center" | 73 | ||
+ | | | ||
+ | : {{area hearts|Arundon Vale}} | ||
+ | : {{map icon|wp}} Arundon Waypoint | ||
+ | : {{map icon|poi}} [[Offering Stone]] | ||
+ | : {{map icon|poi}} [[Safewatch Vale]] | ||
+ | : {{map icon|exp}} [[Magellan's Memento]] | ||
+ | |- | ||
+ | | [[Glacial Collapse]] | ||
+ | | style="text-align:center" | 74 | ||
+ | | | ||
+ | : {{heart|Help Scholar Inka research imps}} | ||
+ | |} | ||
+ | </pre> | ||
+ | {| {{STDT|sortable pve locations}} | ||
+ | {{Location table header|Frostgorge Sound}} | ||
+ | |- | ||
+ | | [[Arundon Vale]] | ||
+ | | style="text-align:center" | 73 | ||
+ | | | ||
+ | : {{area hearts|Arundon Vale}} | ||
+ | : {{map icon|wp}} Arundon Waypoint | ||
+ | : {{map icon|poi}} [[Offering Stone]] | ||
+ | : {{map icon|poi}} [[Safewatch Vale]] | ||
+ | : {{map icon|exp}} [[Magellan's Memento]] | ||
+ | |- | ||
+ | | [[Glacial Collapse]] | ||
+ | | style="text-align:center" | 74 | ||
+ | | | ||
+ | : {{heart|Help Scholar Inka research imps}} | ||
+ | |} | ||
− | [[Category: | + | === Example #2 === |
+ | Without the level column | ||
+ | <pre> | ||
+ | {| {{STDT|sortable pve locations}} | ||
+ | {{Location table header|showLevel=false}} | ||
+ | |- | ||
+ | | [[Cavern of the Shining Lights]] | ||
+ | | | ||
+ | :{{map icon|poi}} [[Ley Line Hub]] | ||
+ | :{{map icon|poi}} [[Omadd's Machine]] | ||
+ | :{{map icon|hero}} [[Ley Line Hub (hero challenge)|Ley Line Hub]] | ||
+ | :{{map icon|vista}} Ley Line Hub Vista | ||
+ | |- | ||
+ | | [[Challenger Cliffs]] | ||
+ | | | ||
+ | :{{map icon|wp}} Repair Station Waypoint | ||
+ | :{{map icon|poi}} [[Repair Station]] | ||
+ | :{{map icon|poi}} [[Crash Site 3]] | ||
+ | :{{map icon|poi}} [[Inquest Base]] | ||
+ | :{{map icon|hero}} [[Cliff Peak]] | ||
+ | :{{map icon|vista}} Inquest Base Vista | ||
+ | |} | ||
+ | </pre> | ||
+ | {| {{STDT|sortable pve locations}} | ||
+ | {{Location table header|showLevel=false}} | ||
+ | |- | ||
+ | | [[Cavern of the Shining Lights]] | ||
+ | | | ||
+ | :{{map icon|poi}} [[Ley Line Hub]] | ||
+ | :{{map icon|poi}} [[Omadd's Machine]] | ||
+ | :{{map icon|hero}} [[Ley Line Hub (hero challenge)|Ley Line Hub]] | ||
+ | :{{map icon|vista}} Ley Line Hub Vista | ||
+ | |- | ||
+ | | [[Challenger Cliffs]] | ||
+ | | | ||
+ | :{{map icon|wp}} Repair Station Waypoint | ||
+ | :{{map icon|poi}} [[Repair Station]] | ||
+ | :{{map icon|poi}} [[Crash Site 3]] | ||
+ | :{{map icon|poi}} [[Inquest Base]] | ||
+ | :{{map icon|hero}} [[Cliff Peak]] | ||
+ | :{{map icon|vista}} Inquest Base Vista | ||
+ | |} | ||
+ | |||
+ | == See also == | ||
+ | * {{tl|location table}} — a proposed automated location table template. | ||
+ | |||
+ | [[Category:Location formatting templates]]</noinclude> |
Текущая версия на 00:04, 13 июня 2019
Description[править]
This template provides a standard set of headings for location tables typically used on zone pages. It is invoked just beneath the opening line with {{STDT}} in it.
Usage[править]
Parameters[править]
- Unnamed parameter 1
- Zone. Default to {{PAGENAME}}
- showLevel
- Optional. Default to true if the given zone has Property:Has level range defined.
- true to show the column.
- false to hide the column.
Examples[править]
Example #1[править]
With a level column:
{| {{STDT|sortable pve locations}} {{location table header|Frostgorge Sound}} |- | [[Arundon Vale]] | style="text-align:center" | 73 | : {{area hearts|Arundon Vale}} : {{map icon|wp}} Arundon Waypoint : {{map icon|poi}} [[Offering Stone]] : {{map icon|poi}} [[Safewatch Vale]] : {{map icon|exp}} [[Magellan's Memento]] |- | [[Glacial Collapse]] | style="text-align:center" | 74 | : {{heart|Help Scholar Inka research imps}} |}
Area | Area objectives | |
---|---|---|
Arundon Vale | 73 |
|
Glacial Collapse | 74 |
|
Example #2[править]
Without the level column
{| {{STDT|sortable pve locations}} {{Location table header|showLevel=false}} |- | [[Cavern of the Shining Lights]] | :{{map icon|poi}} [[Ley Line Hub]] :{{map icon|poi}} [[Omadd's Machine]] :{{map icon|hero}} [[Ley Line Hub (hero challenge)|Ley Line Hub]] :{{map icon|vista}} Ley Line Hub Vista |- | [[Challenger Cliffs]] | :{{map icon|wp}} Repair Station Waypoint :{{map icon|poi}} [[Repair Station]] :{{map icon|poi}} [[Crash Site 3]] :{{map icon|poi}} [[Inquest Base]] :{{map icon|hero}} [[Cliff Peak]] :{{map icon|vista}} Inquest Base Vista |}
Area | Area objectives |
---|---|
Cavern of the Shining Lights |
|
Challenger Cliffs |
|
See also[править]
- {{location table}} — a proposed automated location table template.