Шаблон: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…»)
 
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
<includeonly>{| {{STDT|{{{1|any}}}}}
+
<includeonly>{{#ask:
! Skill !! Recharge {{recharge}}
+
{{#switch: {{{1|}}}
{{#ask:[[Has trait parent::{{{2|{{PAGENAME}}}}}]]
+
  |all=[[Is historical::N]]
|? Has canonical name
+
  |all pve = [[Is historical::N]][[Is for game mode::Default||PvE]]
|? Is for game mode
+
  |historical=[[Is historical::Y]]
|? Has recharge time
+
  |current=[[Has trait parent::{{PAGENAME}}]][[Is historical::N]]
 +
  |#default=[[Has trait parent::{{{1|{{PAGENAME}}}}}]]
 +
}}
 +
[[Has skill context::Trait]]
 +
| ?Has canonical name  
 +
| ?Has game icon
 +
| ?Has game description
 +
| ?Is for profession
 +
| ?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 pve=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|all|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 ("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.
; ''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>

Текущая версия на 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 Заморозить вашу цель и снять с нее до трех благ, нанося дополнительный урон, зависящий от количества снятых благ.