Difference between revisions of "Template:SkillTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
(Improved error display when Skill name is missing in Skill data.)
(add the same check to text link below skill image)
Line 1: Line 1:
<includeonly>{{#vardefine:Skilltree|{{:Skill data|{{{1|}}}}}}}<!--
<includeonly>{{#vardefine:Skilltree|{{:Skill data|{{{1|}}}}}}}<!--
--><tr>
--><tr>
<td align="center">[[File:{{{1}}}.png|center|link={{#ifeq: {{#var:Skilltree}}|Skill data missing.||{{{1}}}}}|{{{1}}}]]{{cl|{{:{{#var:Skilltree}}|{{{1}}}|Active}}|{{{1}}}|{{#if:{{:{{#var:Skilltree}}|{{{1}}}|Name}}|{{:{{#var:Skilltree}}|{{{1}}}|Name}}|{{{1}}}}}}}</td><!--
<td align="center">[[File:{{{1}}}.png|center|link={{#ifeq: {{#var:Skilltree}}|Skill data missing.||{{{1}}}}}|{{{1}}}]]{{cl|{{:{{#var:Skilltree}}|{{{1}}}|Active}}|{{{1}}}|{{#ifeq: {{#var:Skilltree}}|Skill data missing.|{{{1}}}|{{#if:{{:{{#var:Skilltree}}|{{{1}}}|Name}}|{{:{{#var:Skilltree}}|{{{1}}}|Name}}|{{{1}}}}}}}}}</td><!--
-->{{#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.|<!--

Revision as of 01:06, 11 October 2022

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
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)

SkillBasic StatsDescription
Cleaving Strike
Cleaving Strike
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.