Шаблон:Weapon skill table row — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 10: | Строка 10: | ||
| ?Has initiative cost | | ?Has initiative cost | ||
| ?Has energy cost | | ?Has energy cost | ||
+ | | ?Is for weapon | ||
| ?Is ground targeted | | ?Is ground targeted | ||
| link = none | | link = none | ||
| format = template | | format = template | ||
− | | template = weapon skill table row format | + | | template = weapon skill table row format{{!}}class={{{class|}}} |
| default = {{Weapon skill table row format|{{{1}}}|{{{1}}}|File:{{{1}}}.png}} | | default = {{Weapon skill table row format|{{{1}}}|{{{1}}}|File:{{{1}}}.png}} | ||
| userparam = {{{chain|}}} | | userparam = {{{chain|}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
==Description== | ==Description== | ||
− | |||
− | |||
− | |||
This template is intended for use in ''weapon skill'' tables in conjunction with the {{tl|weapon skill table header}}. It returns the wiki code for a single table row, populated with the following skill data: ''slot#'' (before the skill name), ''type'', ''recharge time'', and ''description''. It does not return the table opening or closing tags, so those must be provided on the calling page. | This template is intended for use in ''weapon skill'' tables in conjunction with the {{tl|weapon skill table header}}. It returns the wiki code for a single table row, populated with the following skill data: ''slot#'' (before the skill name), ''type'', ''recharge time'', and ''description''. It does not return the table opening or closing tags, so those must be provided on the calling page. | ||
Строка 30: | Строка 28: | ||
* {{tl|Skill table row}} for custom tables (can set which data prints in what order) | * {{tl|Skill table row}} for custom tables (can set which data prints in what order) | ||
* {{tl|Slot skill table header}} / {{tl|Slot skill table row}} for slot skills (prints type, underwater status, skill point cost, recharge, and description) | * {{tl|Slot skill table header}} / {{tl|Slot skill table row}} for slot skills (prints type, underwater status, skill point cost, recharge, and description) | ||
+ | * {{tl|Profession mechanic skill table header}} / {{tl|Profession mechanic skill table row}} for profession mechanic skills (prints profession mechanic slot#, weapon, type, recharge, and description) | ||
+ | |||
+ | === Columns === | ||
+ | ; Basic | ||
+ | # [[Property:Has skill slot number|Has skill slot number]] | ||
+ | # Skill | ||
+ | # [[Property:Has activation time|Has activation time]] | ||
+ | # [[Property:Has recharge time|Has recharge time]] or [[Property:Has initiative cost|Has initiative cost]] (set <code><nowiki>{{#vardefine:initiative|y}}</nowiki></code>) | ||
+ | # [[Property:Has game description|Has game description]] | ||
+ | |||
+ | ; Optional | ||
+ | # [[Property:Has skill slot number|Has skill slot number]] | ||
+ | # Skill | ||
+ | # [[Property:Is for weapon|Is for weapon]] (set <code>showWeapon=true</code> in the header) | ||
+ | # [[Property:Has skill type|Has skill type]] (set <code>showType=true</code> in the header) | ||
+ | # [[Property:Has activation time|Has activation time]] | ||
+ | # [[Property:Has energy cost|Has energy cost]] (set <code><nowiki>{{#vardefine:energy|y}}</nowiki></code>) | ||
+ | # [[Property:Has recharge time|Has recharge time]] or [[Property:Has initiative cost|Has initiative cost]] | ||
+ | # [[Property:Has game description|Has game description]] | ||
− | ===Parameters=== | + | == Usage == |
+ | <pre>{{Weapon skill table row|<skill name>}} | ||
+ | {{Weapon skill table row|<skill name>|chain= |class= }}</pre> | ||
+ | |||
+ | === 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 <code>slot</code> or <code>pet</code> is used, see below). | ; ''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 <code>slot</code> or <code>pet</code> is used, see below). | ||
Строка 49: | Строка 70: | ||
|} | |} | ||
− | ; class : Used to apply CSS classes to the row. | + | ; class : Used to apply CSS classes to the row. Examples: |
− | |||
:* <code><nowiki>class=line</nowiki></code> applies a border to the bottom of the row | :* <code><nowiki>class=line</nowiki></code> applies a border to the bottom of the row | ||
− | == Example == | + | ==== {{tl|weapon skill table header}} parameters ==== |
+ | ; showType | ||
+ | : Optional. Shows type column and displays the Property [[Property:Has skill type|Has skill type]], disabled on default. Can be set to "true". | ||
+ | |||
+ | ; showWeapon | ||
+ | : Optional. Shows weapon column and displays the Property [[Property:Is for weapon|Is for weapon]] (e.g. for [[Symbol]] skills), disabled on default. Can be set to "true". | ||
+ | |||
+ | === Example === | ||
<pre> | <pre> | ||
{| class="guardian skills table" | {| class="guardian skills table" |
Версия 21:10, 23 июля 2019
Содержание
Description
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# (before the skill name), type, 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
This is a standardized template that specifically builds a weapon skill table. For alternatives, see:
- {{Skill table row}} for custom tables (can set which data prints in what order)
- {{Slot skill table header}} / {{Slot skill table row}} for slot skills (prints type, underwater status, skill point cost, recharge, and description)
- {{Profession mechanic skill table header}} / {{Profession mechanic skill table row}} for profession mechanic skills (prints profession mechanic slot#, weapon, type, recharge, and description)
Columns
- Basic
- Has skill slot number
- Skill
- Has activation time
- Has recharge time or Has initiative cost (set
{{#vardefine:initiative|y}}
) - 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
{{#vardefine:energy|y}}
) - Has recharge time or Has initiative cost
- Has game description
Usage
{{Weapon skill table row|<skill name>}} {{Weapon skill table row|<skill name>|chain= |class= }}
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).
- chain
- Set to one of the following values to show an additional icon before the skill icon:
chain (no link) ambush (links to Ambush) burst (links to Burst) stealth (links to Stealth Attack) toolbelt (links to Tool belt) underwater (links to Underwater mode)
- class
- Used to apply CSS classes to the row. Examples:
-
class=line
applies a border to the bottom of the row
-
{{weapon skill table header}} parameters
- 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".
Example
{| class="guardian skills table" {{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}} |}
# | Умение | Описание | |||
---|---|---|---|---|---|
1 | True Strike | ½ | Цепочка. Ударить вашего противника. | ||
1 | Pure Strike | ½ | Цепочка. Стукнуть вашего противника. | ||
1 | Faithful Strike | ¾ | Нанести противнику завершающий удар и исцелить союзников поблизости. | ||
2 | Symbol of Faith | 1¼ | 8 | Символ. Выбить на земле таинственный символ, который наносит урон противникам и дарует союзникам регенерацию. | |
3 | Protector's Strike | 3¾ | 15 | Защитить союзников от нескольких следующих атак. Если вас атакуют, вы наложите блага на союзников поблизости, а ваш пассивный эффект поджигания будет полностью заряжен. |