Difference between revisions of "RatingsTest"
From Sega Retro
Line 1: | Line 1: | ||
− | + | {{#vardefine:totalReviews|0}}{{#vardefine:cumulativeScore|0}}{{#vardefine:arguments|}} | |
− | |||
− | |||
− | {{#vardefine:totalReviews|0}}{{#vardefine:cumulativeScore|0}} | ||
{|cellpadding="0" cellspacing="0" class="breakout mw-collapsible mw-collapsed" style="width:auto !important; max-width: 320px; float: right; margin-left: 0px; display: inline; position: relative;" | {|cellpadding="0" cellspacing="0" class="breakout mw-collapsible mw-collapsed" style="width:auto !important; max-width: 320px; float: right; margin-left: 0px; display: inline; position: relative;" | ||
!style="height:39px;" |Sega Retro Average | !style="height:39px;" |Sega Retro Average | ||
Line 17: | Line 14: | ||
| value | | value | ||
| | | | ||
− | {{#ifeq: {{#var: key}}|icon|{{#vardefine:argtype|icon}}| | + | {{#vardefine:arguments|{{#var:arguments}} {{#var:key}}}}{{#ifeq: {{#var: key}}|icon|{{#vardefine:argtype|icon}}| |
{{#ifeq: {{#sub:{{#var: key}}|{{#len:key}} - 7|7}}|_source|{{#vardefine:argtype|source}}| | {{#ifeq: {{#sub:{{#var: key}}|{{#len:key}} - 7|7}}|_source|{{#vardefine:argtype|source}}| | ||
{{#vardefine:argtype|score}} | {{#vardefine:argtype|score}} | ||
}} | }} | ||
− | |||
}} | }} | ||
Line 27: | Line 23: | ||
{{#ifeq: {{#var: argtype}}|source|{{#vardefine:pubsource|{{#var: value}}}} | {{#ifeq: {{#var: argtype}}|source|{{#vardefine:pubsource|{{#var: value}}}} | ||
− | |||
{{RatingsRowSum|{{#var: pubname}}|{{#var: pubscore}}|{{#var: pubsource}}}} | {{RatingsRowSum|{{#var: pubname}}|{{#var: pubscore}}|{{#var: pubsource}}}} | ||
{{#vardefine:pubname|null}}{{#vardefine:pubscore|null}}{{#vardefine:pubsource|null}} | {{#vardefine:pubname|null}}{{#vardefine:pubscore|null}}{{#vardefine:pubsource|null}} | ||
Line 47: | Line 42: | ||
|colspan="2" style="padding:2px; text-align:center; line-height:initial" | <small>Based on<br>'''{{#var: totalReviews}}''' review{{#ifexpr: {{#var: totalReviews}} > 1|s| }}</small> | |colspan="2" style="padding:2px; text-align:center; line-height:initial" | <small>Based on<br>'''{{#var: totalReviews}}''' review{{#ifexpr: {{#var: totalReviews}} > 1|s| }}</small> | ||
|} | |} | ||
+ | {{#var: arguments}} | ||
<noinclude>[[Category:Breakout box templates]]</noinclude> | <noinclude>[[Category:Breakout box templates]]</noinclude> |
Revision as of 05:27, 15 June 2016
ExpandSega Retro Average |
---|
{{{{{icon}}}|L}} | Division by zero. |
---|---|
Based on 0 review |