Difference between revisions of "Ratings"
From Sega Retro
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <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 | !style="height:39px;" |Sega Retro Average | ||
Line 31: | Line 31: | ||
{{#ifeq: {{#var: argtype}}|score|{{#ifeq: {{#var: lastargtype}}|score| | {{#ifeq: {{#var: argtype}}|score|{{#ifeq: {{#var: lastargtype}}|score| | ||
{{#vardefine:magnamelong|{{MagazineName|{{#var: argpubname}}|noissuename=yes|nopubdate=yes}}}} | {{#vardefine:magnamelong|{{MagazineName|{{#var: argpubname}}|noissuename=yes|nopubdate=yes}}}} | ||
− | {{RatingsRowSum|{{#var: magnamelong}}|{{#var: argpubscore}}|{{#var: argpubsource}}}}[[Category:Rating without source]] | + | {{RatingsRowSum|{{#var: magnamelong}}|{{#var: argpubscore}}|{{#var: argpubsource}}}}[[Category:Rating without source]][[Category:Rating without source ({{#var:argpubname}})]] |
|}}|}} | |}}|}} | ||
Line 60: | Line 60: | ||
|} | |} | ||
{|cellpadding="0" cellspacing="0" class="breakout" style="width:auto !important; float: right; margin-left: 15px; display: inline; position: relative;" | {|cellpadding="0" cellspacing="0" class="breakout" style="width:auto !important; float: right; margin-left: 15px; display: inline; position: relative;" | ||
− | ! style="max-width:40px; height:40px"| {{{{{icon}}}|L | + | ! style="max-width:40px; height:40px"| {{{{{icon}}}|L}} |
! style="max-width:40px;" style="font-size:16pt; {{scoreColour|{{#var: average}}}}"|{{#var: average}} | ! style="max-width:40px;" style="font-size:16pt; {{scoreColour|{{#var: average}}}}"|{{#var: average}} | ||
|- | |- | ||
|colspan="2" style="padding:2px; text-align:center; line-height:initial" | <small>{{#vardefine:totalText|Based on<br>'''{{#var: totalReviews}}''' review{{#ifexpr: {{#var: totalReviews}} > 1|s| }}}}{{#var:totalText}}</small> | |colspan="2" style="padding:2px; text-align:center; line-height:initial" | <small>{{#vardefine:totalText|Based on<br>'''{{#var: totalReviews}}''' review{{#ifexpr: {{#var: totalReviews}} > 1|s| }}}}{{#var:totalText}}</small> | ||
|} | |} | ||
− | + | {{#vardefine:thisIsARating|false}}<includeonly>{{#cargo_store: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
_table = ratings_table | _table = ratings_table | ||
|name = {{#titleparts:{{PAGENAME}}}} | |name = {{#titleparts:{{PAGENAME}}}} | ||
Line 78: | Line 71: | ||
|average = {{#var: average}} | |average = {{#var: average}} | ||
|totalReviews = {{#var: totalReviews}} | |totalReviews = {{#var: totalReviews}} | ||
− | }}</includeonly>{{#if:{{{icon|}}}| | + | }}</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 86: | Line 79: | ||
}} | }} | ||
==Usage== | ==Usage== | ||
− | This template is | + | 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>}} |
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | |||
</pre> | </pre> | ||
− | |||
[[Category:Breakout box templates]]</noinclude> | [[Category:Breakout box templates]]</noinclude> |
Revision as of 13:37, 31 July 2021
Sega Retro Average | ||||
---|---|---|---|---|
|
{{|L}} | N/A |
---|---|
Based on 0 reviews |
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>}}