Difference between revisions of "Template:SkillTable/row"
Jump to navigation
Jump to search
(remove extra line breaks) |
(check for missing data in the list and for nonexisting page into variables + fix for previous edit) |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
-->{{#vardefine:Modifiers|{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Modifiers}}|{{:{{#var:Skilltree}}|{{{1}}}|Modifiers}}|}}}}<!-- | -->{{#vardefine:Modifiers|{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Modifiers}}|{{:{{#var:Skilltree}}|{{{1}}}|Modifiers}}|}}}}<!-- | ||
-->{{#vardefine:Active|{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Active}}|{{:{{#var:Skilltree}}|{{{1}}}|Active}}|}}}}<!-- | -->{{#vardefine:Active|{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Active}}|{{:{{#var:Skilltree}}|{{{1}}}|Active}}|}}}}<!-- | ||
-->{{#vardefine:Missing|{{#ifeq: {{#var:Skilltree}}|Skill data missing.|true|}}}}<!-- | |||
-->{{#vardefine:Exists|{{#ifexist: {{#var:Skilltree}}|true|}}}}<!-- | |||
--><tr> | --><tr> | ||
<td align="center">[[File:{{{1}}}.png|center|link={{#ifeq: {{#var:Skilltree}}|Skill data missing.||{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}}}|{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{Translate|{{{1}}}|SkillNames}}]]{{# | <td align="center">[[File:{{{1}}}.png|center|link={{#ifeq: {{#var:Skilltree}}|Skill data missing.||{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}}}|{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{Translate|{{{1}}}|SkillNames}}]]<!-- | ||
-->{{#if: {{#var:Missing}}|[[{{{1}}}]]|{{#if: {{#var:Exists}}|{{cl|{{#var:Active}}|{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#if:{{:{{#var:Skilltree}}|{{{1}}}|Name}}|{{:{{#var:Skilltree}}|{{{1}}}|Name}}|{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{Translate|{{{1}}}|SkillNames}}}}<!-- end if -->}}<!-- end CL -->}}|[[{{{1}}}]]<!-- end if exists -->}}<!-- end if missing -->}}</td><!-- | |||
-->{{#if:{{#var:skill table hidebasicstats}}||<td><!-- | -->{{#if:{{#var:skill table hidebasicstats}}||<td><!-- | ||
--- CHECK IF SKILL IS IN THE LIST --- | |||
-->{{#ifeq: {{#var:Skilltree}}|Skill data missing.|Skill with name "{{{1|{{ROOTPAGENAME}}}}}" does not exist.<br><br>Add it to [[Skill data]] or fix the Skill name.|<!-- | -->{{#ifeq: {{#var:Skilltree}}|Skill data missing.|Skill with name "{{{1|{{ROOTPAGENAME}}}}}" does not exist.<br><br>Add it to [[Skill data]] or fix the Skill name.|<!-- | ||
--- CHECK IF DATA PAGE EXISTS --- | |||
-->{{#if: {{#var:Exists}}|<!-- | |||
-->{{#if: {{#var:Active}} | {{#switch: {{lc:{{#var:Active}}}} | -->{{#if: {{#var:Active}} | {{#switch: {{lc:{{#var:Active}}}} | ||
| attack/charge = <div style="text-align: center;">{{c|Active|{{Translate|Attack|Properties}} / {{Translate|Charge|Properties}}}}</div>{{Clear}} | | attack/charge = <div style="text-align: center;">{{c|Active|{{Translate|Attack|Properties}} / {{Translate|Charge|Properties}}}}</div>{{Clear}} | ||
| attack/maneuver = <div style="text-align: center;">{{c|Active|{{Translate|Attack|Properties}} / {{Translate|Maneuver|Properties}}}}</div>{{Clear}} | | attack/maneuver = <div style="text-align: center;">{{c|Active|{{Translate|Attack|Properties}} / {{Translate|Maneuver|Properties}}}}</div>{{Clear}} | ||
| attack/spell = <div style="text-align: center;">{{c|Active|{{Translate|Attack|Properties}} / {{Translate|Spell|Properties}}}}</div>{{Clear}} | |||
| #default = <div style="text-align: center;">{{c|{{#var:Active}}|{{ucfirst:{{Translate|{{#var:Active}}|Properties}}}}}}</div>{{Clear}} | | #default = <div style="text-align: center;">{{c|{{#var:Active}}|{{ucfirst:{{Translate|{{#var:Active}}|Properties}}}}}}</div>{{Clear}} | ||
}}}}<!-- | }}}}<!-- | ||
| Line 17: | Line 24: | ||
-->{{#if:{{#var:skill table enemyskills}}||<!-- | -->{{#if:{{#var:skill table enemyskills}}||<!-- | ||
-->{{#if: {{#var:Modifiers}} | <div style="float: left">{{Translate|Modified by|Properties}}:</div><div style="float: right">{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{#var:Modifiers}}|{{Translate|{{#explode:{{#var:Modifiers}}|, }}|Properties}}{{#if: {{#explode:{{#var:Modifiers}}|, |1}}|{{#ifeq:{{SUBPAGENAME}}|zh|、|, }}{{Translate|{{#explode:{{#var:Modifiers}}|, |1}}|Properties}}}}{{#if: {{#explode:{{#var:Modifiers}}|, |2}}|{{#ifeq:{{SUBPAGENAME}}|zh|、|, }}{{Translate|{{#explode:{{#var:Modifiers}}|, |2}}|Properties}}}}}}</div>{{Clear}}}}<!-- | -->{{#if: {{#var:Modifiers}} | <div style="float: left">{{Translate|Modified by|Properties}}:</div><div style="float: right">{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{#var:Modifiers}}|{{Translate|{{#explode:{{#var:Modifiers}}|, }}|Properties}}{{#if: {{#explode:{{#var:Modifiers}}|, |1}}|{{#ifeq:{{SUBPAGENAME}}|zh|、|, }}{{Translate|{{#explode:{{#var:Modifiers}}|, |1}}|Properties}}}}{{#if: {{#explode:{{#var:Modifiers}}|, |2}}|{{#ifeq:{{SUBPAGENAME}}|zh|、|, }}{{Translate|{{#explode:{{#var:Modifiers}}|, |2}}|Properties}}}}}}</div>{{Clear}}}}<!-- | ||
-->{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Requirements}} | <div align="left">{{C|Req|{{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Requirements}}|Properties}}}}</div>}}}}</td>}}<!-- | -->{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Requirements}} | <div align="left">{{C|Req|{{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Requirements}}|Properties}}}}</div>}}}}<!-- | ||
-->|Data page [[Hive skill data]] doesn't exist.<br><br>Create it or fix change the page name in [[Skill data]].}}<!-- | |||
--- END CHECK IF DATA PAGE EXISTS --- | |||
--></td>}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
--- END CHECK IF SKILL IS IN THE LIST --- | |||
--- SKILL DESCRIPTION --- | --- SKILL DESCRIPTION --- | ||
--><td>{{# | --- CHECK IF SKILL IS IN THE LIST --- | ||
--><td>{{#if: {{#var:Missing}}|Skill with name "{{{1|{{ROOTPAGENAME}}}}}" does not exist.<br><br>Add it to [[Skill data]] or fix the Skill name.|<!-- | |||
--- CHECK IF DATA PAGE EXISTS --- | |||
-->{{#if: {{#var:Exists}}|<!-- | |||
--- If second parameter was given, load Enemydesc, otherwise load Description --- | --- If second parameter was given, load Enemydesc, otherwise load Description --- | ||
-->{{#if: {{{2|}}}|<!-- | -->{{#if: {{{2|}}}|<!-- | ||
-->{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{C|Gray|{{:{{#var:Skilltree}}|{{{1}}}|Enemydesc}}}}|{{C|Gray|{{Translate|{{{1}}}| | -->{{#ifeq:{{#switch: {{SUBPAGENAME}} | ||
-->{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{C|Gray|{{:{{#var:Skilltree}}|{{{1}}}|Description}}}}|{{C|Gray|{{Translate|{{{1}}}|SkillDescription}}}}}}<!-- | |row | ||
-->}}}}</td><!-- | |doc = {{PAGENAME}} | ||
|#default = {{SUBPAGENAME}} | |||
}}|{{PAGENAME}}|{{C|Gray|{{:{{#var:Skilltree}}|{{{1}}}|Enemydesc}}}}|{{C|Gray|{{Translate|{{{1}}}|EnemySkillDescription}}}}}}|<!-- | |||
-->{{#ifeq:{{#switch: {{SUBPAGENAME}} | |||
|row | |||
|doc = {{PAGENAME}} | |||
|#default = {{SUBPAGENAME}} | |||
}}|{{PAGENAME}}|{{C|Gray|{{:{{#var:Skilltree}}|{{{1}}}|Description}}}}|{{C|Gray|{{Translate|{{{1}}}|SkillDescription}}}}}}<!-- | |||
-->}}|Data page [[Hive skill data]] doesn't exist.<br><br>Create it or fix change the page name in [[Skill data]].}}<!-- | |||
--- END CHECK IF DATA PAGE EXISTS --- | |||
-->}}</td><!-- | |||
--- END CHECK IF SKILL IS IN THE LIST --- | |||
--- SKILL PASSIVE BONUS --- | --- SKILL PASSIVE BONUS --- | ||
-->{{#if:{{#var:skill table passivebonus}}|<td>{{#ifeq: {{#var:Skilltree}}|Skill data missing.|Skill with name "{{{1|{{ROOTPAGENAME}}}}}" does not exist.<br><br>Add it to [[Skill data]] or fix the Skill name.|<!-- | -->{{#if:{{#var:skill table passivebonus}}|<td>{{#ifeq: {{#var:Skilltree}}|Skill data missing.|Skill with name "{{{1|{{ROOTPAGENAME}}}}}" does not exist.<br><br>Add it to [[Skill data]] or fix the Skill name.|<!-- | ||
| Line 42: | Line 67: | ||
-->{{#if:{{#var:skill table formula}}|<td>{{#ifeq: {{#var:Skilltree}}|Skill data missing.|Skill with name "{{{1|{{ROOTPAGENAME}}}}}" does not exist.<br><br>Add it to [[Skill data]] or fix the Skill name.|<!-- | -->{{#if:{{#var:skill table formula}}|<td>{{#ifeq: {{#var:Skilltree}}|Skill data missing.|Skill with name "{{{1|{{ROOTPAGENAME}}}}}" does not exist.<br><br>Add it to [[Skill data]] or fix the Skill name.|<!-- | ||
-->{{C|Gray|{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Formuladesc}}|{{C|Orange|{{Translate|Formula|Properties}}:}}<br><!-- | -->{{C|Gray|{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Formuladesc}}|{{C|Orange|{{Translate|Formula|Properties}}:}}<br><!-- | ||
-->{{# | -->{{#ifeq:{{#switch: {{SUBPAGENAME}} | ||
|row | |||
|doc = {{PAGENAME}} | |||
|#default = {{SUBPAGENAME}} | |||
}}|{{PAGENAME}}|{{:{{#var:Skilltree}}|{{{1}}}|Formuladesc}}|{{Translate|{{{1}}}|SkillFormulaDescription}}}}<!-- | |||
-->}}}}}}</td>}}<!-- | |||
--- SKILL NOTES --- | --- SKILL NOTES --- | ||
-->{{#if:{{#var:skill table notes}}|<td>{{:{{#var:Skilltree}}|{{{1}}}|Notes}}</td>}}<!-- | -->{{#if:{{#var:skill table notes}}|<td>{{:{{#var:Skilltree}}|{{{1}}}|Notes}}</td>}}<!-- | ||
--- TABLE ROW END --- | --- TABLE ROW END --- | ||
--></tr></includeonly><!-- | --></tr></includeonly><!-- | ||
--><noinclude>{{doc}}[[Category:Templates]]</noinclude> | --><noinclude> | ||
{{SkillTable/head|enemy skills=1}} | |||
{{SkillTable/row|Undermine}} | |||
{{SkillTable/row|Protect the Hive}} | |||
{{SkillTable/row|Toxic Salvo}} | |||
{{SkillTable/row|Combat Pheromones}} | |||
{{SkillTable/end}} | |||
{{doc}}[[Category:Templates]]</noinclude> | |||
Latest revision as of 19:37, 29 August 2025
| Skill | Basic Stats | Description |
|---|---|---|
| Undermine | Maneuver Type: No Target Energy: 30 Cooldown: 16 | TODO |
| Protect the Hive | Attack Type: Target Object Range: 1 Energy: 12 Cooldown: 6 | TODO |
| Toxic Salvo | Attack Type: Target Point Range: 6 Energy: 6 Cooldown: 10 | TODO |
| Combat Pheromones | Passive | TODO |
Usage
This template must be used with header for proper table display. Header has its own template:
{{SkillTable/head}}
First parameter is required to specify the skill. Skill data is stored in Skill data pages.
{{SkillTable/row|(SkillName)}}
Adding a second parameter will display a modified description, where the values are adjusted according to the Enemy's attributes (STR, AGL, PRC, VIT, WIL).
Intended for use on Enemy pages, see Skeleton Footman for example.
{{SkillTable/row|(SkillName)|1}}
Template also supports translation to other languages. Translated strings are stored in four different pages.
Ex:
{{PT-BR SkillNames}}{{PT-BR SkillDescription}}{{PT-BR SkillFormulaDescription}}{{PT-BR EnemySkillDescription}}
See Category:Language_templates for more information.
Examples
{{SkillTable/head}}
{{SkillTable/row|Mighty Kick}}
Standard usage:
| Skill | Basic Stats | Description |
|---|---|---|
| Cleaving Strike | Attack Type: Target Area, 3 Tiles Range: 1 Energy: 10 Cooldown: 8 Modified by: Strength,Agility,Perception - Requires a one-handed sword | Delivers a strike to three adjacent targets with +26% Bodypart Damage and +57% Bleed Chance. Grants +5% Counter Chance for 5 turns for each enemy hit by the strike. The effect stacks up to 3 times. |
Usage with second parameter (this page isn't an Enemy page, all attributes return as 0, therefore values are lowered)
| Skill | Basic Stats | Description |
|---|---|---|
| Cleaving Strike | Attack Type: Target Area, 3 Tiles Range: 1 Energy: 10 Cooldown: 8 Modified by: Strength,Agility,Perception - Requires a one-handed sword | Delivers a strike to three adjacent targets with +15% Bodypart Damage and +30% Bleed Chance. Grants +0% Counter Chance for 5 turns for each enemy hit by the strike. The effect stacks up to 3 times. |
