Difference between revisions of "User:Jynx/Sandbox/Template2"

From Jackpoint
Line 1: Line 1:
<table class="wikitable" style="table-layout : fixed;">
+
<table class="wikitable">
 
   <tr>
 
   <tr>
 
     <th col colspan="4">{{{name|Condition Monitor}}}</th>
 
     <th col colspan="4">{{{name|Condition Monitor}}}</th>
 
   </tr>
 
   </tr>
 +
 
   {{#ifexpr: {{{max|0}}} >= 1 |  
 
   {{#ifexpr: {{{max|0}}} >= 1 |  
 
   <tr>
 
   <tr>
Line 13: Line 14:
 
   {{#ifexpr: {{{max|0}}} >= 4 |  
 
   {{#ifexpr: {{{max|0}}} >= 4 |  
 
   <tr>
 
   <tr>
     <td {{#ifexpr: {{{max|0}}} < 1 | style="background-color: #c0c0c0;" }} ></td>
+
     <td {{#ifexpr: {{{max|0}}} < 4 | style="background-color: #c0c0c0;" }} >{{#ifexpr: {{{dmg|0}}} >= 4 | X }}</td>
     <td {{#ifexpr: {{{max|0}}} < 2 | style="background-color: #c0c0c0;" }} ></td>
+
    <td {{#ifexpr: {{{max|0}}} < 5 | style="background-color: #c0c0c0;" }} >{{#ifexpr: {{{dmg|0}}} >= 5 | X }}</td>
     <td {{#ifexpr: {{{max|0}}} < 3 | style="background-color: #c0c0c0;" }} ></td>
+
    <td {{#ifexpr: {{{max|0}}} < 6 | style="background-color: #c0c0c0;" }} >{{#ifexpr: {{{dmg|0}}} >= 6 | X }}</td>
     <td style="text-align: center; font-weight: bold; {{#ifexpr: {{{max|0}}} >= 6 | color: lightgray }}">-1</td>
+
    <td style="text-align: center; font-weight: bold; {{#ifexpr: {{{dmg|0}}} < 6 | color: lightgray }}">-1</td>
 +
  </tr>
 +
  }}
 +
  {{#ifexpr: {{{max|0}}} >= 7 |
 +
  <tr>
 +
    <td {{#ifexpr: {{{max|0}}} < 7 | style="background-color: #c0c0c0;" }} >{{#ifexpr: {{{dmg|0}}} >= 7 | X }}</td>
 +
     <td {{#ifexpr: {{{max|0}}} < 8 | style="background-color: #c0c0c0;" }} >{{#ifexpr: {{{dmg|0}}} >= 8 | X }}</td>
 +
     <td {{#ifexpr: {{{max|0}}} < 9 | style="background-color: #c0c0c0;" }} >{{#ifexpr: {{{dmg|0}}} >= 9 | X }}</td>
 +
     <td style="text-align: center; font-weight: bold; {{#ifexpr: {{{dmg|0}}} < 9 | color: lightgray }}">-1</td>
 +
  </tr>
 +
  }}
 +
  {{#ifexpr: {{{max|0}}} >= 10 |
 +
  <tr>
 +
    <td {{#ifexpr: {{{max|0}}} < 10 | style="background-color: #c0c0c0;" }} >{{#ifexpr: {{{dmg|0}}} >= 10 | X }}</td>
 +
    <td {{#ifexpr: {{{max|0}}} < 11 | style="background-color: #c0c0c0;" }} >{{#ifexpr: {{{dmg|0}}} >= 11 | X }}</td>
 +
    <td {{#ifexpr: {{{max|0}}} < 12 | style="background-color: #c0c0c0;" }} >{{#ifexpr: {{{dmg|0}}} >= 12 | X }}</td>
 +
    <td style="text-align: center; font-weight: bold; {{#ifexpr: {{{dmg|0}}} < 12 | color: lightgray }}">-1</td>
 +
  </tr>
 +
  }}
 +
  {{#ifexpr: {{{max|0}}} >= 13 |
 +
  <tr>
 +
    <td {{#ifexpr: {{{max|0}}} < 13 | style="background-color: #c0c0c0;" }} >{{#ifexpr: {{{dmg|0}}} >= 13 | X }}</td>
 +
    <td {{#ifexpr: {{{max|0}}} < 14 | style="background-color: #c0c0c0;" }} >{{#ifexpr: {{{dmg|0}}} >= 14 | X }}</td>
 +
    <td {{#ifexpr: {{{max|0}}} < 15 | style="background-color: #c0c0c0;" }} >{{#ifexpr: {{{dmg|0}}} >= 15 | X }}</td>
 +
    <td style="text-align: center; font-weight: bold; {{#ifexpr: {{{dmg|0}}} < 15 | color: lightgray }}">-1</td>
 
   </tr>
 
   </tr>
 
   }}
 
   }}
 
</table>
 
</table>

Revision as of 21:48, 15 December 2020

Condition Monitor