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-->
  
{{#ifeq:{{{1|}}}|gamepro|{{ConvertRating/GamePro|{{{2|}}}|date={{{date|}}}}}|
+
{{#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.

  1. default:
  1. default:
  1. default:
  1. default:
system input display score workings
0-10,0-10,0-10 1,2,3 1/10   2/10   3/10 20 (60, 3)
0-100,0-100,0-100,0-100 10,20,30,40 10%   20%   30%   40% 25 (100, 4)
A-F,A-F,A-F,A-F,A-F A,B,C,D,F A   B   C   D   F 50 (250, 5)
1-5s,1-5s,1-5s,1-5s,1-5s 1,2,3,4,5 1/51/51/51/51/5
2/52/52/52/52/5
3/53/53/53/53/5
4/54/54/54/54/5
5/55/55/55/55/5
50 (250, 5)
gamepro 1,2,3,4
Graphics: 1 Sound: 2 Gameplay: 3 FunFactor: 4
50 (250, 5)
megaforce 1,2,3,4
Son: Bof Graphisme: Moyen Animation: Bien Maniabilite: Super
50 (250, 5)