Template:N Chart: Difference between revisions

From Ultros Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:kar_value | 6 }}
{{#vardefine:kar_value | {{#if: {{{kar|}}} | {{{kar|}}} | 10 }} }}
{{#vardefine:yug_value | 12 }}
{{#vardefine:yug_value | {{#if: {{{yug|}}} | {{{yug|}}} | 20 }} }}
{{#vardefine:hwk_value | 0 }}
{{#vardefine:hwk_value | {{#if: {{{hwk|}}} | {{{hwk|}}} | 30 }} }}
{{#vardefine:tip_value| 3 }}
{{#vardefine:tip_value | {{#if: {{{tip|}}} | {{{tip|}}} | 40 }}  }}
{{#vardefine:row_total| {{#expr: 6*4 }} }}
{{#vardefine:row_total| {{#expr: 10*4 }} }}
<includeonly><templatestyles src="Template:N_Chart/styles.css" /></includeonly>
<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: #ff33cb;"}}>_</td>
<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: #33e5ff;"}}>_</td>
<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: #50ff33;"}}>_</td>
<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: #fcc349;"}}>_</td>
<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