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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
Строка 14: Строка 14:
 
| link = none
 
| link = none
 
| format = template
 
| format = template
| template = slot skill table row format
+
| template = slot skill table row format{{!}}class={{{class|}}}
 
| default = {{#if:{{{1|}}}|{{slot skill table row format|{{{1}}}|{{{1}}}|File:{{{1}}}.png|userparam={{{chain|}}}}}}}
 
| default = {{#if:{{{1|}}}|{{slot skill table row format|{{{1}}}|{{{1}}}|File:{{{1}}}.png|userparam={{{chain|}}}}}}}
 
| userparam = {{{chain|}}}
 
| userparam = {{{chain|}}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
==Description==
+
== Description ==
<pre>{{Slot skill table row|<skill name>}}
+
This template is intended for use in ''slot skill'' tables in conjunction with the {{tl|slot skill table header}}. It returns the wiki code for a single table row, populated with the following skill data: ''type'', ''underwater availability'', ''skill point cost'', ''recharge time'', and ''description''. It does not return the table opening or closing tags, so those must be provided on the calling page.
{{Slot skill table row|<skill name>|chain= |class= }}</pre>
 
 
 
This template is intended for use in ''slot skill'' tables in conjunction with the {{tl|slot skill table header}}. It returns the wiki code for a single table row, populated with the following skill data: ''type'', ''underwater availability'', ''skill point cost'', ''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|slot skill table row format}} to process the results of the semantic query.
 
It uses {{tl|slot skill table row format}} to process the results of the semantic query.
  
 
=== Caveat ===
 
=== Caveat ===
This is a standardized template that specifically builds a slot skill table. For alternatives, see:
+
This is a standardized template that specifically builds a slot skill table. For alternatives, see:
  
 
* {{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|Weapon skill table header}} / {{tl|Weapon skill table row}} for weapon skills and auxiliary skill bars (prints slot#, type, recharge, and description)
 
* {{tl|Weapon skill table header}} / {{tl|Weapon skill table row}} for weapon skills and auxiliary skill bars (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 ===
 +
; Basic
 +
# Skill
 +
# [[Property:Has activation time|Has activation time]]
 +
# [[Property:Is usable underwater|Is usable underwater]]
 +
# [[Property:Has hero point cost|Has hero point cost]]
 +
# [[Property:Has activation time|Has activation time]]
 +
# [[Property:Has recharge time|Has recharge time]]
 +
# [[Property:Has game description|Has game description]]
 +
 +
; Optional
 +
# Skill
 +
# [[Property:Has skill type|Has skill type]] (set <code>showType=true</code> in the header)
 +
# [[Property:Has activation time|Has activation time]]
 +
# [[Property:Is usable underwater|Is usable underwater]]
 +
# [[Property:Has hero point cost|Has hero point cost]]
 +
# [[Property:Has activation time|Has activation time]]
 +
# [[Property:Has energy cost|Has energy cost]] and [[Property:Has upkeep cost|Has upkeep cost]] (set <code><nowiki>{{#vardefine:energy|y}}</nowiki></code>)
 +
# [[Property:Has recharge time|Has recharge time]]
 +
# [[Property:Has game description|Has game description]]
  
===Parameters===
+
== Usage ==
 +
<pre>{{Slot skill table row|<skill name>}}
 +
{{Slot 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.
 
; ''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.
  
Строка 48: Строка 70:
 
|}
 
|}
  
; class : Used to apply CSS classes to the row. Examples:
+
; class : Used to apply CSS classes to the row. Examples:
:* <code><nowiki>class=<profession></nowiki></code> applies profession coloring to individual rows of a general table
 
 
:* <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 ==
+
; showType
 +
: Optional. Shows type column, disabled on default. Can be set to "true".
 +
 
 +
=== Example ===
 
<pre>{| class="guardian skills table"
 
<pre>{| class="guardian skills table"
 
{{slot skill table header}}
 
{{slot skill table header}}

Версия 21:49, 23 июля 2019

Description

This template is intended for use in slot skill tables in conjunction with the {{slot skill table header}}. It returns the wiki code for a single table row, populated with the following skill data: type, underwater availability, skill point cost, 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 {{slot skill table row format}} to process the results of the semantic query.

Caveat

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

Columns

Basic
  1. Skill
  2. Has activation time
  3. Is usable underwater
  4. Has hero point cost
  5. Has activation time
  6. Has recharge time
  7. Has game description
Optional
  1. Skill
  2. Has skill type (set showType=true in the header)
  3. Has activation time
  4. Is usable underwater
  5. Has hero point cost
  6. Has activation time
  7. Has energy cost and Has upkeep cost (set {{#vardefine:energy|y}})
  8. Has recharge time
  9. Has game description

Usage

{{Slot skill table row|<skill name>}}
{{Slot 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.
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)
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
showType
Optional. Shows type column, disabled on default. Can be set to "true".

Example

{| class="guardian skills table"
{{slot skill table header}}
{{slot skill table row|Hallowed Ground}}
{{slot skill table row|Purging Flames}}
{{slot skill table row|Sanctuary}}
{{slot skill table row|Wall of Reflection}}
|}
Умение Прицеливание на землю Подводный режим Время активации Время перезарядки Описание
Hallowed Ground.png Hallowed Ground Прицеливание на землю Недоступно под водой 1 36 Освящение. Освятить выбранную область, даруя устойчивость находящимся внутри союзникам.
Purging Flames.png Purging Flames Прицеливание на землю 0.5½ 20 Освящение. Создать кольцо огня. При каждом такте противники внутри кольца будут подожжены, а с союзников внутри кольца будут сниматься состояния.
Sanctuary.png Sanctuary Прицеливание на землю 1 40 Освящение. Создать защитное исцеляющее убежище для союзников. Непроницаемо для врагов и снарядов.
Wall of Reflection.png Wall of Reflection Прицеливание на землю Недоступно под водой 20 Освящение. Призвать барьер мистической силы, который отражает снаряды.