Difference between revisions of "RatingsTest"

From Sega Retro

Line 1: Line 1:
{{#vardefine:totalReviews|0}}{{#vardefine:cumulativeScore|0}}{{#vardefine:printthis|}}{{#vardefine:argno|0}}{{#vardefine:sources|}}
+
{{#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 15: Line 15:
 
|
 
|
 
<span style="display:none;">
 
<span style="display:none;">
{{#vardefine:argno|{{#expr:{{#var: argno}} + 1}}}}
 
 
{{#vardefine:argtype|score}}
 
{{#vardefine:argtype|score}}
 
{{#ifeq: {{#var: key}}|icon|{{#vardefine:argtype|icon}}|}}
 
{{#ifeq: {{#var: key}}|icon|{{#vardefine:argtype|icon}}|}}
 
{{#ifexpr: {{#len: {{#var: key}} > 7 |
 
{{#ifexpr: {{#len: {{#var: key}} > 7 |
{{#ifeq: {{#sub:{{#var: key}}|-7}}|_source|{{#vardefine:argtype|source}}{{#vardefine:sources|{{#var:sources}}<br/>{{#var: key}} -> {{#sub:{{#var: key}}|-7}}}} | }}
+
{{#ifeq: {{#sub:{{#var: key}}|-7}}|_source|{{#vardefine:argtype|source}} | }}
 
}}
 
}}
 
}}
 
}}
Line 26: Line 25:
 
{{#vardefine:magnamelong|{{MagazineName|{{#var: argpubname}}|0|noissuename=yes|nopubdate=yes}}}}
 
{{#vardefine:magnamelong|{{MagazineName|{{#var: argpubname}}|0|noissuename=yes|nopubdate=yes}}}}
 
</span>
 
</span>
{{RatingsRowSum|{{#var: magnamelong}}|{{#var: argpubscore}}|{{#var: argpubsource}}}} {{#vardefine:printthis|{{#var:printthis}} <br/> {{#var: argpubname}} {{#var: argpubscore}} {{#var: argpubsource}}}}
+
{{RatingsRowSum|{{#var: magnamelong}}|{{#var: argpubscore}}|{{#var: argpubsource}}}}
 
{{#vardefine:argpubname|null}}{{#vardefine:argpubscore|null}}{{#vardefine:argpubsource|null}}|}}
 
{{#vardefine:argpubname|null}}{{#vardefine:argpubscore|null}}{{#vardefine:argpubsource|null}}|}}
 
}}
 
}}
Line 43: 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:sources}}
 
 
{{#var: argno}}: {{#var: printthis}}
 
 
<noinclude>[[Category:Breakout box templates]]</noinclude>
 
<noinclude>[[Category:Breakout box templates]]</noinclude>

Revision as of 10:07, 15 June 2016

Sega Retro Average 
Publication Score Source
{{{{{icon}}}|L}} Division by zero.
Based on
0 review