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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
(Новая страница: «<includeonly>{| {{STDT|{{{1|any}}}}} ! Skill !! Recharge {{recharge}} {{#ask:[[Has trait parent::{{{2|{{PAGENAME}}}}}]] |? Has canonical name |? Is for game mode…»)
 
Строка 1: Строка 1:
<includeonly>{| {{STDT|{{{1|any}}}}}
+
<includeonly>{{#ask: {{#switch: {{{1|}}}|all=[[Is historical::N]]|historical=[[Is historical::Y]]|#default=[[Has trait parent::{{{1|{{PAGENAME}}}}}]]}} [[Has skill context::Trait]]
! Skill !! Recharge {{recharge}}
+
| ?Has canonical name  
{{#ask:[[Has trait parent::{{{2|{{PAGENAME}}}}}]]
+
| ?Has game icon
|? Has canonical name
+
| ?Has game description
|? Is for game mode
+
| ?Is for profession
|? Has recharge time
+
| ?Is for specialization
 +
| ?Has activation time
 +
| ?Has recharge time
 +
| ?Is for game mode
 +
| ?Has trait parent
 +
| ?Has trait parent.Has canonical name
 +
| ?Is usable underwater
 
| 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}}}}}
 
| template = Trait skill table result format
 
| template = Trait skill table result format
}}
+
| outrotemplate= Table footer
|}</includeonly><noinclude>
+
| sort = Has profession sort order,Has specialization sort order,
 +
| limit = 500
 +
}}</includeonly><noinclude>
 +
== 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 {{tl|Trait skill table header}} and {{tl|Trait skill table result format}}.
  
Uses {{tl|Trait skill table result format}} for formatting.
+
== Usage ==
 +
<pre>{{Trait skill table}}
 +
{{Trait skill table|<trait>}}
 +
{{Trait skill table|+|showTrait=true|showSubheader=true}}</pre>
  
== Parameters ==
+
=== Parameters ===
; ''unnamed parameter 1''
+
; 1 ''(unnamed parameter)''
: The css class to apply. Defaults to any.
+
: 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.
; ''unnamed parameter 2''
+
;showTrait
: Name of the trait page. Defaults to PAGENAME.
+
: Optional. Shows trait column and displays the property [[Property:Has trait parent|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 [[Property:Is for game mode|Is for game mode]]. Can be set to "false".
 +
;class
 +
: Table header css class.
 +
;id
 +
: Table id.
  
== Example ==
+
=== Example ===
<pre>
+
<pre>{{Trait skill table|Chill of Death}}</pre>
{{Trait skill table|necromancer|Chill of Death}}
+
{{Trait skill table|Chill of Death}}
</pre>
 
{{Trait skill table|necromancer|Chill of Death}}
 
  
 
[[Category:Skill formatting templates]]</noinclude>
 
[[Category:Skill formatting templates]]</noinclude>

Версия 13:09, 22 января 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|+|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 historial trait skills.
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 Заморозить вашу цель и снять с нее до трех благ, нанося дополнительный урон, зависящий от количества снятых благ.