Template:Weapon skill table row
From Guild Wars 2 Wiki
Jump to navigationJump to search
Description[edit]
This template is intended for use in weapon skill tables in conjunction with the {{weapon skill table header}}. It returns the wiki code for a single table row, populated with the following skill data: slot#, skill, (type), (weapon), activation time, (energy), recharge time, and description. It does not return the table opening or closing tags, so those must be provided on the calling page.
It uses {{weapon skill table row format}} to process the results of the semantic query.
Caveat[edit]
This is a standardized template that specifically builds a weapon skill table. For alternatives, see:
- {{Slot skill table header}} and {{Slot skill table row}} for slot skills (prints type, underwater status, skill point cost, recharge, and description)
- {{Profession mechanic skill table header}} and {{Profession mechanic skill table row}} for profession mechanic skills (prints profession mechanic slot#, weapon, type, recharge, and description)
- {{Environmental skill table header}} and {{Environmental skill table row}} for environmental skills as bundles or tonics (prints slot#, type, recharge, and description)
Columns[edit]
- Basic
- Has skill slot number
- Skill
- Has activation time
- Has recharge time or Has initiative cost (set
showInitiative=true
in the header) - Has game description
- Optional
- Has skill slot number
- Skill
- Is for weapon (set
showWeapon=true
in the header) - Has skill type (set
showType=true
in the header) - Has activation time
- Has energy cost (set
showEnergy=true
in the header) - Has recharge time or Has initiative cost (set
showInitiative=true
in the header) - Has game description
Usage[edit]
{{Weapon skill table row|<skill name>}} {{Weapon skill table row|<skill name>|class=<css class>}}
Parameters[edit]
- 1 (unnamed parameter)
- Required. Skill name.
- class
- Used to apply CSS classes to the row. Examples:
class=line
applies a border to the bottom of the row - chain
- Optional. Added automatically, can be overridden with one of the following values:
none chain (no link) ambush (links to Ambush) burst (links to Burst) primal burst (links to Primal Burst) stealth (links to Stealth Attack) toolbelt (links to Tool belt) other (icon with no link) underwater (links to Underwater mode)
Template:Weapon skill table header parameters[edit]
- showType
- Optional. Shows type column and displays the property Has skill type, disabled on default. Can be set to "true".
- showWeapon
- Optional. Shows weapon column and displays the property Is for weapon (e.g. for Symbol skills), disabled on default. Can be set to "true".
- showEnergy
- Optional. Shows energy column and displays the property Has energy cost, disabled on default. Can be set to "true".
- showInitiative
- Optional. Shows initiative column and displays the property Has initiative cost, disabled on default. Can be set to "true".
- showPageCost
- Optional. Shows page cost column and displays the property Has page cost, disabled on default. Can be set to "true".
- showUnderwater
- Optional. Shows underwater icon, used for bundles and transform skills and displays the property Is usable underwater, disabled on default. Can be set to "true".
Example[edit]
{| {{STDT|guardian skills}} {{weapon skill table header}} {{weapon skill table row|True Strike}} {{weapon skill table row|chain=chain|Pure Strike}} {{weapon skill table row|chain=chain|Faithful Strike}} {{weapon skill table row|Symbol of Faith}} {{weapon skill table row|Protector's Strike}} |}
# | Skill | Description | ||
---|---|---|---|---|
1 | True Strike | ½ | Chain. Smash your foe. | |
1 | Pure Strike | ½ | Chain. Bash your foe. | |
1 | Faithful Strike | ¾ | Hit your foe with a final strike and heal nearby allies. | |
2 | Symbol of Faith | ¾ | 8 | Symbol. Smash the ground to heal allies and create a mystic symbol that damages foes and regenerates allies. |
3 | Protector's Strike | 3 | ¾15 | Protect allies from the next incoming attack against them, and lash out when attacked, granting boons to nearby allies and fully charging the passive burning effect. |