Difference between revisions of "ConvertRating/Multiple"
From Sega Retro
(Created page with "<includeonly><span style="display:none;"><!--"it'll be easier to work with without Mediawiki's loop syntax--> {{#vardefine:cumulativeDisplay|}}{{#vardefine:cumulativeScore|0}...") |
|||
Line 5: | Line 5: | ||
{{#vardefine:system1|{{#explode:{{{1|}}}|,|0}}}}{{#vardefine:rating1|{{#explode:{{{2|}}}|,|0}}}} | {{#vardefine:system1|{{#explode:{{{1|}}}|,|0}}}}{{#vardefine:rating1|{{#explode:{{{2|}}}|,|0}}}} | ||
{{#if:{{#var:system1}}|{{#if:{{#var:rating1}}| | {{#if:{{#var:system1}}|{{#if:{{#var:rating1}}| | ||
− | {{ConvertRating|{{#var:system1}}|{{#var:rating1}}}} | + | {{ConvertRating/Single|{{#var:system1}}|{{#var:rating1}}}} |
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#var:displayRating}}}} | {{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#var:displayRating}}}} | ||
{{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}} | {{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}} | ||
Line 13: | Line 13: | ||
{{#vardefine:system2|{{#explode:{{{1|}}}|,|1}}}}{{#vardefine:rating2|{{#explode:{{{2|}}}|,|1}}}} | {{#vardefine:system2|{{#explode:{{{1|}}}|,|1}}}}{{#vardefine:rating2|{{#explode:{{{2|}}}|,|1}}}} | ||
{{#if:{{#var:system2}}|{{#if:{{#var:rating2}}| | {{#if:{{#var:system2}}|{{#if:{{#var:rating2}}| | ||
− | {{ConvertRating|{{#var:system2}}|{{#var:rating2}}}} | + | {{ConvertRating/Single|{{#var:system2}}|{{#var:rating2}}}} |
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}} {{#var:displayRating}}}} | {{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}} {{#var:displayRating}}}} | ||
{{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}} | {{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}} | ||
Line 21: | Line 21: | ||
{{#vardefine:system3|{{#explode:{{{1|}}}|,|2}}}}{{#vardefine:rating3|{{#explode:{{{2|}}}|,|2}}}} | {{#vardefine:system3|{{#explode:{{{1|}}}|,|2}}}}{{#vardefine:rating3|{{#explode:{{{2|}}}|,|2}}}} | ||
{{#if:{{#var:system3}}|{{#if:{{#var:rating3}}| | {{#if:{{#var:system3}}|{{#if:{{#var:rating3}}| | ||
− | {{ConvertRating|{{#var:system3}}|{{#var:rating3}}}} | + | {{ConvertRating/Single|{{#var:system3}}|{{#var:rating3}}}} |
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}} {{#var:displayRating}}}} | {{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}} {{#var:displayRating}}}} | ||
{{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}} | {{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}} | ||
Line 29: | Line 29: | ||
{{#vardefine:system4|{{#explode:{{{1|}}}|,|3}}}}{{#vardefine:rating4|{{#explode:{{{2|}}}|,|3}}}} | {{#vardefine:system4|{{#explode:{{{1|}}}|,|3}}}}{{#vardefine:rating4|{{#explode:{{{2|}}}|,|3}}}} | ||
{{#if:{{#var:system4}}|{{#if:{{#var:rating4}}| | {{#if:{{#var:system4}}|{{#if:{{#var:rating4}}| | ||
− | {{ConvertRating|{{#var:system4}}|{{#var:rating4}}}} | + | {{ConvertRating/Single|{{#var:system4}}|{{#var:rating4}}}} |
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}} {{#var:displayRating}}}} | {{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}} {{#var:displayRating}}}} | ||
{{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}} | {{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}} | ||
Line 37: | Line 37: | ||
{{#vardefine:system5|{{#explode:{{{1|}}}|,|4}}}}{{#vardefine:rating5|{{#explode:{{{2|}}}|,|4}}}} | {{#vardefine:system5|{{#explode:{{{1|}}}|,|4}}}}{{#vardefine:rating5|{{#explode:{{{2|}}}|,|4}}}} | ||
{{#if:{{#var:system5}}|{{#if:{{#var:rating5}}| | {{#if:{{#var:system5}}|{{#if:{{#var:rating5}}| | ||
− | {{ConvertRating|{{#var:system5}}|{{#var:rating5}}}} | + | {{ConvertRating/Single|{{#var:system5}}|{{#var:rating5}}}} |
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}} {{#var:displayRating}}}} | {{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}} {{#var:displayRating}}}} | ||
{{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}} | {{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}} | ||
Line 45: | Line 45: | ||
{{#vardefine:system6|{{#explode:{{{1|}}}|,|5}}}}{{#vardefine:rating6|{{#explode:{{{2|}}}|,|5}}}} | {{#vardefine:system6|{{#explode:{{{1|}}}|,|5}}}}{{#vardefine:rating6|{{#explode:{{{2|}}}|,|5}}}} | ||
{{#if:{{#var:system6}}|{{#if:{{#var:rating6}}| | {{#if:{{#var:system6}}|{{#if:{{#var:rating6}}| | ||
− | {{ConvertRating|{{#var:system6}}|{{#var:rating6}}}} | + | {{ConvertRating/Single|{{#var:system6}}|{{#var:rating6}}}} |
{{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}} {{#var:displayRating}}}} | {{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}} {{#var:displayRating}}}} | ||
{{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}} | {{#vardefine:cumulativeScore|{{#expr:{{#var:cumulativeScore}} + {{#var:score}}}}}} |
Revision as of 08:26, 23 April 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 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) |