Шаблон:Profession mechanic skill table row — различия между версиями
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 14: | Строка 14: | ||
| ?Is for pet family | | ?Is for pet family | ||
| ?Has pet archetype | | ?Has pet archetype | ||
+ | | ?Has upkeep cost | ||
| ?Is ground targeted | | ?Is ground targeted | ||
| link = none | | link = none | ||
Строка 22: | Строка 23: | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Description == | == Description == | ||
− | This template is intended for use in ''profession mechanic skill'' tables in conjunction with the {{tl|profession mechanic skill table header}}. It returns the wiki code for a single table row, populated with the following skill data: ''mechanic slot#'' (before the skill name with the prefix "F", e.g. profession mechanic skill number "F1"), ''type'', ''recharge time'', and ''description''. | + | This template is intended for use in ''profession mechanic skill'' tables in conjunction with the {{tl|profession mechanic skill table header}}. It returns the wiki code for a single table row, populated with the following skill data: ''mechanic slot#'' (before the skill name with the prefix "F", e.g. profession mechanic skill number "F1"), '''skill''', ''(type)'', ''(weapon)'', ''(pet or pet family)'', ''(archetype)'', ''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|profession mechanic skill table row format}} to process the results of the semantic query. | It uses {{tl|profession mechanic skill table row format}} to process the results of the semantic query. | ||
Строка 28: | Строка 29: | ||
=== Caveat === | === Caveat === | ||
This is a standardized template that specifically builds a profession mechanic skill table. For alternatives, see: | This is a standardized template that specifically builds a profession mechanic 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|Weapon skill table header}} and {{tl|Weapon skill table row}} for weapon skills and auxiliary skill bars (prints slot#, type, recharge, and description) | |
− | * {{tl|Slot skill table header}} | + | * {{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|Weapon skill table header}} | ||
=== Columns === | === Columns === | ||
Строка 38: | Строка 38: | ||
# 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> | + | # [[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]] | ||
Строка 49: | Строка 49: | ||
# [[Property:Has pet archetype|Has pet archetype]] (set <code>showArchetype=true</code> in the header) | # [[Property:Has pet archetype|Has pet archetype]] (set <code>showArchetype=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> | + | # [[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]] | ||
Строка 58: | Строка 58: | ||
=== Parameters === | === Parameters === | ||
− | ; ''unnamed parameter | + | ;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) | ||
Строка 72: | Строка 73: | ||
| ''notunderwater'' || [[File:Not available underwater.png|link=]] (no link) | | ''notunderwater'' || [[File:Not available underwater.png|link=]] (no link) | ||
|} | |} | ||
+ | ;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. | ||
− | + | ==== [[Template:Profession mechanic skill table header]] parameters ==== | |
− | + | ;showType | |
− | |||
− | === | ||
− | ; showType | ||
: Optional. Shows type column and displays the Property [[Property:Has skill type|Has skill type]], disabled on default. Can be set to "true". | : Optional. Shows type column and displays the Property [[Property:Has skill type|Has skill type]], disabled on default. Can be set to "true". | ||
− | + | ;showWeapon | |
− | ; 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 [[ | + | ;showPet |
− | |||
− | ; showPet | ||
: Optional. Shows pet column and displays the Property [[Property:Is for pet|Is for pet]], disabled on default. Can be set to "true". | : Optional. Shows pet column and displays the Property [[Property:Is for pet|Is for pet]], disabled on default. Can be set to "true". | ||
− | + | ;showArchetype | |
− | ; | ||
: Optional. Shows archetype column and displays the Property [[Property:Has pet archetype|Has pet archetype]], disabled on default. Can be set to "true". | : Optional. Shows archetype column and displays the Property [[Property:Has pet archetype|Has pet archetype]], 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> | ||
− | {| | + | {| {{STDT|guardian skills}} |
{{Profession mechanic skill table header}} | {{Profession mechanic skill table header}} | ||
{{Profession mechanic skill table row|Virtue of Justice}} | {{Profession mechanic skill table row|Virtue of Justice}} | ||
Строка 97: | Строка 98: | ||
{{Profession mechanic skill table row|Virtue of Courage}} | {{Profession mechanic skill table row|Virtue of Courage}} | ||
|}</pre> | |}</pre> | ||
− | {| | + | {| {{STDT|guardian skills}} |
{{weapon skill table header}} | {{weapon skill table header}} | ||
{{Profession mechanic skill table row|Virtue of Justice}} | {{Profession mechanic skill table row|Virtue of Justice}} |
Версия 05:48, 29 октября 2019
Содержание
Description
This template is intended for use in profession mechanic skill tables in conjunction with the {{profession mechanic skill table header}}. It returns the wiki code for a single table row, populated with the following skill data: mechanic slot# (before the skill name with the prefix "F", e.g. profession mechanic skill number "F1"), skill, (type), (weapon), (pet or pet family), (archetype), 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 {{profession mechanic skill table row format}} to process the results of the semantic query.
Caveat
This is a standardized template that specifically builds a profession mechanic 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)
- {{Weapon skill table header}} and {{Weapon skill table row}} for weapon skills and auxiliary skill bars (prints slot#, 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
- Basic
- Has profession mechanic slot number (prefix: "F")
- Skill
- Has activation time
- Has recharge time or Has initiative cost (set
showInitiative=true
in the header) - Has game description
- Optional
- Has profession mechanic slot number
- Skill
- Is for weapon (set
showWeapon=true
in the header) - Has skill type (set
showType=true
in the header) - Is for pet or Is for pet family (set
showPet=true
in the header) - Has pet archetype (set
showArchetype=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
{{Profession mechanic skill table row|<skill name>}} {{Profession mechanic 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 (no link) burst (links to Burst) toolbelt (links to Tool belt) underwater (links to Underwater mode) notunderwater (no link)
- class
- Used to apply CSS classes to the row. Examples:
class=line
applies a border to the bottom of the row.
Template:Profession mechanic 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".
- showPet
- Optional. Shows pet column and displays the Property Is for pet, disabled on default. Can be set to "true".
- showArchetype
- Optional. Shows archetype column and displays the Property Has pet archetype, 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}} {{Profession mechanic skill table header}} {{Profession mechanic skill table row|Virtue of Justice}} {{Profession mechanic skill table row|Virtue of Resolve}} {{Profession mechanic skill table row|Virtue of Courage}} |}
# | Умение | Описание | |||
---|---|---|---|---|---|
F1 | Virtue of Justice | 20 | Добродетель: Вы поджигаете противников через каждые несколько атак. Активация: Вы и ваши союзники поджигаете своей следующей атакой. | ||
F2 | Virtue of Resolve | 30 | Добродетель: Вы восстанавливаете здоровье. Активация: Исцелить себя и союзников поблизости. | ||
F3 | Virtue of Courage | 45 | Добродетель: Вам периодически даруется эгида. Активация: Дарует эгиду вам и союзникам поблизости. |