Difference between revisions of "Template:SkillTable/row"
Jump to navigation
Jump to search
(nonexistence check for formuladesc, comments and easier readability) |
m |
||
Line 42: | Line 42: | ||
-->{{#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}}|<br>{{C|Orange|{{Translate|Formula|Properties}}:}}<br><!-- | -->{{C|Gray|{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Formuladesc}}|<br>{{C|Orange|{{Translate|Formula|Properties}}:}}<br><!-- | ||
-->{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Formuladesc}}|{{:{{#var:Skilltree}}|{{{1}}}|Formuladesc}}<br>}} }} }}</td>}}<!-- | -->{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Formuladesc}}|{{:{{#var:Skilltree}}|{{{1}}}|Formuladesc}}<br>}} }} }}</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>}}<!-- |
Revision as of 17:05, 27 February 2025
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 one-handed sword | Cleaving Strike |
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 one-handed sword | Cleaving Strike |