Difference between revisions of "Template:DamageRow"

From Jackpoint
Line 2: Line 2:
 
{{#ifexpr: {{{max|0}}} >= {{{n|0}}} |  
 
{{#ifexpr: {{{max|0}}} >= {{{n|0}}} |  
 
   <tr>
 
   <tr>
     <td {{#ifexpr: {{{max|0}}} < 1 | style="background-color: #c0c0c0;" }} >{{DamageBox| {{#expr: {{{n|0}}} + 1 }} |{{{d|0}}} | {{{f|0}}} | {{{r|0}}} }}</td>
+
     <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}}} < 2 | style="background-color: #c0c0c0;" }} >{{DamageBox| {{#expr: {{{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 | style="background-color: #c0c0c0;" }} >{{DamageBox| {{#expr: {{{n|0}}} + 3 }} |{{{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 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}}} < 3 | color: lightgray; | font-weight: bold; background: red; }}">-{{{n|0}}}</td>
 
   </tr>
 
   </tr>
 
}}
 
}}
 
<noinclude></table></noinclude>
 
<noinclude></table></noinclude>

Revision as of 13:32, 16 December 2020

-0