Шаблон:Trait skill table — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 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 | ||
Строка 25: | Строка 33: | ||
<pre>{{Trait skill table}} | <pre>{{Trait skill table}} | ||
{{Trait skill table|<trait>}} | {{Trait skill table|<trait>}} | ||
− | {{Trait skill table| | + | {{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 | + | : 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 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". |
Версия 05:35, 1 мая 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 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}}
Умение | Описание | ||
---|---|---|---|
Lesser Spinal Shivers (PvE) | 20 | Заморозить вашу цель и снять с нее до трех благ, нанося дополнительный урон, зависящий от количества снятых благ. | |
Lesser Spinal Shivers (WvW, PvP) | 20 | Заморозить вашу цель и снять с нее до трех благ, нанося дополнительный урон, зависящий от количества снятых благ.
|