Шаблон:Weapon skill table row — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
Строка 19: Строка 19:
 
}}</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#'', '''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 {{tl|weapon skill table row format}} to process the results of the semantic query.
 
It uses {{tl|weapon skill table row format}} to process the results of the semantic query.
  
 
=== Caveat ===
 
=== Caveat ===
This is a standardized template that specifically builds a weapon skill table. For alternatives, see:
+
This is a standardized template that specifically builds a weapon skill table. For alternatives, see:
 
+
* {{tl|Slot skill table header}} and {{tl|Slot skill table row}} for slot skills (prints type, underwater status, skill point cost, recharge, and description)
* {{tl|Skill table row}} for custom tables (can set which data prints in what order)
+
* {{tl|Profession mechanic skill table header}} and {{tl|Profession mechanic skill table row}} for profession mechanic skills (prints profession mechanic slot#, weapon, type, 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|Environmental skill table header}} and {{tl|Environmental skill table row}} for environmental skills as bundles or tonics (prints slot#, type, 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 ===
 
=== Columns ===
Строка 35: Строка 34:
 
# Skill
 
# Skill
 
# [[Property:Has activation time|Has activation time]]
 
# [[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 recharge time|Has recharge time]] or [[Property:Has initiative cost|Has initiative cost]] (set <code>showInitiative=true</code> in the header)
 
# [[Property:Has game description|Has game description]]
 
# [[Property:Has game description|Has game description]]
  
Строка 44: Строка 43:
 
# [[Property:Has skill type|Has skill type]] (set <code>showType=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 activation time|Has activation time]]
# [[Property:Has energy cost|Has energy cost]] (set <code><nowiki>{{#vardefine:energy|y}}</nowiki></code>)
+
# [[Property:Has energy cost|Has energy cost]] (set <code>showEnergy=true</code> in the header)
# [[Property:Has recharge time|Has recharge time]] or [[Property:Has initiative cost|Has initiative cost]]
+
# [[Property:Has recharge time|Has recharge time]] or [[Property:Has initiative cost|Has initiative cost]] (set <code>showInitiative=true</code> in the header)
 
# [[Property:Has game description|Has game description]]
 
# [[Property:Has game description|Has game description]]
  
Строка 53: Строка 52:
  
 
=== Parameters ===
 
=== 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).
+
;1 ''(unnamed parameter)''
 
+
: Required. Skill name.
; chain : Set to one of the following values to show an additional icon before the skill icon:
+
;chain  
 +
: Optional. Set to one of the following values to show an additional icon before the skill icon:
 
:{|
 
:{|
 
| ''chain'' || [[File:Redirect Arrow.png|25px|link=]] (no link)
 
| ''chain'' || [[File:Redirect Arrow.png|25px|link=]] (no link)
Строка 69: Строка 69:
 
| ''underwater'' || [[File:Underwater.png|link=Underwater mode]] (links to [[Underwater mode]])
 
| ''underwater'' || [[File:Underwater.png|link=Underwater mode]] (links to [[Underwater mode]])
 
|}
 
|}
 +
;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
  
; class : Used to apply CSS classes to the row. Examples:
+
==== [[Template:Weapon skill table header]] parameters ====
:* <code><nowiki>class=line</nowiki></code> applies a border to the bottom of the row
+
;showType
 
+
: Optional. Shows type column and displays the Property [[Property:Has skill type|Has skill type]], disabled on default. Can be set to "true".  
==== {{tl|weapon skill table header}} parameters ====
+
;showWeapon
; 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".
 
: 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".
 +
;showEnergy
 +
: Optional. Shows energy column and displays the Property [[Property:Has energy cost|Has energy cost]], disabled on default. Can be set to "true".
 +
;showInitiative
 +
: Optional. Shows initiative column instead the recharge column and displays the Property [[Property:Has initiative cost|Has initiative cost]], disabled on default. Can be set to "true".
  
 
=== Example ===
 
=== Example ===
 
<pre>
 
<pre>
{| class="guardian skills table"
+
{| {{STDT|guardian skills}}
 
{{weapon skill table header}}
 
{{weapon skill table header}}
 
{{weapon skill table row|True Strike}}
 
{{weapon skill table row|True Strike}}
Строка 90: Строка 92:
 
{{weapon skill table row|Protector's Strike}}
 
{{weapon skill table row|Protector's Strike}}
 
|}</pre>
 
|}</pre>
{| class="guardian skills table"
+
{| {{STDT|guardian skills}}
 
{{weapon skill table header}}
 
{{weapon skill table header}}
 
{{weapon skill table row|True Strike}}
 
{{weapon skill table row|True Strike}}

Версия 06:40, 29 октября 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#, 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

This is a standardized template that specifically builds a weapon skill table. For alternatives, see:

Columns

Basic
  1. Has skill slot number
  2. Skill
  3. Has activation time
  4. Has recharge time or Has initiative cost (set showInitiative=true in the header)
  5. Has game description
Optional
  1. Has skill slot number
  2. Skill
  3. Is for weapon (set showWeapon=true in the header)
  4. Has skill type (set showType=true in the header)
  5. Has activation time
  6. Has energy cost (set showEnergy=true in the header)
  7. Has recharge time or Has initiative cost (set showInitiative=true in the header)
  8. Has game description

Usage

{{Weapon skill table row|<skill name>}}
{{Weapon skill table row|<skill name>|chain= |class= }}

Parameters

1 (unnamed parameter)
Required. Skill name.
chain
Optional. Set to one of the following values to show an additional icon before the skill icon:
chain Redirect Arrow.png (no link)
ambush Chain Arrow Toolbelt.png (links to Ambush)
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)
underwater Underwater.png (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

Template: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".
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 instead the recharge column and displays the Property Has initiative cost, disabled on default. Can be set to "true".

Example

{| {{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}}
|}
# Умение Прицеливание на землю Время активации Время перезарядки Описание
1 True Strike.png True Strike 0.5½ Цепочка. Ударить вашего противника.
1 ЦепочкаPure Strike.png Pure Strike 0.5½ Цепочка. Стукнуть вашего противника.
1 ЦепочкаFaithful Strike.png Faithful Strike 0.75¾ Нанести противнику завершающий удар и исцелить союзников поблизости.
2 Symbol of Faith.png Symbol of Faith 10.25¼ 8 Символ. Выбить на земле таинственный символ, который наносит урон противникам и дарует союзникам регенерацию.
3 Protector's Strike.png Protector's Strike 30.75¾ 15 Защитить союзников от нескольких следующих атак. Если вас атакуют, вы наложите блага на союзников поблизости, а ваш пассивный эффект поджигания будет полностью заряжен.