Difference between revisions of "ConvertRating/Multiple"
From Sega Retro
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 />| }}{{#var:displayRating}}}} | {{#vardefine:cumulativeDisplay|{{#var:cumulativeDisplay}}{{#if:{{#pos:{{#var:system5}}|s}}|<br />| }}{{#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 />| }}{{#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}}}} |
Revision as of 07:32, 14 June 2020
For when there are multiple ratings expected - convert each one and calculate an average.