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-40={{#vardefine:displayRating|{{#var:value}}/40}}{{#vardefine:score|{{#expr:{{#var:value}}*(100/40)}}}}
  
 
|0-50={{#vardefine:displayRating|{{#var:value}}/50}}{{#vardefine:score|{{#expr:{{#var:value}}*2}}}}
 
|0-50={{#vardefine:displayRating|{{#var:value}}/50}}{{#vardefine:score|{{#expr:{{#var:value}}*2}}}}

Revision as of 05:17, 9 May 2021

Rating conversion code for when there's only one value - stops Mediawiki from complaining about recursion.