Difference between revisions of "Template:SkillTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
(load active/passive param from Skill data page)
(add Skilltree variable)
Line 1: Line 1:
<includeonly><tr>
<includeonly>{{#vardefine:Skilltree|{{:Skill data|{{{1|}}}}}}}<!--
<td align="center">[[File:{{{1}}}.png|center|link={{{1}}}|{{{1}}}]]{{cl|{{:Skill data|{{{1}}}|Active}}|{{{1}}}}}</td><!--
--><tr>
<td align="center">[[File:{{{1}}}.png|center|link={{{1}}}|{{{1}}}]]{{cl|{{:{{#var:Skilltree}}|{{{1}}}|Active}}|{{{1}}}}}</td><!--
-->{{#if:{{#var:skill table hidebasicstats}}||<td><!--
-->{{#if:{{#var:skill table hidebasicstats}}||<td><!--
-->{{#if: {{:Skill data|{{{1}}}|Type}} | <div style="float: left">{{Translate|Type|Properties}}:</div><div style="float: right">{{Translate|{{:Skill data|{{{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: {{:Skill data|{{{1}}}|Range}} | <div style="float: left">{{Translate|Range|Properties}}:</div><div style="float: right">{{Translate|{{:Skill data|{{{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}}}}<!--
-->{{#if: {{:Skill data|{{{1}}}|Energy}} | <div style="float: left">{{Translate|Energy|Properties}}:</div><div style="float: right">{{:Skill data|{{{1}}}|Energy}}</div>{{Clear}}}}<!--
-->{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Energy}} | <div style="float: left">{{Translate|Energy|Properties}}:</div><div style="float: right">{{:{{#var:Skilltree}}|{{{1}}}|Energy}}</div>{{Clear}}}}<!--
-->{{#if: {{:Skill data|{{{1}}}|Cooldown}} | <div style="float: left">{{Translate|Cooldown|Properties}}:</div><div style="float: right">{{:Skill data|{{{1}}}|Cooldown}}</div>{{Clear}}}}<!--
-->{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Cooldown}} | <div style="float: left">{{Translate|Cooldown|Properties}}:</div><div style="float: right">{{:{{#var:Skilltree}}|{{{1}}}|Cooldown}}</div>{{Clear}}}}<!--
-->{{#if:{{#var:skill table enemyskills}}||<!--
-->{{#if:{{#var:skill table enemyskills}}||<!--
-->{{#if: {{:Skill data|{{{1}}}|Modifiers}} | <div style="float: left">{{Translate|Modified by|Properties}}:</div><div style="float: right">{{Translate|{{:Skill data|{{{1}}}|Modifiers}}|Properties}}</div>{{Clear}}}}<!--
-->{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Modifiers}} | <div style="float: left">{{Translate|Modified by|Properties}}:</div><div style="float: right">{{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Modifiers}}|Properties}}</div>{{Clear}}}}<!--
-->{{#if: {{:Skill data|{{{1}}}|Requirements}} | <div align="left">{{C|Req|{{Translate|{{:Skill data|{{{1}}}|Requirements}}|Properties}}}}</div>}}</td>}}<!--
-->{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Requirements}} | <div align="left">{{C|Req|{{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Requirements}}|Properties}}}}</div>}}</td>}}<!--
-->}}<!--
-->}}<!--
--><td>{{C|Gray|{{Translate|{{:Skill data|{{{1}}}|Description}}|SkillDescription}}}}</td><!--
--><td>{{C|Gray|{{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Description}}|SkillDescription}}}}</td><!--
-->{{#if:{{#var:skill table passivebonus}}|<td>{{#if: {{:Skill data|{{{1}}}|Passivevalue1}}|<br>{{C|Orange|{{Translate|Passive bonus|Properties}}:}}<br>{{:Skill data|{{{1}}}|Passivevalue1}} {{Translate|{{:Skill data|{{{1}}}|Passivebonus1}}|Properties}}{{#if: {{:Skill data|{{{1}}}|Passivevalue2}} |<br>{{:Skill data|{{{1}}}|Passivevalue2}} {{Translate|{{:Skill data|{{{1}}}|Passivebonus2}}|Properties}}}}{{#if: {{:Skill data|{{{1}}}|Passivevalue3}} |<br>{{:Skill data|{{{1}}}|Passivevalue3}} {{Translate|{{:Skill data|{{{1}}}|Passivebonus3}}|Properties}}}} }}</td>}}<!--
-->{{#if:{{#var:skill table passivebonus}}|<td>{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Passivevalue1}}|<br>{{C|Orange|{{Translate|Passive bonus|Properties}}:}}<br>{{:{{#var:Skilltree}}|{{{1}}}|Passivevalue1}} {{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Passivebonus1}}|Properties}}{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Passivevalue2}} |<br>{{:{{#var:Skilltree}}|{{{1}}}|Passivevalue2}} {{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Passivebonus2}}|Properties}}}}{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Passivevalue3}} |<br>{{:{{#var:Skilltree}}|{{{1}}}|Passivevalue3}} {{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Passivebonus3}}|Properties}}}} }}</td>}}<!--
-->{{#if:{{#var:skill table hiddenbonus}}|<td>{{C|Gray|{{#if: {{:Skill data|{{{1}}}|Hiddenvalue1}}|<br>{{C|Orange|{{Translate|Hidden bonus|Properties}}:}}<br>{{#if: {{:Skill data|{{{1}}}|Hiddentext1}}|{{:Skill data|{{{1}}}|Hiddentext1}}<br>}} {{:Skill data|{{{1}}}|Hiddenvalue1}} {{Translate|{{:Skill data|{{{1}}}|Hiddenbonus1}}|Properties}}{{#if: {{:Skill data|{{{1}}}|Hiddenvalue2}} |<br>{{:Skill data|{{{1}}}|Hiddenvalue2}} {{Translate|{{:Skill data|{{{1}}}|Hiddenbonus2}}|Properties}}}} }} }}</td>}}<!--
-->{{#if:{{#var:skill table hiddenbonus}}|<td>{{C|Gray|{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Hiddenvalue1}}|<br>{{C|Orange|{{Translate|Hidden bonus|Properties}}:}}<br>{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Hiddentext1}}|{{:{{#var:Skilltree}}|{{{1}}}|Hiddentext1}}<br>}} {{:{{#var:Skilltree}}|{{{1}}}|Hiddenvalue1}} {{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Hiddenbonus1}}|Properties}}{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Hiddenvalue2}} |<br>{{:{{#var:Skilltree}}|{{{1}}}|Hiddenvalue2}} {{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Hiddenbonus2}}|Properties}}}} }} }}</td>}}<!--
-->{{#if:{{#var:skill table notes}}|<td>{{:{{{1}}}|Notes}}</td>}}<!--
-->{{#if:{{#var:skill table notes}}|<td>{{:{{{1}}}|Notes}}</td>}}<!--
--></tr></includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>
--></tr></includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>

Revision as of 17:02, 8 August 2022

This template has no documentation. If you know how to use this template, please add some.