Difference between revisions of "ConvertRating/Single"
From Sega Retro
Line 25: | Line 25: | ||
|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}}}} | ||
+ | |||
+ | |0-12={{#vardefine:displayRating|{{#var:value}}/12}}{{#vardefine:score|{{#expr:{{#var:value}}*(100/12)}}}} | ||
|1-10={{#vardefine:displayRating|{{#var:value}}/10}}{{#vardefine:score|{{#expr:({{#var:value}}-1)*(100/9)}}}} | |1-10={{#vardefine:displayRating|{{#var:value}}/10}}{{#vardefine:score|{{#expr:({{#var:value}}-1)*(100/9)}}}} |
Revision as of 08:14, 11 June 2020
Rating conversion code for when there's only one value - stops Mediawiki from complaining about recursion.