Шаблон:Skill table row

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск


Description[править]

{{Skill table row|<skill name>|[skill data selectors]}}
{{Skill table row|<skill name>|[skill data selectors]|slot=y|chain= |pet= |class= }}

This template is intended for use in skill list tables. It returns the wiki code for a single table row, populated with formatted skill data; it does not return the table opening or closing tags, so those must be provided on the calling page.

It requires the presence of a DPL statement (like that included in {{skill list dpl}}) that populates a set of variables with the relevant skill data.

Caveat[править]

This is a generic template that can be used to build a skill table with an arbitrary set of columns. Unless a custom set of fields is necessary, most skill lists should follow one of 2 predefined formats by using these templates:

Parameters[править]

unnamed parameter 1 <skill name> 
Full name of the skill article, including disambiguation suffixes. The skill icon and name will appear in the first cell of the row (unless slot or pet is used, see below).
unnamed parameters 2 – 6 [skill data selectors] 
The data selectors used in the variable names, currently up to 5 can be used. The values will be returned in the order they are given, so they need to match the table header labels.
slot 
Set to any value to dislay the value of the skill's weapon-slot parameter in the first cell of the row, before the skill name.
Warning: All calls to this template in the same table must either use or omit this parameter.
pet 
Set to the name of a pet species to display it in the first cell of the row, formatted as a header cell.
chain 
Set to one of the following values to show an additional icon before the skill icon:
chain Redirect Arrow.png (no link)
burst Chain Arrow Toolbelt.png (links to Burst)
stealth Chain Arrow Toolbelt.png (links to Stealth Attack)
toolbelt Chain Arrow Toolbelt.png (links to Tool belt)
class 
Used to apply CSS classes to the row. Examples:
  • class=<profession> applies profession coloring to individual rows of a general table
  • class=line applies a border to the bottom of the row

Example[править]

{{skill list dpl|warrior}}
{| class="warrior skills table"
|-
! style="width:200px;" | Skill
{{skill table row|chain=burst|Arcing Slice}}
{{skill table row|Greatsword Swing}}
{{skill table row|chain=chain|Greatsword Slice}}
{{skill table row|chain=chain|Brutal Strike}}
{{skill table row|Hundred Blades}}
{{skill table row|Whirlwind Attack}}
{{skill table row|Bladetrail}}
{{skill table row|Rush}}
|}

The following page was generated on ноябрь 20,  11:10 UTC.   You may want to request the most recent version

Skill
chainВспышка ярости
Arcing Slice.png
 Arcing Slice
Greatsword Swing.png
 Greatsword Swing
Greatsword Swing chainRedirect Arrow.png
Greatsword Slice.png
 Greatsword Slice
Greatsword Swing chainRedirect Arrow.png
Brutal Strike.png
 Brutal Strike
Hundred Blades.png
 Hundred Blades
Whirlwind Attack.png
 Whirlwind Attack
Bladetrail.png
 Bladetrail
Rush.png
 Rush