Difference between revisions of "Ratings"
From Sega Retro
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#vardefine:totalReviews|0}}{{#vardefine:cumulativeScore|0}} | + | {{#if:{{{icon|}}}||<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}})]] |
|}}|}} | |}}|}} | ||
{{#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: newrow|true}}{{#if:{{#pos:{{#var: argpubsource}}|http|}}|[[Category:External rating reference]]|}} |
|}} | |}} | ||
{{#vardefine: lastargtype|{{#var: argtype}}}} | {{#vardefine: lastargtype|{{#var: argtype}}}} | ||
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}} | ||
|- | |- | ||
Line 78: | Line 78: | ||
|average = {{#var: average}} | |average = {{#var: average}} | ||
|totalReviews = {{#var: totalReviews}} | |totalReviews = {{#var: totalReviews}} | ||
− | }}</includeonly><noinclude>{{#cargo_declare: | + | }}</includeonly>{{#if:{{{icon|}}}|[[Category:Update ratings template]]|</div>{{Ratings2|{{{1|}}}|{{{2|{{#titleparts:{{PAGENAME}}}}}}}}}}}<noinclude>{{#cargo_declare: |
_table = ratings_table | _table = ratings_table | ||
|name=Page | |name=Page | ||
Line 105: | Line 105: | ||
All fields are optional. | All fields are optional. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Breakout box templates]]</noinclude> | [[Category:Breakout box templates]]</noinclude> |
Revision as of 14:23, 17 July 2020
Sega Retro Average | ||||
---|---|---|---|---|
|
{{|L}} | N/A |
---|---|
Based on 0 reviews |
This template defines the table "ratings_table". View table.
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.
Usage:
{{Ratings | icon= | publication= }}
Substitute "publication" with a publication code to get the desired result.
for sources, add "_source", e.g.
| smf_source=[http://www.google.com] | vgce_source={{num|32|page=10/11}}
All fields are optional.