Template:N Chart: Difference between revisions

From Ultros Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#vardefine:kar_value | {{{kar|}}} }}
{{#vardefine:kar_value | {{#if: {{{kar|}}} | {{{kar|}}} | 6 }} }}
{{#vardefine:yug_value | {{{kar|}}} }}
{{#vardefine:yug_value | {{#if: {{{yug|}}} | {{{yug|}}} | 12 }} }}
{{#vardefine:hwk_value | {{{hwk|}}} }}
{{#vardefine:hwk_value | {{#if: {{{hwk|}}} | {{{hwk|}}} | 18 }} }}
{{#vardefine:tip_value | {{{tip|}}} }}
{{#vardefine:tip_value | {{#if: {{{tip|}}} | {{{tip|}}} | 24 }}  }}
{{#vardefine:row_total| {{#expr: 6*4 }} }}
{{#vardefine:row_total| {{#expr: 6*4 }} }}
<templatestyles src="Template:N_Chart/styles.css" />
<templatestyles src="Template:N_Chart/styles.css" />
Line 13: Line 13:
</tr>
</tr>
{{#loop: row_loop_index | 0 | {{#var: row_total }}
{{#loop: row_loop_index | 0 | {{#var: row_total }}
| <tr>
| <tr class="{{#ifexpr: {{#var: row_loop_index }} = 6  | "seperator" }}">
<td><div {{#ifexpr: {{#var: kar_value }} < {{#var: row_loop_index }} | style="background-color: #ff33cb;"}}> </div></td>
<td><div {{#ifexpr: {{#expr: {{#var: row_total }}-{{#var: kar_value }} }} < {{#var: row_loop_index }} | style="background-color: #ff33cb;"}}> </div></td>
<td><div {{#ifexpr: {{#var: yug_value }} < {{#var: row_loop_index }} | style="background-color: #33e5ff;"}}> </div></td>
<td><div {{#ifexpr: {{#expr: {{#var: row_total }}-{{#var: yug_value }} }} < {{#var: row_loop_index }} | style="background-color: #33e5ff;"}}> </div></td>
<td><div {{#ifexpr: {{#var: hwk_value }} < {{#var: row_loop_index }} | style="background-color: #50ff33;"}}> </div></td>
<td><div {{#ifexpr: {{#expr: {{#var: row_total }}-{{#var: hwk_value }} }} < {{#var: row_loop_index }} | style="background-color: #50ff33;"}}> </div></td>
<td><div {{#ifexpr: {{#var: tip_value }} < {{#var: row_loop_index }} | style="background-color: #fcc349;"}}> </div></td>
<td><div {{#ifexpr: {{#expr: {{#var: row_total }}-{{#var: tip_value }} }} < {{#var: row_loop_index }} | style="background-color: #fcc349;"}}> </div></td>
</tr>  
</tr>  
}}
}}
</table>
</table>

Revision as of 21:14, 14 March 2025



KAR YUG HWK TIP