Template:N Chart: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:kar_value | | {{#vardefine:kar_value | {{#if: {{{kar|}}} | {{{kar|}}} | 10 }} }} | ||
{{#vardefine:yug_value | | {{#vardefine:yug_value | {{#if: {{{yug|}}} | {{{yug|}}} | 20 }} }} | ||
{{#vardefine:hwk_value | | {{#vardefine:hwk_value | {{#if: {{{hwk|}}} | {{{hwk|}}} | 30 }} }} | ||
{{#vardefine:tip_value| | {{#vardefine:tip_value | {{#if: {{{tip|}}} | {{{tip|}}} | 40 }} }} | ||
{{#vardefine:row_total| {{#expr: | {{#vardefine:row_total| {{#expr: 10*4 }} }} | ||
<templatestyles src="Template:N_Chart/styles.css" /> | |||
<table class="n-table"> | <div style="background-color: rgba(0.1,0.1,0.1,0.1); margin-left:10%; margin-right:10%;"> | ||
<table class="n-table" style="margin-left: auto; margin-right: auto;"> | |||
<tr> | <tr> | ||
<th>KAR</th> | <th>KAR</th> | ||
Line 12: | Line 13: | ||
<th>TIP</th> | <th>TIP</th> | ||
</tr> | </tr> | ||
{{#loop: row_loop_index | 0 | {{#var: row_total }} | {{#loop: row_loop_index | 0 | {{#expr: {{#var: row_total }}+1 }} | ||
| <tr> | | <tr class="{{#ifexpr: {{#var: row_loop_index }} = 10 or {{#var: row_loop_index }} = 20 or {{#var: row_loop_index }} = 30 or {{#var: row_loop_index }} = 40 | seperator }}"> | ||
<td {{#ifexpr: {{#var: kar_value }} < {{#var: row_loop_index }} | style="background-color: # | <td><div {{#ifexpr: {{#expr: {{#var: row_total }}-{{#var: kar_value }} }} < {{#var: row_loop_index }} | style="background-color: #fd1a86;"}}> </div></td> | ||
<td {{#ifexpr: {{#var: yug_value }} < {{#var: row_loop_index }} | style="background-color: # | <td><div {{#ifexpr: {{#expr: {{#var: row_total }}-{{#var: yug_value }} }} < {{#var: row_loop_index }} | style="background-color: #2ce2fb;"}}> </div></td> | ||
<td {{#ifexpr: {{#var: hwk_value }} < {{#var: row_loop_index }} | style="background-color: # | <td><div {{#ifexpr: {{#expr: {{#var: row_total }}-{{#var: hwk_value }} }} < {{#var: row_loop_index }} | style="background-color: #2efd3f;"}}> </div></td> | ||
<td {{#ifexpr: {{#var: tip_value }} < {{#var: row_loop_index }} | style="background-color: # | <td><div {{#ifexpr: {{#expr: {{#var: row_total }}-{{#var: tip_value }} }} < {{#var: row_loop_index }} | style="background-color: #fd8e37;"}}> </div></td> | ||
</tr> | </tr> | ||
}} | }} | ||
</table> | </table> | ||
</div> |
Latest revision as of 17:48, 21 March 2025
KAR | YUG | HWK | TIP |
---|---|---|---|