Template:N Chart: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:kar_value | {{#if: {{{kar|}}} | {{{kar|}}} | | {{#vardefine:kar_value | {{#if: {{{kar|}}} | {{{kar|}}} | 10 }} }} | ||
{{#vardefine:yug_value | {{#if: {{{yug|}}} | {{{yug|}}} | | {{#vardefine:yug_value | {{#if: {{{yug|}}} | {{{yug|}}} | 20 }} }} | ||
{{#vardefine:hwk_value | {{#if: {{{hwk|}}} | {{{hwk|}}} | | {{#vardefine:hwk_value | {{#if: {{{hwk|}}} | {{{hwk|}}} | 30 }} }} | ||
{{#vardefine:tip_value | {{#if: {{{tip|}}} | {{{tip|}}} | | {{#vardefine:tip_value | {{#if: {{{tip|}}} | {{{tip|}}} | 40 }} }} | ||
{{#vardefine:row_total| {{#expr: | {{#vardefine:row_total| {{#expr: 10*4 }} }} | ||
<templatestyles src="Template:N_Chart/styles.css" /> | <templatestyles src="Template:N_Chart/styles.css" /> | ||
<table class="n-table"> | <table class="n-table"> | ||
Line 12: | Line 12: | ||
<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 class="{{#ifexpr: {{#var: row_loop_index }} = | | <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: 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: yug_value }} }} < {{#var: row_loop_index }} | style="background-color: #2ce2fb;"}}> </div></td> |
Revision as of 14:01, 17 March 2025
KAR | YUG | HWK | TIP |
---|---|---|---|