Difference between revisions of "Template:SkillTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
m
(Improved error display when Skill name is missing in Skill data.)
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={{{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}}}|{{#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.|<!--
-->{{#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}}}}<!--
Line 9: Line 10:
-->{{#if:{{#var:skill table enemyskills}}||<!--
-->{{#if:{{#var:skill table enemyskills}}||<!--
-->{{#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: {{:{{#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: {{:{{#var:Skilltree}}|{{{1}}}|Requirements}} | <div align="left">{{C|Req|{{Translate|{{:{{#var:Skilltree}}|{{{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|{{:{{#var:Skilltree}}|{{{1}}}|Description}}|SkillDescription}}}}</td><!--
--><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|{{Translate|{{:{{#var:Skilltree}}|{{{1}}}|Description}}|SkillDescription}}}}}}</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 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: {{:{{#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 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 00:59, 11 October 2022

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