Template:Sandbox/Aurelain/HeroClassSkills/row: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Tag: Manual revert
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><tr>
--><tr>
     <td>{{Skill|{{{id}}}|{{{lang}}}}}</td>
     <td>{{Skill|{{{id}}}|{{{L}}}|size=24px}}</td>
     <td>{{#explode:{{{weights}}}|,|0}}</td>
     <td>{{#if:{{{W|}}}<!--
     <td>{{#explode:{{{weights}}}|,|1}}</td>
        -->|{{Sandbox/Aurelain/HeroClassSkills/value|{{#explode:{{{W}}}|,|0}}|{{#explode:{{{T}}}|,|0}}}}<!--
     <td>{{#explode:{{{weights}}}|,|2}}</td>
        -->|—<!--
     <td>{{#explode:{{{weights}}}|,|3}}</td>
        -->}}<!--
    --></td>
     <td>{{Sandbox/Aurelain/HeroClassSkills/value|{{#explode:{{{W}}}|,|1}}|{{#explode:{{{T}}}|,|1}}}}</td>
     <td>{{Sandbox/Aurelain/HeroClassSkills/value|{{#explode:{{{W}}}|,|2}}|{{#explode:{{{T}}}|,|2}}}}</td>
     <td>{{Sandbox/Aurelain/HeroClassSkills/value|{{#explode:{{{W}}}|,|3}}|{{#explode:{{{T}}}|,|3}}}}</td>
</tr><!--
</tr><!--
--></includeonly><!--
--></includeonly><!--
Line 19: Line 23:
<pre><nowiki>
<pre><nowiki>
{{Sandbox/Aurelain/HeroClassSkills/row
{{Sandbox/Aurelain/HeroClassSkills/row
     | lang = en
     | L = en
     | id = assault
     | id = assault
     | weights = 100,200,300,400
     | T = 1000,1000,1100,1100
    | W = 100,200,300,400
}}
}}
</nowiki></pre>
</nowiki></pre>
Line 27: Line 32:
{{Color|lime|Output:}}
{{Color|lime|Output:}}
{{Sandbox/Aurelain/HeroClassSkills/row
{{Sandbox/Aurelain/HeroClassSkills/row
     | lang = en
     | L = en
     | id = assault
     | id = assault
     | weights = 100,200,300,400
     | T = 1000,1000,1100,1100
    | W = 100,200,300,400
}}
}}


__NOTOC__
__NOTOC__
</noinclude>
</noinclude>

Latest revision as of 16:28, 26 August 2026


Renders one skill row with 5 columns.

1. Offense:

Input:

{{Sandbox/Aurelain/HeroClassSkills/row
    | L = en
    | id = assault
    | T = 1000,1000,1100,1100
    | W = 100,200,300,400
}}

Output:

Offense 10.00%100 20.00%200 27.27%300 36.36%400