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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
(не показана 1 промежуточная версия этого же участника)
Строка 1: Строка 1:
<includeonly>{{#ask: {{#switch: {{{1|}}}|all=[[Is historical::N]]|historical=[[Is historical::Y]]|#default=[[Has trait parent::{{{1|{{PAGENAME}}}}}]]}} [[Has skill context::Trait]]
+
<includeonly>{{#ask:  
 +
{{#switch: {{{1|}}}
 +
  |all=[[Is historical::N]]
 +
  |all pve = [[Is historical::N]][[Is for game mode::Default||PvE]]
 +
  |historical=[[Is historical::Y]]
 +
  |current=[[Has trait parent::{{PAGENAME}}]][[Is historical::N]]
 +
  |#default=[[Has trait parent::{{{1|{{PAGENAME}}}}}]]
 +
}}  
 +
[[Has skill context::Trait]]
 
| ?Has canonical name  
 
| ?Has canonical name  
 
| ?Has game icon
 
| ?Has game icon
Строка 13: Строка 21:
 
| link = none
 
| link = none
 
| format = template
 
| format = template
| introtemplate = Trait skill table header{{!}}1={{{class|}}}{{!}}id={{{id|}}}{{!}}showTrait={{{showTrait|false}}}{{!}}showSubheader={{{showSubheader|false}}}{{!}}showGamemode={{{showGamemode|{{#switch: {{{1|}}}|all=false|#default=true}}}}}
+
| introtemplate = Trait skill table header{{!}}1={{{class|}}}{{!}}id={{{id|}}}{{!}}showTrait={{{showTrait|false}}}{{!}}showSubheader={{{showSubheader|false}}}{{!}}showGamemode={{{showGamemode|{{#switch: {{{1|}}}|all pve=false|#default=true}}}}}
 
| template = Trait skill table result format
 
| template = Trait skill table result format
 
| outrotemplate= Table footer
 
| outrotemplate= Table footer
Строка 25: Строка 33:
 
<pre>{{Trait skill table}}
 
<pre>{{Trait skill table}}
 
{{Trait skill table|<trait>}}
 
{{Trait skill table|<trait>}}
{{Trait skill table|+|showTrait=true|showSubheader=true}}</pre>
+
{{Trait skill table|all|showTrait=true|showSubheader=true}}</pre>
  
 
=== Parameters ===
 
=== Parameters ===
 
; 1 ''(unnamed parameter)''
 
; 1 ''(unnamed parameter)''
: Name of the trait page. Defaults to PAGENAME. Set to "all" for a list of current trait skills and to "historical" for a list of historial trait skills.
+
: Name of the trait page. Defaults to PAGENAME. Set to "all" for a list of current trait skills ("all pve" for the pve version only) and to "historical" for a list of historical trait skills. Set to "current" for non-historical trait skills used by this trait.
 
;showTrait
 
;showTrait
 
: Optional. Shows trait column and displays the property [[Property:Has trait parent|Has trait parent]]. Can be set to "true".
 
: Optional. Shows trait column and displays the property [[Property:Has trait parent|Has trait parent]]. Can be set to "true".

Текущая версия на 22:17, 5 августа 2020

Description[править]

This template displays the trait skill(s) of a certain skill. Furthermore, it can be also used to display all trait skills. Format using {{Trait skill table header}} and {{Trait skill table result format}}.

Usage[править]

{{Trait skill table}}
{{Trait skill table|<trait>}}
{{Trait skill table|all|showTrait=true|showSubheader=true}}

Parameters[править]

1 (unnamed parameter)
Name of the trait page. Defaults to PAGENAME. Set to "all" for a list of current trait skills ("all pve" for the pve version only) and to "historical" for a list of historical trait skills. Set to "current" for non-historical trait skills used by this trait.
showTrait
Optional. Shows trait column and displays the property Has trait parent. Can be set to "true".
showSubheader
Optional. Shows the profession or specialization subheader row. Can be set to "true".
showGamemode
Optional. Shows the game mode and displays the property Is for game mode. Can be set to "false".
class
Table header css class.
id
Table id.

Example[править]

{{Trait skill table|Chill of Death}}

Умение Время активации Время перезарядки Описание
Spinal Shivers.png
 Lesser Spinal Shivers
(PvE)
20 Заморозить вашу цель и снять с нее до трех благ, нанося дополнительный урон, зависящий от количества снятых благ.
Spinal Shivers.png
 Lesser Spinal Shivers
(WvW, PvP)
20 Заморозить вашу цель и снять с нее до трех благ, нанося дополнительный урон, зависящий от количества снятых благ.