Template:N Chart: Difference between revisions

From Ultros Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:


{{#vardefine:row_total| {{#expr: 6*4 }} }}
{{#vardefine:row_total| {{#expr: 6*4 }} }}
<table style="table-layout: fixed; width: 132px;">
<style>
table {
  table-layout: fixed;
  width: 132px;
}
table th {
  width=25px;
  padding-left: 4px;
  padding-right: 4px;
}
</style
<table>
<tr>
<tr>
<th sytle="width=25px; margin-left: 4px; margin-right: 4px;">KAR</th>
<th>KAR</th>
<th sytle="width=25px; margin-left: 4px; margin-right: 4px;">YUG</th>
<th>YUG</th>
<th sytle="width=25px; margin-left: 4px; margin-right: 4px;">HWK</th>
<th>HWK</th>
<th sytle="width=25px; margin-left: 4px; margin-right: 4px;">TIP</th>
<th>TIP</th>
</tr>
</tr>
{{#loop: row_loop_index | 0 | {{#var: row_total }}
{{#loop: row_loop_index | 0 | {{#var: row_total }}
| <tr>
| <tr>
<td><div {{#ifexpr: {{#var: kar_value }} < {{#var: row_loop_index }} | style="background-color: #ff33cb; margin-left: 4px; margin-right: 4px;"}}> </div></td>
<td><div {{#ifexpr: {{#var: kar_value }} < {{#var: row_loop_index }} | style="background-color: #ff33cb; padding-left: 4px; padding-right: 4px;"}}> </div></td>
<td><div {{#ifexpr: {{#var: yug_value }} < {{#var: row_loop_index }} | style="background-color: #33e5ff; margin-left: 4px; margin-right: 4px;"}}> </div></td>
<td><div {{#ifexpr: {{#var: yug_value }} < {{#var: row_loop_index }} | style="background-color: #33e5ff; padding-left: 4px; padding-right: 4px;"}}> </div></td>
<td><div {{#ifexpr: {{#var: hwk_value }} < {{#var: row_loop_index }} | style="background-color: #50ff33; margin-left: 4px; margin-right: 4px;"}}> </div></td>
<td><div {{#ifexpr: {{#var: hwk_value }} < {{#var: row_loop_index }} | style="background-color: #50ff33; padding-left: 4px; padding-right: 4px;"}}> </div></td>
<td><div {{#ifexpr: {{#var: tip_value }} < {{#var: row_loop_index }} | style="background-color: #fcc349; margin-left: 4px; margin-right: 4px;"}}> </div></td>
<td><div {{#ifexpr: {{#var: tip_value }} < {{#var: row_loop_index }} | style="background-color: #fcc349; padding-left: 4px; padding-right: 4px;"}}> </div></td>
</tr>  
</tr>  
}}
}}
</table>
</table>

Revision as of 18:14, 14 March 2025




<style> table {

 table-layout: fixed;
 width: 132px;

} table th {

 width=25px;
 padding-left: 4px;
 padding-right: 4px;

} </style

KAR YUG HWK TIP