Difference between revisions of "ConvertRating/Single"
From Sega Retro
(0-50) |
|||
Line 37: | Line 37: | ||
|1-20={{#vardefine:displayRating|{{#var:value}}/20}}{{#vardefine:score|{{#expr:({{#var:value}}-1)*(100/19)}}}} | |1-20={{#vardefine:displayRating|{{#var:value}}/20}}{{#vardefine:score|{{#expr:({{#var:value}}-1)*(100/19)}}}} | ||
+ | |||
+ | |0-50={{#vardefine:displayRating|{{#var:value}}/50}}{{#vardefine:score|{{#expr:{{#var:value}}*2}}}} | ||
|0-100={{#vardefine:displayRating|{{#var:value}}%}}{{#vardefine:score|{{#var:value}}}} | |0-100={{#vardefine:displayRating|{{#var:value}}%}}{{#vardefine:score|{{#var:value}}}} |
Revision as of 04:25, 6 May 2021
Rating conversion code for when there's only one value - stops Mediawiki from complaining about recursion.