Template:N Chart: Difference between revisions
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 { | |||
table-layout: fixed; | |||
width: 132px; | |||
} | |||
table th { | |||
width=25px; | |||
padding-left: 4px; | |||
padding-right: 4px; | |||
} | |||
</style | |||
<table> | |||
<tr> | <tr> | ||
<th | <th>KAR</th> | ||
<th | <th>YUG</th> | ||
<th | <th>HWK</th> | ||
<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; | <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; | <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; | <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; | <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 |
---|---|---|---|