Difference between revisions of "Template:SkillTable/row"
Jump to navigation
Jump to search
(add second parameter, when provided loads enemydesc instead of player description) |
m |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:Skilltree|{{:Skill data|{{{1|}}}}}}}<!-- | <includeonly>{{#vardefine:Skilltree|{{:Skill data|{{{1|}}}}}}}<!-- | ||
-->{{#vardefine:Modifiers|{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Modifiers}}|{{:{{#var:Skilltree}}|{{{1}}}|Modifiers}}|}}}}<!-- | -->{{#vardefine:Modifiers|{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Modifiers}}|{{:{{#var:Skilltree}}|{{{1}}}|Modifiers}}|}}}}<!-- | ||
-->{{#vardefine:Active|{{#if: {{:{{#var:Skilltree}}|{{{1}}}|Active}}|{{:{{#var:Skilltree}}|{{{1}}}|Active}}|}}}}<!-- | |||
--><tr> | --><tr> | ||
<td align="center">[[File:{{{1}}}.png|center|link={{#ifeq: {{#var:Skilltree}}|Skill data missing.||{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}}}|{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{Translate|{{{1}}}|SkillNames}}]]{{#ifeq: {{#var:Skilltree}}|Skill data missing.|[[{{{1}}}]]|{{cl| | <td align="center">[[File:{{{1}}}.png|center|link={{#ifeq: {{#var:Skilltree}}|Skill data missing.||{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}}}|{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{Translate|{{{1}}}|SkillNames}}]]{{#ifeq: {{#var:Skilltree}}|Skill data missing.|[[{{{1}}}]]|{{cl|{{#var:Active}}|{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#if:{{:{{#var:Skilltree}}|{{{1}}}|Name}}|{{:{{#var:Skilltree}}|{{{1}}}|Name}}|{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{Translate|{{{1}}}|SkillNames}}}}}}}}}}</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.|<!-- | ||
-->{{#if: {{#var:Active}} | {{#switch: {{lc:{{#var:Active}}}} | |||
| attack/charge = <div style="text-align: center;">{{c|Active|{{Translate|Attack|Properties}} / {{Translate|Charge|Properties}}}}</div>{{Clear}} | |||
| attack/maneuver = <div style="text-align: center;">{{c|Active|{{Translate|Attack|Properties}} / {{Translate|Maneuver|Properties}}}}</div>{{Clear}} | |||
| #default = <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}}}}<!-- |
Latest revision as of 12:09, 22 September 2023
This template has no documentation. If you know how to use this template, please add some.