Difference between revisions of "Ratings"

From Sega Retro

Line 34: Line 34:
 
|}}|}}  
 
|}}|}}  
  
{{#ifeq: {{#var: argtype}}|score|{{#vardefine:argpubname|{{#var: key}}}}{{#vardefine:argpubscore|{{#var: value}}}}[[Category:Old-style rating ({{#var:argpubname}})]]|}}
+
{{#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}}{{#if:{{#pos:{{#var: argpubsource}}|http|}}|[[Category:External rating reference]]|}}
 
{{#vardefine: newrow|true}}{{#if:{{#pos:{{#var: argpubsource}}|http|}}|[[Category:External rating reference]]|}}
Line 44: Line 44:
 
{{#ifeq: {{#var: argpubscore}}|null||
 
{{#ifeq: {{#var: argpubscore}}|null||
  
{{#vardefine:magnamelong|{{MagazineName|{{#var: argpubname}}|noissuename=yes|nopubdate=yes}}}}
+
{{#vardefine:magnamelong|{{MagazineName|{{#var: argpubname}}|noissuename=yes|nopubdate=yes}}}}[[Category:Old-style rating ({{#var:argpubname}})]]
 
{{RatingsRowSum|{{#var: magnamelong}}|{{#var: argpubscore}}|{{#var: argpubsource}}}}
 
{{RatingsRowSum|{{#var: magnamelong}}|{{#var: argpubscore}}|{{#var: argpubsource}}}}
 
{{#vardefine:argpubname|null}}{{#vardefine:argpubscore|null}}{{#vardefine:argpubsource|}}{{#vardefine: newrow|false}}
 
{{#vardefine:argpubname|null}}{{#vardefine:argpubscore|null}}{{#vardefine:argpubsource|}}{{#vardefine: newrow|false}}

Revision as of 13:25, 24 May 2022

Sega Retro Average 
Publication Score Source
{{{{{icon}}}|L}} Division by zero.
Based on
0 review
Sega Retro Average 
Publication Version Score
{{|L}} N/A
Based on
0 reviews

Ratings

Usage

Template showing ratings given to a video game by the press. This template is fully automated, with data coming from Category:Magazine articles and Category:Video coverage. The game in question is inferred by the the page name.

Usage:

{{Ratings|<SYSTEM>}}