Difference between revisions of "ConvertRating/Multiple"
From Sega Retro
Line 1: | Line 1: | ||
<includeonly><span style="display:none;"><!--"it'll be easier to work with without Mediawiki's loop syntax--> | <includeonly><span style="display:none;"><!--"it'll be easier to work with without Mediawiki's loop syntax--> | ||
− | {{# | + | {{#switch:{{{1|}}} |
+ | |gamepro={{ConvertRating/GamePro|{{{2|}}}|date={{{date|}}}}} | ||
+ | |megaforce={{ConvertRating/MegaForce|{{{2|}}}|fr}} | ||
+ | |megaforcees={{ConvertRating/MegaForce|{{{2|}}}|es}} | ||
+ | |megaforcept={{ConvertRating/MegaForce|{{{2|}}}|pt}} | ||
+ | |#default: | ||
{{#vardefine:cumulativeDisplay|}}{{#vardefine:cumulativeScore|0}}{{#vardefine:numberOfScores|0}} | {{#vardefine:cumulativeDisplay|}}{{#vardefine:cumulativeScore|0}}{{#vardefine:numberOfScores|0}} | ||
Line 88: | Line 93: | ||
|1-5s,1-5s,1-5s,1-5s,1-5s | |1-5s,1-5s,1-5s,1-5s,1-5s | ||
|1,2,3,4,5 | |1,2,3,4,5 | ||
+ | |{{#var:displayRating}} | ||
+ | |{{#var:score}} | ||
+ | |({{#var:cumulativeScore}}, {{#var:numberOfScores}}) | ||
+ | |- | ||
+ | {{ConvertRating/Multiple|gamepro|1,2,3,4}} | ||
+ | |gamepro | ||
+ | |1,2,3,4 | ||
+ | |{{#var:displayRating}} | ||
+ | |{{#var:score}} | ||
+ | |({{#var:cumulativeScore}}, {{#var:numberOfScores}}) | ||
+ | |- | ||
+ | {{ConvertRating/Multiple|megaforce|1,2,3,4}} | ||
+ | |megaforce | ||
+ | |1,2,3,4 | ||
|{{#var:displayRating}} | |{{#var:displayRating}} | ||
|{{#var:score}} | |{{#var:score}} |
Revision as of 13:05, 5 June 2020
For when there are multiple ratings expected - convert each one and calculate an average.