Difference between revisions of "Ratings"

From Sega Retro

(meh)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#if:{{{icon|}}}||<div style="display:none;">}}{{#vardefine:totalReviews|0}}{{#vardefine:cumulativeScore|0}}
+
<div style="display:none;">{{#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&nbsp;
 
!style="height:39px;" |Sega Retro Average&nbsp;
Line 71: Line 71:
 
|average = {{#var: average}}
 
|average = {{#var: average}}
 
|totalReviews = {{#var: totalReviews}}
 
|totalReviews = {{#var: totalReviews}}
}}</includeonly>{{#if:{{{icon|}}}|[[Category:Update ratings template]]|</div>{{Ratings2|{{{1|}}}|{{{2|{{FormatSQL|{{#titleparts:{{PAGENAME}}}}}}}}}}}}}<noinclude>{{#cargo_declare:
+
}}</includeonly>{{#if:{{{icon|}}}|[[Category:Update ratings template]][[Category:{{#var: totalReviews}} old ratings]]}}</div>{{Ratings2|{{{icon|}}}{{{1|}}}|{{{2|{{FormatSQL|{{#titleparts:{{PAGENAME}}}}}}}}}}}<noinclude>{{#cargo_declare:
 
_table = ratings_table
 
_table = ratings_table
 
|name=Page
 
|name=Page
Line 79: Line 79:
 
}}
 
}}
 
==Usage==
 
==Usage==
This template is to be used on articles about video games and will display scores awarded to said games by video game magazines/websites.  
+
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:
 
Usage:
 
<pre>
 
<pre>
{{Ratings
+
{{Ratings|<SYSTEM>}}
| icon=
 
| publication=
 
}}
 
</pre>
 
 
 
Substitute "publication" with a [[Sega Retro:Publication codes|publication code]] to get the desired result.
 
 
 
for sources, add "_source", e.g.
 
<pre>
 
| smf_source=[http://www.google.com]
 
| vgce_source={{num|32|page=10/11}}
 
 
</pre>
 
</pre>
All fields are optional.
 
  
 
[[Category:Breakout box templates]]</noinclude>
 
[[Category:Breakout box templates]]</noinclude>

Latest revision as of 13:37, 31 July 2021

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

Ratings <meta itemprop="ratingValue" content="Division by zero.">

This template defines the table "ratings_table". View table.

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>}}