Difference between revisions of "ConvertRating/Single"
From Sega Retro
(Created page with "<includeonly>{{#switch:{{#var:system}} |0-4s={{#vardefine:displayRating|{{StarRating|{{#var:value}}|4}}}}{{#vardefine:score|{{#expr:{{#var:value}}*25}}}} |1-4s={{#vardefine:d...") |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#switch:{{#var:system}} | + | <includeonly>{{#vardefine:system|{{{1|}}}}}{{#vardefine:value|{{{2|}}}}}{{#switch:{{#var:system}} |
|0-4s={{#vardefine:displayRating|{{StarRating|{{#var:value}}|4}}}}{{#vardefine:score|{{#expr:{{#var:value}}*25}}}} | |0-4s={{#vardefine:displayRating|{{StarRating|{{#var:value}}|4}}}}{{#vardefine:score|{{#expr:{{#var:value}}*25}}}} | ||
Revision as of 08:26, 23 April 2020
Rating conversion code for when there's only one value - stops Mediawiki from complaining about recursion.