Редактирование: Шаблон:Profession mechanic skill table row
Материал из Guild Wars 2 wiki
Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.
Текущая версия | Ваш текст | ||
Строка 4: | Строка 4: | ||
| ?Has game description | | ?Has game description | ||
| ?Is for profession | | ?Is for profession | ||
− | |||
− | |||
| ?Has skill type | | ?Has skill type | ||
| ?Has profession mechanic slot number | | ?Has profession mechanic slot number | ||
− | |||
| ?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 weapon | ||
− | |||
| ?Is for pet | | ?Is for pet | ||
| ?Is for pet family | | ?Is for pet family | ||
| ?Has pet archetype | | ?Has pet archetype | ||
− | |||
− | |||
− | |||
− | |||
| link = none | | link = none | ||
| format = template | | format = template | ||
− | | template = Profession mechanic skill table row format{{!}}class={{{class | + | | template = Profession mechanic skill table row format{{!}}class={{{class|}}} |
| default = {{Profession mechanic skill table row format|{{{1}}}|{{{1}}}|File:{{{1}}}.png}} | | default = {{Profession mechanic skill table row format|{{{1}}}|{{{1}}}|File:{{{1}}}.png}} | ||
+ | | userparam = {{{chain|}}} | ||
}}</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"), '' | + | 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''. 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. | ||
Строка 35: | Строка 27: | ||
=== 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}} | + | |
− | * {{tl|Weapon skill table header}} | + | * {{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|Weapon skill table header}} / {{tl|Weapon skill table row}} for weapon skills and auxiliary skill bars (prints slot#, type, recharge, and description) | ||
=== Columns === | === Columns === | ||
Строка 44: | Строка 37: | ||
# 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><nowiki>{{#vardefine:initiative|y}}</nowiki></code>) |
# [[Property:Has game description|Has game description]] | # [[Property:Has game description|Has game description]] | ||
Строка 55: | Строка 48: | ||
# [[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><nowiki>{{#vardefine:energy|y}}</nowiki></code>) |
− | # [[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]] |
# [[Property:Has game description|Has game description]] | # [[Property:Has game description|Has game description]] | ||
== Usage == | == Usage == | ||
<pre>{{Profession mechanic skill table row|<skill name>}} | <pre>{{Profession mechanic skill table row|<skill name>}} | ||
− | {{Profession mechanic skill table row|<skill name>|class= | + | {{Profession mechanic skill table row|<skill name>|chain= |class= }}</pre> |
=== 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). |
− | : | + | |
− | + | ; chain : Set to one of the following values to show an additional icon before the skill icon: | |
− | |||
− | ;chain | ||
− | : | ||
:{| | :{| | ||
− | |||
− | |||
| ''chain'' || [[File:Redirect Arrow.png|25px|link=]] (no link) | | ''chain'' || [[File:Redirect Arrow.png|25px|link=]] (no link) | ||
− | |||
− | |||
|- | |- | ||
| ''burst'' || [[File:Chain Arrow Toolbelt.png|25px|link=Burst]] (links to [[Burst]]) | | ''burst'' || [[File:Chain Arrow Toolbelt.png|25px|link=Burst]] (links to [[Burst]]) | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| ''toolbelt'' || [[File:Chain Arrow Toolbelt.png|25px|link=Tool belt]] (links to [[Tool belt]]) | | ''toolbelt'' || [[File:Chain Arrow Toolbelt.png|25px|link=Tool belt]] (links to [[Tool belt]]) | ||
Строка 87: | Строка 69: | ||
| ''underwater'' || [[File:Underwater.png|link=Underwater mode]] (links to [[Underwater mode]]) | | ''underwater'' || [[File:Underwater.png|link=Underwater mode]] (links to [[Underwater mode]]) | ||
|- | |- | ||
− | | '' | + | | ''notunderwater'' || [[File:Not available underwater.png|link=]] (no link) |
|} | |} | ||
− | ==== | + | ; class : Used to apply CSS classes to the row. Examples: |
− | ;showType | + | :* <code><nowiki>class=line</nowiki></code> applies a border to the bottom of the row |
− | : Optional. Shows type column and displays the | + | |
− | ;showWeapon | + | ==== {{tl|profession mechanic skill table header}} parameters ==== |
− | : Optional. Shows weapon column and displays the | + | ; showType |
− | ;showPet | + | : 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 pet column and displays the | + | |
− | ; | + | ; showWeapon |
− | : Optional. Shows archetype column and displays the | + | : Optional. Shows weapon column and displays the Property [[Property:Is for weapon|Is for weapon]] (e.g. for [[Berserker]] primal burst skills), disabled on default. Can be set to "true". |
− | + | ||
− | + | ; showPet | |
− | + | : Optional. Shows pet column and displays the Property [[Property:Is for pet|Is for pet]], disabled on default. Can be set to "true". | |
− | + | ||
− | + | ; shotArchetype | |
− | + | : Optional. Shows archetype column and displays the Property [[Property:Has pet archetype|Has pet archetype]], disabled on default. Can be set to "true". | |
=== Example === | === Example === | ||
<pre> | <pre> | ||
− | {| | + | {| class="guardian skills table" |
{{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}} | ||
Строка 114: | Строка 96: | ||
{{Profession mechanic skill table row|Virtue of Courage}} | {{Profession mechanic skill table row|Virtue of Courage}} | ||
|}</pre> | |}</pre> | ||
− | {| | + | {| class="guardian skills table" |
{{weapon skill table header}} | {{weapon skill table header}} | ||
{{Profession mechanic skill table row|Virtue of Justice}} | {{Profession mechanic skill table row|Virtue of Justice}} |