|
|
Line 1: |
Line 1: |
| {{#ifeq: {{{1|}}}| |{{#set: number=1/350}}{{#set: denominator=350}}
| | |
| | {{#set: number={{{1}}}}}{{#set: denominator={{#titleparts:{{{1}}}|2|-1}}}
| |
| }}
| |
| {{#set: percentage_15={{#expr: floor(({{#show: {{#get: number}} |?number}}) * 0.85) }}
| |
| }}{{#set: percentage_25={{#expr: floor(({{#show: {{#get: number}} |?number}}) * 0.75) }}
| |
| }}{{#set: percentage_30={{#expr: floor(({{#show: {{#get: number}} |?number}}) * 0.70) }}
| |
| }}{{#set: percentage_40={{#expr: floor(({{#show: {{#get: number}} |?number}}) * 0.60) }}
| |
| }}
| |
| {{#if: {{{1|}}}|
| |
| {{#show: {{#get: number}} |?number}} | {{#show: {{#get: percentage_15}} |?percentage_15}} | {{#show: {{#get: percentage_25}} |?percentage_25}} | {{#show: {{#get: percentage_30}} |?percentage_30}} | {{#show: {{#get: percentage_40}} |?percentage_40}}
| |
| }}
| |