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