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