Difference between revisions of "RatingsTest"

From Sega Retro

 
(17 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
!Source
 
!Source
 
|-
 
|-
{{#vardefine:argpubname|null}}{{#vardefine:argpubscore|null}}{{#vardefine:argpubsource|null}}
+
{{#vardefine:argpubname|null}}{{#vardefine:argpubscore|null}}{{#vardefine:argpubsource|}}{{#vardefine: newrow|false}}{{#vardefine: lastargtype|null}}
 
{{#forargs:
 
{{#forargs:
 
| key
 
| key
Line 15: Line 15:
 
|
 
|
 
<span style="display:none;">
 
<span style="display:none;">
 +
{{#vardefine: key|{{#replace:{{#var:key}}|_1|}}}}
 +
{{#vardefine: key|{{#replace:{{#var:key}}|_2|}}}}
 +
{{#vardefine: key|{{#replace:{{#var:key}}|_3|}}}}
 +
{{#vardefine: key|{{#replace:{{#var:key}}|_4|}}}}
 +
 
{{#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:argtype|name}}}}
+
{{#ifeq: {{#sub:{{#var: key}}|-7}}|_source|{{#vardefine:argtype|source}}|}}
}}
+
|}}
}}
 
 
}}
 
}}
  
{{#ifeq: {{#var: argtype}}|name|{{#ifeq: {{#var:argpubscore}}|null|{{RatingsRowSum|{{#var: magnamelong}}|{{#var: argpubscore}}|{{#var: argpubsource}}}}|}}
+
<!-- -->
 +
{{#ifeq: {{#var: argtype}}|score|{{#ifeq: {{#var: lastargtype}}|score|
 +
{{OnlineRatingTest|argpubname}}
 +
{{#vardefine:magnamelong|{{MagazineName|{{#var: argpubname}}|0|noissuename=yes|nopubdate=yes}}}}
 +
{{RatingsRowSum|{{#var: magnamelong}}|{{#var: argpubscore}}|{{#var: argpubsource}}}}[[Category:Rating without source]]
 +
|}}|}}
 +
 
 +
 
 
{{#ifeq: {{#var: argtype}}|score|{{#vardefine:argpubname|{{#var: key}}}}{{#vardefine:argpubscore|{{#var: value}}}}|}}
 
{{#ifeq: {{#var: argtype}}|score|{{#vardefine:argpubname|{{#var: key}}}}{{#vardefine:argpubscore|{{#var: value}}}}|}}
 
{{#ifeq: {{#var: argtype}}|source|{{#vardefine:argpubsource|{{#var: value}}}}
 
{{#ifeq: {{#var: argtype}}|source|{{#vardefine:argpubsource|{{#var: value}}}}
 
+
{{#vardefine: newrow|true}}
 +
|}}
 +
{{#vardefine: lastargtype|{{#var: argtype}}}}
 +
</span>
 +
{{#ifeq: {{#var: newrow}}|true|
 +
{{#ifeq: {{#var: argpubname}}|null||
 +
{{#ifeq: {{#var: argpubscore}}|null||
 +
{{OnlineRatingTest|argpubname}}
 
{{#vardefine:magnamelong|{{MagazineName|{{#var: argpubname}}|0|noissuename=yes|nopubdate=yes}}}}
 
{{#vardefine:magnamelong|{{MagazineName|{{#var: argpubname}}|0|noissuename=yes|nopubdate=yes}}}}
</span>
 
 
{{RatingsRowSum|{{#var: magnamelong}}|{{#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|}}{{#vardefine: newrow|false}}
 +
|}}
 +
}}
 +
}}
 +
 
 
}}
 
}}
 +
  
 
<!-- Calculate average -->
 
<!-- Calculate average -->

Latest revision as of 08:00, 25 June 2016

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