Difference between revisions of "ConvertRating/Multiple"

From Sega Retro

 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
{{#switch:{{{1|}}}
 
{{#switch:{{{1|}}}
|ag={{ConvertRating/AcaoGames|{{{2|}}}|br}}
+
|ag={{ConvertRating/AcaoGames|{{{2|}}}|br|{{{date|0}}}}}
|actiongames={{ConvertRating/AcaoGames|{{{2|}}}|ar}}
+
|actiongames={{ConvertRating/AcaoGames|{{{2|}}}|ar|{{{date|0}}}}}
|gamepro={{ConvertRating/GamePro|{{{2|}}}|date={{{date|}}}}}
+
|gamepro={{ConvertRating/GamePro|{{{2|}}}|issue={{{date|}}}}}
 
|megaforce={{ConvertRating/MegaForce|{{{2|}}}|fr}}
 
|megaforce={{ConvertRating/MegaForce|{{{2|}}}|fr}}
 
|megaforcees={{ConvertRating/MegaForce|{{{2|}}}|es}}
 
|megaforcees={{ConvertRating/MegaForce|{{{2|}}}|es}}
Line 56: Line 56:
 
{{ConvertRating/Single|{{#var:system6}}|{{#var:rating6}}}}
 
{{ConvertRating/Single|{{#var:system6}}|{{#var:rating6}}}}
 
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system5}}|s}}|<br />|&nbsp;&nbsp;&nbsp;}}{{#var:displayRating}}}}
 
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system5}}|s}}|<br />|&nbsp;&nbsp;&nbsp;}}{{#var:displayRating}}}}
 +
{{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}}
 +
{{#vardefine:numberOfScores|{{#expr:{{#var:numberOfScores}} + 1}}}}
 +
|}}|}}
 +
 +
{{#vardefine:system7|{{#explode:{{{1|}}}|,|6}}}}{{#vardefine:rating7|{{#explode:{{{2|}}}|,|6}}}}
 +
{{#if:{{#var:system7}}|{{#if:{{#var:rating7}}|
 +
{{ConvertRating/Single|{{#var:system7}}|{{#var:rating7}}}}
 +
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system6}}|s}}|<br />|&nbsp;&nbsp;&nbsp;}}{{#var:displayRating}}}}
 +
{{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}}
 +
{{#vardefine:numberOfScores|{{#expr:{{#var:numberOfScores}} + 1}}}}
 +
|}}|}}
 +
 +
{{#vardefine:system8|{{#explode:{{{1|}}}|,|7}}}}{{#vardefine:rating8|{{#explode:{{{2|}}}|,|7}}}}
 +
{{#if:{{#var:system8}}|{{#if:{{#var:rating8}}|
 +
{{ConvertRating/Single|{{#var:system8}}|{{#var:rating8}}}}
 +
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system7}}|s}}|<br />|&nbsp;&nbsp;&nbsp;}}{{#var:displayRating}}}}
 +
{{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}}
 +
{{#vardefine:numberOfScores|{{#expr:{{#var:numberOfScores}} + 1}}}}
 +
|}}|}}
 +
 +
{{#vardefine:system9|{{#explode:{{{1|}}}|,|8}}}}{{#vardefine:rating9|{{#explode:{{{2|}}}|,|8}}}}
 +
{{#if:{{#var:system9}}|{{#if:{{#var:rating9}}|
 +
{{ConvertRating/Single|{{#var:system9}}|{{#var:rating9}}}}
 +
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system8}}|s}}|<br />|&nbsp;&nbsp;&nbsp;}}{{#var:displayRating}}}}
 
{{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}}
 
{{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}}
 
{{#vardefine:numberOfScores|{{#expr:{{#var:numberOfScores}} + 1}}}}
 
{{#vardefine:numberOfScores|{{#expr:{{#var:numberOfScores}} + 1}}}}
Line 123: Line 147:
 
|ag
 
|ag
 
|1,2,3,4
 
|1,2,3,4
 +
|{{#var:displayRating}}
 +
|{{#var:score}}
 +
|({{#var:cumulativeScore}}, {{#var:numberOfScores}})
 +
|-
 +
{{ConvertRating/Multiple|0-5s,0-5s,0-5s,0-5s,0-5s,0-5s,0-5s,0-5s,0-5s|0,0.5,1,1.5,2,2.5,3,3.5,4}}
 +
|0-5s,0-5s,0-5s,0-5s,0-5s,0-5s,0-5s,0-5s,0-5s
 +
|0,0.5,1,1.5,2,2.5,3,3.5,4
 
|{{#var:displayRating}}
 
|{{#var:displayRating}}
 
|{{#var:score}}
 
|{{#var:score}}
Line 128: Line 159:
 
|-
 
|-
 
|}
 
|}
[[Category:Sega Retro templates]]</noinclude>
+
[[Category:Templates]]</noinclude>

Latest revision as of 16:45, 29 August 2022

For when there are multiple ratings expected - convert each one and calculate an average.

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)
ag 1,2,3
Gráfico: Fraco Som: Regular Desafio: Bom
50 (250, 5)
ag 1,2,3,4
Gráfico: Fraco Som: Regular Desafio: Bom Diversão: Otimo
62.5 (250, 5)
0-5s,0-5s,0-5s,0-5s,0-5s,0-5s,0-5s,0-5s,0-5s 0,0.5,1,1.5,2,2.5,3,3.5,4 0/50/50/50/50/5
0.5/50.5/50.5/50.5/50.5/5
1/51/51/51/51/5
1.5/51.5/51.5/51.5/51.5/5
2/52/52/52/52/5
2.5/52.5/52.5/52.5/52.5/5
3/53/53/53/53/5
3.5/53.5/53.5/53.5/53.5/5
4/54/54/54/54/5
40 (360, 9)