Редактирование: Шаблон:Weapon skill table row

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск

Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.

Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.

На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.

Текущая версия Ваш текст
Строка 4: Строка 4:
 
| ?Has game description
 
| ?Has game description
 
| ?Is for profession
 
| ?Is for profession
| ?Is for specialization
 
| ?Has skill context
 
 
| ?Has skill type
 
| ?Has skill type
 
| ?Has skill slot number
 
| ?Has skill slot number
| ?Has chain sequence position
 
 
| ?Has activation time
 
| ?Has activation time
 
| ?Has recharge time
 
| ?Has recharge time
 
| ?Has initiative cost
 
| ?Has initiative cost
 
| ?Has energy cost
 
| ?Has energy cost
| ?Is for weapon
 
| ?Is for bundle
 
| ?Has parent skill
 
| ?Has profession mechanic slot number
 
| ?Requires offhand
 
| ?Is for attunement
 
| ?Is usable underwater
 
| ?Has ammunition number
 
| ?Has page cost
 
 
| ?Is ground targeted
 
| ?Is ground targeted
 
| link = none
 
| link = none
 
| format = template
 
| format = template
| template = weapon skill table row format{{!}}class={{{class|}}}{{!}}chain={{{chain|}}}
+
| template = weapon skill table row format
| default = {{Weapon skill table row format|{{{1}}}|{{{1}}}|File:{{{1}}}.png}}
+
| 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#'', '''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.
+
<pre>{{Weapon skill table row|<skill name>}}
 +
{{Weapon skill table row|<skill name>|chain= |class= }}</pre>
 +
 
 +
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.
  
 
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|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|Environmental skill table header}} and {{tl|Environmental skill table row}} for environmental skills as bundles or tonics (prints slot#, 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>showInitiative=true</code> in the header)
 
# [[Property:Has game description|Has game description]]
 
  
; Optional
+
* {{tl|Skill table row}} for custom tables (can set which data prints in what order)
# [[Property:Has skill slot number|Has skill slot number]]
+
* {{tl|Slot skill table header}} / {{tl|Slot skill table row}} for slot skills (prints type, underwater status, skill point cost, recharge, and description)
# 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>showEnergy=true</code> in the header)
 
# [[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]]
 
  
== Usage ==
+
===Parameters===
<pre>{{Weapon skill table row|<skill name>}}
+
; ''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).
{{Weapon skill table row|<skill name>|class=<css class>}}</pre>
 
  
=== Parameters ===
+
; chain : Set to one of the following values to show an additional icon before the skill icon:
;1 ''(unnamed parameter)''
 
: Required. Skill name.
 
;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
 
;chain
 
: Optional. Added automatically, can be overridden with one of the following values:
 
 
:{|
 
:{|
| none      ||
 
|-
 
 
| ''chain'' || [[File:Redirect Arrow.png|25px|link=]] (no link)
 
| ''chain'' || [[File:Redirect Arrow.png|25px|link=]] (no link)
|-
 
| ''ambush'' || [[File:Chain Arrow Toolbelt.png|25px|link=Ambush]] (links to [[Ambush]])
 
 
|-
 
|-
 
| ''burst'' || [[File:Chain Arrow Toolbelt.png|25px|link=Burst]] (links to [[Burst]])
 
| ''burst'' || [[File:Chain Arrow Toolbelt.png|25px|link=Burst]] (links to [[Burst]])
|-
 
| ''primal burst'' || [[File:Chain Arrow Toolbelt.png|25px|link=Primal Burst]] (links to [[Primal Burst]])
 
 
|-
 
|-
 
| ''stealth'' || [[File:Chain Arrow Toolbelt.png|25px|link=Stealth Attack]] (links to [[Stealth Attack]])
 
| ''stealth'' || [[File:Chain Arrow Toolbelt.png|25px|link=Stealth Attack]] (links to [[Stealth Attack]])
Строка 86: Строка 46:
 
|}
 
|}
  
==== [[Template:Weapon skill table header]] parameters ====
+
; class : Used to apply CSS classes to the row. Examples:
;showType
+
:* <code><nowiki>class=<profession></nowiki></code> applies profession coloring to individual rows of a general table
: Optional. Shows type column and displays the property [[Property:Has skill type|Has skill type]], disabled on default. Can be set to "true".
+
:* <code><nowiki>class=line</nowiki></code> applies a border to the bottom of the row
;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".
 
;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 and displays the property [[Property:Has initiative cost|Has initiative cost]], disabled on default. Can be set to "true".
 
;showPageCost
 
: Optional. Shows page cost column and displays the property [[Property:Has page cost|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 [[Property:Is usable underwater|Is usable underwater]], disabled on default. Can be set to "true".
 
  
=== Example ===
+
== Example ==
 
<pre>
 
<pre>
{| {{STDT|guardian skills}}
+
{| class="guardian skills table"
 
{{weapon skill table header}}
 
{{weapon skill table header}}
 
{{weapon skill table row|True Strike}}
 
{{weapon skill table row|True Strike}}
Строка 110: Строка 60:
 
{{weapon skill table row|Protector's Strike}}
 
{{weapon skill table row|Protector's Strike}}
 
|}</pre>
 
|}</pre>
{| {{STDT|guardian skills}}
+
{| class="guardian skills table"
 
{{weapon skill table header}}
 
{{weapon skill table header}}
 
{{weapon skill table row|True Strike}}
 
{{weapon skill table row|True Strike}}

Пожалуйста, учтите, что любой ваш вклад в проект «Guild Wars 2 wiki» может быть отредактирован или удалён другими участниками. Если вы не хотите, чтобы кто-либо изменял ваши тексты, не помещайте их сюда.
Вы также подтверждаете, что являетесь автором вносимых дополнений, или скопировали их из источника, допускающего свободное распространение и изменение своего содержимого (см. Guild Wars 2 wiki:Авторские права). НЕ РАЗМЕЩАЙТЕ БЕЗ РАЗРЕШЕНИЯ ОХРАНЯЕМЫЕ АВТОРСКИМ ПРАВОМ МАТЕРИАЛЫ!

Чтобы изменить эту страницу, пожалуйста, ответьте на приведённый ниже вопрос (подробнее):

Отменить | Справка по редактированию (в новом окне)