Template:N Chart: Difference between revisions

From Ultros Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:kar_value | {{#if: {{{kar|}}} | {{{kar|}}} | 6 }} }}
{{#vardefine:kar_value | {{#if: {{{kar|}}} | {{{kar|}}} | 10 }} }}
{{#vardefine:yug_value | {{#if: {{{yug|}}} | {{{yug|}}} | 12 }} }}
{{#vardefine:yug_value | {{#if: {{{yug|}}} | {{{yug|}}} | 20 }} }}
{{#vardefine:hwk_value | {{#if: {{{hwk|}}} | {{{hwk|}}} | 18 }} }}
{{#vardefine:hwk_value | {{#if: {{{hwk|}}} | {{{hwk|}}} | 30 }} }}
{{#vardefine:tip_value | {{#if: {{{tip|}}} | {{{tip|}}} | 24 }}  }}
{{#vardefine:tip_value | {{#if: {{{tip|}}} | {{{tip|}}} | 40 }}  }}
{{#vardefine:row_total| {{#expr: 6*4 }} }}
{{#vardefine:row_total| {{#expr: 10*4 }} }}
<templatestyles src="Template:N_Chart/styles.css" />
<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 class="{{#ifexpr: {{#var: row_loop_index }} = 6 or {{#var: row_loop_index }} = 12 or {{#var: row_loop_index }} = 18 or {{#var: row_loop_index }} = 24 | seperator }}">
| <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>
Line 21: Line 22:
}}
}}
</table>
</table>
</div>

Latest revision as of 17:48, 21 March 2025



KAR YUG HWK TIP