Difference between revisions of "ConvertRating/Multiple"

From Sega Retro

 
(10 intermediate revisions by the same user not shown)
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|}}}
 +
|ag={{ConvertRating/AcaoGames|{{{2|}}}|br|{{{date|0}}}}}
 +
|actiongames={{ConvertRating/AcaoGames|{{{2|}}}|ar|{{{date|0}}}}}
 +
|gamepro={{ConvertRating/GamePro|{{{2|}}}|issue={{{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 16: Line 23:
 
{{#if:{{#var:system2}}|{{#if:{{#var:rating2}}|
 
{{#if:{{#var:system2}}|{{#if:{{#var:rating2}}|
 
{{ConvertRating/Single|{{#var:system2}}|{{#var:rating2}}}}
 
{{ConvertRating/Single|{{#var:system2}}|{{#var:rating2}}}}
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}&nbsp;&nbsp;&nbsp;{{#var:displayRating}}}}
+
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system1}}|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 24: Line 31:
 
{{#if:{{#var:system3}}|{{#if:{{#var:rating3}}|
 
{{#if:{{#var:system3}}|{{#if:{{#var:rating3}}|
 
{{ConvertRating/Single|{{#var:system3}}|{{#var:rating3}}}}
 
{{ConvertRating/Single|{{#var:system3}}|{{#var:rating3}}}}
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}&nbsp;&nbsp;&nbsp;{{#var:displayRating}}}}
+
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system2}}|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 32: Line 39:
 
{{#if:{{#var:system4}}|{{#if:{{#var:rating4}}|
 
{{#if:{{#var:system4}}|{{#if:{{#var:rating4}}|
 
{{ConvertRating/Single|{{#var:system4}}|{{#var:rating4}}}}
 
{{ConvertRating/Single|{{#var:system4}}|{{#var:rating4}}}}
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}&nbsp;&nbsp;&nbsp;{{#var:displayRating}}}}
+
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system3}}|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 40: Line 47:
 
{{#if:{{#var:system5}}|{{#if:{{#var:rating5}}|
 
{{#if:{{#var:system5}}|{{#if:{{#var:rating5}}|
 
{{ConvertRating/Single|{{#var:system5}}|{{#var:rating5}}}}
 
{{ConvertRating/Single|{{#var:system5}}|{{#var:rating5}}}}
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}&nbsp;&nbsp;&nbsp;{{#var:displayRating}}}}
+
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system4}}|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 48: Line 55:
 
{{#if:{{#var:system6}}|{{#if:{{#var:rating6}}|
 
{{#if:{{#var:system6}}|{{#if:{{#var:rating6}}|
 
{{ConvertRating/Single|{{#var:system6}}|{{#var:rating6}}}}
 
{{ConvertRating/Single|{{#var:system6}}|{{#var:rating6}}}}
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}&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 85: Line 116:
 
|({{#var:cumulativeScore}}, {{#var:numberOfScores}})
 
|({{#var:cumulativeScore}}, {{#var:numberOfScores}})
 
|-
 
|-
 
+
{{ConvertRating/Multiple|1-5s,1-5s,1-5s,1-5s,1-5s|1,2,3,4,5}}
 +
|1-5s,1-5s,1-5s,1-5s,1-5s
 +
|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:score}}
 +
|({{#var:cumulativeScore}}, {{#var:numberOfScores}})
 +
|-
 +
{{ConvertRating/Multiple|ag|1,2,3|1}}
 +
|ag
 +
|1,2,3
 +
|{{#var:displayRating}}
 +
|{{#var:score}}
 +
|({{#var:cumulativeScore}}, {{#var:numberOfScores}})
 +
|-
 +
{{ConvertRating/Multiple|actiongames|1,2,3,4|1}}
 +
|ag
 +
|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:score}}
 +
|({{#var:cumulativeScore}}, {{#var:numberOfScores}})
 +
|-
 
|}
 
|}
[[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)