Difference between revisions of "Template:SkillTable/row"
(hide modifiers and requirements for the enemy skills) |
|||
| Line 6: | Line 6: | ||
-->{{#if: {{:{{{1}}}|Energy}} | <div style="float: left">Energy:</div><div style="float: right">{{:{{{1}}}|Energy}}</div>{{Clear}}}}<!-- | -->{{#if: {{:{{{1}}}|Energy}} | <div style="float: left">Energy:</div><div style="float: right">{{:{{{1}}}|Energy}}</div>{{Clear}}}}<!-- | ||
-->{{#if: {{:{{{1}}}|Cooldown}} | <div style="float: left">Cooldown:</div><div style="float: right">{{:{{{1}}}|Cooldown}}</div>{{Clear}}}}<!-- | -->{{#if: {{:{{{1}}}|Cooldown}} | <div style="float: left">Cooldown:</div><div style="float: right">{{:{{{1}}}|Cooldown}}</div>{{Clear}}}}<!-- | ||
-->{{#if:{{#var:skill table enemyskills}}||<!-- | |||
-->{{#if: {{:{{{1}}}|Modifiers}} | <div style="float: left">Modified by:</div><div style="float: right">{{:{{{1}}}|Modifiers}}</div>{{Clear}}}}<!-- | -->{{#if: {{:{{{1}}}|Modifiers}} | <div style="float: left">Modified by:</div><div style="float: right">{{:{{{1}}}|Modifiers}}</div>{{Clear}}}}<!-- | ||
-->{{#if: {{:{{{1}}}|Requirements}} | <div align="left">{{c|Req|{{:{{{1}}}|Requirements}}}}</div>}}</td>}}<!-- | -->{{#if: {{:{{{1}}}|Requirements}} | <div align="left">{{c|Req|{{:{{{1}}}|Requirements}}}}</div>}}</td>}}<!-- | ||
-->}}<!-- | |||
--><td>{{:{{{1}}}|Description}}</td><!-- | --><td>{{:{{{1}}}|Description}}</td><!-- | ||
-->{{#if:{{#var:skill table passivebonus}}|<td>{{:{{{1}}}|Passivebonus}}</td>}}<!-- | -->{{#if:{{#var:skill table passivebonus}}|<td>{{:{{{1}}}|Passivebonus}}</td>}}<!-- | ||
Revision as of 01:54, 31 May 2022
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 | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[[
| Type:
Range:
Energy:
Cooldown:
Modified by:
|
|
Usage with second parameter (this page isn't an Enemy page, all attributes return as 0, therefore values are lowered)
| Skill | Basic Stats | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[[
| Type:
Range:
Energy:
Cooldown:
Modified by:
|
|
