Difference between revisions of "ConvertRating/Multiple"
From Sega Retro
Line 16: | Line 16: | ||
{{#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}} {{#var:displayRating}}}} | + | {{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system1}}|s}}|<br />| }}{{#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 24: | ||
{{#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}} {{#var:displayRating}}}} | + | {{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system12}|s}}|<br />| }}{{#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 32: | ||
{{#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}} {{#var:displayRating}}}} | + | {{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system3}}|s}}|<br />| }}{{#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 40: | ||
{{#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}} {{#var:displayRating}}}} | + | {{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system4}}|s}}|<br />| }}{{#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 48: | ||
{{#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}} {{#var:displayRating}}}} | + | {{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system5}}|s}}|<br />| }}{{#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 85: | ||
|({{#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}}) | ||
+ | |- | ||
|} | |} | ||
[[Category:Sega Retro templates]]</noinclude> | [[Category:Sega Retro templates]]</noinclude> |
Revision as of 13:07, 20 May 2020
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 | 20 | (60, 3) |
0-100,0-100,0-100,0-100 | 10,20,30,40 | 10% 20% 40% | 25 | (100, 4) |
A-F,A-F,A-F,A-F,A-F | A,B,C,D,F | A B D F | 50 | (250, 5) |
1-5s,1-5s,1-5s,1-5s,1-5s | 1,2,3,4,5 | 50 | (250, 5) |