Difference between revisions of "Template:DamageRow"

From Jackpoint
(Undo revision 5453 by Jynx (talk))
 
(4 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}}} < {{#expr: {{{n|0}}} + 1 }} | style="background-color: #c0c0c0;" }} >{{DamageBox| {{#expr: {{{n|0}}} + 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}}} < {{#expr: {{{n|0}}} + 2 }} | style="background-color: #c0c0c0;" }} >{{DamageBox| {{#expr: {{{n|0}}} + 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}}} < {{#expr: {{{n|0}}} + 3 }} | style="background-color: #c0c0c0;" }} >{{DamageBox| {{#expr: {{{n|0}}} + 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; }}">-{{{n|0}}}</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