Шаблон:Location table header — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
 
Строка 1: Строка 1:
<noinclude>{| {{STDT|sortable pve locations}}
+
<includeonly>{{#if:<!-- Hide whitespace -->
</noinclude>|- style="vertical-align:top"
+
  {{#if:{{{showLevel|}}}
! [[Area|Область]]
+
  | {{#vardefine:showLevel|{{{showLevel|true}}}}}
{{#if: {{{nolevel|}}}{{{locations|}}} | |
+
  | {{#if: {{#show:{{{1|{{PAGENAME}}}}}|?Has level range}} | {{#vardefine:showLevel|true}} }}
! [[Dynamic level adjustment|Эффективный<br>уровень]]}}
+
  }}
! {{#if: {{{locations|}}} | [[Location|Локации]] | [[Map completion|Завершение карты]] }}
+
}}{{#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>
  
Provides the standard header row for location tables.  
+
== 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.
  
There are two parameter for this template, which can be set to 1.
+
== Usage ==
# '''nolevel''', which eliminates the '''Effective level''' column.
+
=== Parameters ===
# '''locations''', which changes [[Map completion]] to [[Location]]s and eliminates the '''Effective level''' column.
+
;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 code (result shown above):
+
== Examples ==
<nowiki>{| {{STDT|sortable pve locations}}
+
=== Example #1 ===
{{Location table header}}
+
With a level column:
|}</nowiki>
+
<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:Table formatting templates]]</noinclude>
+
=== 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
No hearts found for this area.
Waypoint (tango icon).png
Arundon Waypoint
Point of interest.png
Offering Stone
Point of interest.png
Safewatch Vale
Map icon.png
Magellan's Memento
Glacial Collapse 74
Help Scholar Inka research imps (unknown)

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
Point of interest.png
Ley Line Hub
Point of interest.png
Omadd's Machine
Hero point.png
Ley Line Hub
Vista.png
Ley Line Hub Vista
Challenger Cliffs
Waypoint (tango icon).png
Repair Station Waypoint
Point of interest.png
Repair Station
Point of interest.png
Crash Site 3
Point of interest.png
Inquest Base
Hero point.png
Cliff Peak
Vista.png
Inquest Base Vista

See also[править]

  • {{location table}} — a proposed automated location table template.