Template:DropRate: Difference between revisions

From Roat Pkz
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
{{#vardefine:number|{{{1}}}}}
{{#ifeq: {{{1|}}}| |{{#set: number=1/350}}{{#set: denominator=350}}
 
| {{#set: number={{{1}}}}}{{#set: denominator={{#titleparts:{{{1}}}|2|-1}}}
{{#vardefine:percentage_15|{{#expr: floor(({{#var:number}}) * 0.85) )}}  
}}
{{#vardefine:percentage_25|{{#expr: floor(({{#var:number}}) * 0.75) )}}  
{{#set: percentage_15={{#expr: floor(({{#show: {{#get: number}} |?number}}) * 0.85) }}
{{#vardefine:percentage_30|{{#expr: floor(({{#var:number}}) * 0.70) )}}  
}}{{#set: percentage_25={{#expr: floor(({{#show: {{#get: number}} |?number}}) * 0.75) }}
{{#vardefine:percentage_40|{{#expr: floor(({{#var:number}}) * 0.60) )}}  
}}{{#set: percentage_30={{#expr: floor(({{#show: {{#get: number}} |?number}}) * 0.70) }}
 
}}{{#set: percentage_40={{#expr: floor(({{#show: {{#get: number}} |?number}}) * 0.60) }}
{{#var:number}} | {{#var:percentage_15}} | {{#var:percentage_25}} | {{#var:percentage_30}} | {{#var:percentage_40}}
}}
{{#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}}
}}

Revision as of 12:04, 5 April 2024

{{#ifeq: | |"/350" can not be assigned to a declared number type with value 1.

| "{{{" can not be assigned to a declared number type with value 1.Property "Denominator" (as page type) with input value "{{{1}}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.

Property "Percentage 15" (as page type) with input value "Expression error: Missing operand for *." contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.Property "Percentage 25" (as page type) with input value "Expression error: Missing operand for *." contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.Property "Percentage 30" (as page type) with input value "Expression error: Missing operand for *." contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.Property "Percentage 40" (as page type) with input value "Expression error: Missing operand for *." contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.