Difference between revisions of "ConvertRating/Single"
From Sega Retro
(Undo revision 583418 by Black Squirrel (talk)) Tag: Undo |
|||
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-7={{#vardefine:displayRating|{{#var:value}}/7}}{{#vardefine:score|{{#expr:{{#var:value}}*(100/7)}}}} | ||
|0-10={{#vardefine:displayRating|{{#var:value}}/10}}{{#vardefine:score|{{#expr:{{#var:value}}*10}}}} | |0-10={{#vardefine:displayRating|{{#var:value}}/10}}{{#vardefine:score|{{#expr:{{#var:value}}*10}}}} |
Revision as of 14:14, 7 May 2020
Rating conversion code for when there's only one value - stops Mediawiki from complaining about recursion.