Difference between revisions of "Template:DamageRow"

From Jackpoint
(Created page with "<noinclude><table class="wikitable"></noinclude> {{#ifexpr: {{{max|0}}} >= {{{n|0}}} | <tr> <td {{#ifexpr: {{{max|0}}} < 1 | style="background-color: #c0c0c0;" }} >{{Da...")
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude><table class="wikitable"></noinclude>
 
<noinclude><table class="wikitable"></noinclude>
{{#ifexpr: {{{max|0}}} >= {{{n|0}}} |  
+
{{#ifexpr: {{{max|0}}} >= 3 * {{{n|0}}} - 2  |  
 
   <tr>
 
   <tr>
     <td {{#ifexpr: {{{max|0}}} < 1 | style="background-color: #c0c0c0;" }} >{{DamageBox| 1 |{{{d|0}}} | {{{f|0}}} | {{{r|0}}} }}</td>
+
     <td {{#ifexpr: {{{max|0}}} < ( 3 * {{{n|0}}} - 2 ) | style="background-color: #c0c0c0;" }} >{{DamageBox| {{#expr: 3 * {{{n|0}}} - 2 }} |{{{d|0}}} | {{{f|0}}} | {{{r|0}}} }}</td>
     <td {{#ifexpr: {{{max|0}}} < 2 | style="background-color: #c0c0c0;" }} >{{DamageBox| 2 |{{{d|0}}} | {{{f|0}}} | {{{r|0}}} }}</td>
+
     <td {{#ifexpr: {{{max|0}}} < ( 3 * {{{n|0}}} - 1 ) | style="background-color: #c0c0c0;" }} >{{DamageBox| {{#expr: 3 * {{{n|0}}} - 1 }} |{{{d|0}}} | {{{f|0}}} | {{{r|0}}} }}</td>
     <td {{#ifexpr: {{{max|0}}} < 3 | style="background-color: #c0c0c0;" }} >{{DamageBox| 3 |{{{d|0}}} | {{{f|0}}} | {{{r|0}}} }}</td>
+
     <td {{#ifexpr: {{{max|0}}} < ( 3 * {{{n|0}}} - 0 ) | style="background-color: #c0c0c0;" }} >{{DamageBox| {{#expr: 3 * {{{n|0}}}    }} |{{{d|0}}} | {{{f|0}}} | {{{r|0}}} }}</td>
     <td style="text-align: center; {{#ifexpr: {{{d|0}}} + {{{f|0}}} + {{{r|0}}} < 3 | color: lightgray; | font-weight: bold; background: red; }}">-1</td>
+
     <td style="text-align: center; {{#ifexpr: {{{d|0}}} + {{{f|0}}} + {{{r|0}}} < {{#expr: 3 * {{{n|0}}}    }} | color: lightgray; | font-weight: bold; background: red; }}">-{{{n|0}}}</td>
 
   </tr>
 
   </tr>
 
}}
 
}}
 
<noinclude></table></noinclude>
 
<noinclude></table></noinclude>

Latest revision as of 13:56, 16 December 2020

R R R -0