Difference between revisions of "Template:SkillTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
(align Active skill type to center and first letter uppercase)
Line 6: Line 6:
-->{{#if:{{#var:skill table hidebasicstats}}||<td><!--
-->{{#if:{{#var:skill table hidebasicstats}}||<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.|<!--
-->{{#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:Active}} | <div style="float: left">{{c|{{#var:Active}}|{{Translate|{{#var:Active}}|Properties}}}}</div>{{Clear}}}}<!--
-->{{#if: {{#var:Active}} | <div style="text-align: center;">{{c|{{#var:Active}}|{{ucfirst:{{Translate|{{#var:Active}}|Properties}}}}}}</div>{{Clear}}}}<!--
-->{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Type}} | <div style="float: left">{{Translate|Type|Properties}}:</div><div style="float: right">{{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Type}}|Properties}}</div>{{Clear}}}}<!--
-->{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Type}} | <div style="float: left">{{Translate|Type|Properties}}:</div><div style="float: right">{{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Type}}|Properties}}</div>{{Clear}}}}<!--
-->{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Range}} | <div style="float: left">{{Translate|Range|Properties}}:</div><div style="float: right">{{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Range}}|Properties}}</div>{{Clear}}}}<!--
-->{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Range}} | <div style="float: left">{{Translate|Range|Properties}}:</div><div style="float: right">{{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Range}}|Properties}}</div>{{Clear}}}}<!--

Revision as of 11:56, 22 September 2023

Template-info.png Documentation

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:

See Category:Language_templates for more information.

Examples

{{SkillTable/head}}
{{SkillTable/row|Mighty Kick}}


Standard usage:

SkillBasic StatsDescription
Cleaving Strike
Cleaving Strike
Attack
Type:
Target Area, 3 Tiles
Range:
1
Energy:
10
Cooldown:
8
Modified by:
Strength,Agility,Perception
- Requires one-handed sword
Delivers a strike to three adjacent targets with +25% Bodypart Damage and +50% 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)

SkillBasic StatsDescription
Cleaving Strike
Cleaving Strike
Attack
Type:
Target Area, 3 Tiles
Range:
1
Energy:
10
Cooldown:
8
Modified by:
Strength,Agility,Perception
- Requires 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.