Шаблон: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:
- {{Weapon skill table header}} / {{Weapon skill table row}} for weapon skills and auxiliary skill bars (prints slot#, type, activation time, recharge, and description)
- {{Slot skill table header}} / {{Slot skill table row}} for slot skills (prints type, underwater status, skill point cost, activation time, recharge, and description)
- {{Environmental skill table header}} / {{Environmental skill table row}} for enviromental weapon skills (prints slot#, activation time, recharge, and description)
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
orpet
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 (no link) burst (links to Burst) stealth (links to Stealth Attack) toolbelt (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 |
---|
Arcing Slice |
Greatsword Swing |
Greatsword Slice |
Brutal Strike |
Hundred Blades |
Whirlwind Attack |
Bladetrail |
Rush |