Difference between revisions of "Ratings"
From Sonic Retro
m (adding) |
Ccawley2011 (talk | contribs) m |
||
(68 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | {| | + | {{#if:{{{icon|}}}|[[Category:Ratings template]]<div style="display:none"> |
− | | | + | {{#vardefine:totalReviews|0}} |
− | + | {{#vardefine:cumulativeScore|0}} | |
− | | | + | <!-- Calculate total number of reviews --> |
− | {{ | + | {{#forargs: |
− | + | | ratingskey | |
− | {{ | + | | ratingsvalue |
+ | | {{#if: {{#pos:{{#var:ratingskey}}|icon}}{{#pos:{{#var:ratingskey}}|_source}} | | {{addvar|cumulativeScore|{{#var:ratingsvalue}}}}{{incvar|totalReviews}} }} | ||
}} | }} | ||
− | + | <!-- in case it can't cope with divide by zero --> | |
− | {{ | + | {{#ifeq: {{#var: totalReviews}} | 0 | {{incvar|totalReviews}} }} |
− | ! | + | |
− | {{ | + | <!-- Calculate average --> |
+ | {{#vardefine: average| | ||
+ | {{#expr: {{#var: cumulativeScore}} / {{#var: totalReviews}} round 0 | ||
+ | }} | ||
}} | }} | ||
− | + | </div> | |
− | {{ | + | {{{!}}cellpadding="0" cellspacing="0" class="breakout mw-collapsible mw-collapsed" style="max-width: 340px; padding: 5px; float: right; margin-left: 15px; display: inline; position: relative" |
− | + | !rowspan="2" style="width:32px;"{{!}}{{{{{icon}}}|L}} | |
− | + | !rowspan="2" style="width:32px;" style="font-size:16pt; {{scoreColour|{{#var: average}}}}"{{!}}{{#var: average}} | |
− | {{!}}style=" | + | !{{!}}Sonic Retro Average |
+ | {{!}}- | ||
+ | {{!}} style="padding-left:5px;" {{!}} Based on '''{{#var: totalReviews}}''' review{{#ifexpr: {{#var: totalReviews}} > 1|s| }} | ||
+ | {{!}}- | ||
+ | {{!}} colspan="3"{{!}} | ||
+ | {{{!}} class="breakout" width="100%" | ||
+ | !Publication | ||
+ | !Score | ||
+ | !Source | ||
+ | {{!}}- | ||
+ | {{#forargs: | ||
+ | | ratingskey | ||
+ | | ratingsvalue | ||
+ | | {{#if: {{#pos:{{#var:ratingskey}}|icon}}{{#pos:{{#var:ratingskey}}|_source}} | | | ||
+ | {{!}}- | ||
+ | {{!}} {{#vardefine:ratingskeyx|{{#replace:{{#var:ratingskey}}|_1|}}}}{{#vardefine:ratingskeyx|{{#replace:{{#var:ratingskeyx}}|_2|}}}}{{#vardefine:ratingskeyx|{{#replace:{{#var:ratingskeyx}}|_3|}}}}{{#vardefine:ratingskeyx|{{#replace:{{#var:ratingskeyx}}|_4|}}}}{{#switch:{{#var:ratingskeyx}} | ||
+ | | 576kb=''[[sega:576 KByte|576 KByte]]'' (HU) | ||
+ | | acaogames=''[[sega:Ação Games|Ação Games]]'' (BR) | ||
+ | | ace=''[[sega:ACE (magazine)|ACE]]'' (UK) | ||
+ | | advance=''[[sega:Advance|Advance]]'' (DE) | ||
+ | | asm=''[[sega:Aktueller Software Markt|Aktueller Software Markt]]'' (DE) | ||
+ | | badinfluence=''[[sega:Bad Influence! (magazine)|Bad Influence!]]'' (UK) | ||
+ | | bemega=''[[sega:Beep! MegaDrive|Beep! MegaDrive]]'' (JP) | ||
+ | | bemega_r=''[[sega:Beep! MegaDrive|Beep! MegaDrive (readers)]]'' (JP) | ||
+ | | cdconsoles=''[[sega:CD Consoles|CD Consoles]]'' (FR) | ||
+ | | cube=''[[sega:Cube (magazine)|Cube]]'' (UK) | ||
+ | | cubezone=''[[sega:Cubezone|Cubezone]]'' (FR) | ||
+ | | cvg=''[[sega:Computer & Video Games|Computer & Video Games]]'' (UK) | ||
+ | | cvgit=''[[sega:Computer + Video Giochi|Computer + Video Giochi]]'' (IT) | ||
+ | | consolemania=''[[sega:Console Mania|Console Mania]]'' (IT) | ||
+ | | consolexs=''[[sega:Console XS|Console XS]]'' (UK) | ||
+ | | consolesplus=''[[sega:Consoles +|Consoles +]]'' (FR) | ||
+ | | dmjp=''[[sega:Dreamcast Magazine (Japan)|Dreamcast Magazine]]'' (JP) | ||
+ | | edge=''[[sega:Edge|Edge]]'' (UK) | ||
+ | | eg92=''[[sega:Electronic Games (1992)|Electronic Games (1992)]]'' (US) | ||
+ | | egm=''[[sega:Electronic Gaming Monthly|Electronic Gaming Monthly]]'' (US) | ||
+ | | excalibur=''[[sega:Excalibur|Excalibur]]'' (CZ) | ||
+ | | famitsu=''[[sega:Famitsu|Famitsu]]'' (JP) | ||
+ | | gamefan=''[[sega:GameFan|GameFan]]'' (US) | ||
+ | | gamemania=''[[sega:Game Mania|Game Mania]]'' (UK) | ||
+ | | gameplayers=''[[sega:Game Players|Game Players]]'' (US) | ||
+ | | gamepro=''[[sega:GamePro (US)|GamePro]]'' (US) | ||
+ | | gameprode=''[[sega:GamePro (Germany)|GamePro]]'' (DE) | ||
+ | | gameprouk=''[[sega:GamePro (UK)|GamePro]]'' (UK) | ||
+ | | gamersde=''[[sega:Gamers|Gamers]]'' (DE) | ||
+ | | gamestm=''[[sega:GamesTM|GamesTM]]'' (UK) | ||
+ | | gbm=''[[sega:GameBoy Magazyn|GameBoy Magazyn]]'' (PL) | ||
+ | | gmr=''[[sega:GMR|GMR]]'' (US) | ||
+ | | tgm=''[[sega:The Games Machine|The Games Machine]]'' (UK) | ||
+ | | tgmit=''[[sega:The Games Machine (Italy)|The Games Machine]]'' (IT) | ||
+ | | gamesmaster=''[[sega:GamesMaster (magazine)|GamesMaster]]'' (UK) | ||
+ | | gamesworld=''[[sega:Games World: The Magazine|Games World: The Magazine]]'' (UK) | ||
+ | | gamesx=''[[sega:Games-X|Games-X]]'' (UK) | ||
+ | | gbx=''[[sega:GBX|GBX]]'' (UK) | ||
+ | | gforce=''[[sega:G-Force|G-Force]]'' (UK) | ||
+ | | gi=''[[sega:Game Informer|Game Informer]]'' (US) | ||
+ | | highscore=''[[sega:High Score|High Score]]'' (JP) | ||
+ | | hippons=''[[sega:Hippon Super|Hippon Super]]'' (JP) | ||
+ | | hobbyconsolas=''[[sega:Hobby Consolas|Hobby Consolas]]'' (ES) | ||
+ | | hyper=''[[sega:Hyper|Hyper]]'' (AU) | ||
+ | | joypad=''[[sega:Joypad (France)|Joypad]]'' (FR) | ||
+ | | joypadhu=''[[sega:Joypad (Hungary)|Joypad]]'' (HU) | ||
+ | | joystick=''[[sega:Joystick (France)|Joystick]]'' (FR) | ||
+ | | maniac=''[[sega:MAN!AC|MAN!AC]]'' (DE) | ||
+ | | mdag=''[[sega:Sega Mega Drive Advanced Gaming|Sega Mega Drive Advanced Gaming]]'' (UK) | ||
+ | | mega=''[[sega:Mega|Mega]]'' (UK) | ||
+ | | megaaction=''[[sega:Mega Action|Mega Action]]'' (UK) | ||
+ | | megablast=''[[sega:Megablast|Megablast]]'' (DE) | ||
+ | | megaforce=''[[sega:Mega Force (France)|Mega Force]]'' (FR) | ||
+ | | megafun=''[[sega:Mega Fun|Mega Fun]]'' (DE) | ||
+ | | megamachines=''[[sega:Mega Machines|Mega Machines]]'' (UK) | ||
+ | | megapower=''[[sega:Mega Power|Mega Power]]'' (UK) | ||
+ | | megatech=''[[sega:MegaTech|MegaTech]]'' (UK) | ||
+ | | micromania2=''[[sega:Micromanía|Micromanía (segunda época)]]'' (ES) | ||
+ | | micromania3=''[[sega:Micromanía|Micromanía (tercera época)]]'' (ES) | ||
+ | | mm=''[[sega:Mean Machines|Mean Machines]]'' (UK) | ||
+ | | mmd=''[[sega:Marukatsu Mega Drive|Marukatsu Mega Drive]]'' (JP) | ||
+ | | mms=''[[sega:Mean Machines Sega|Mean Machines Sega]]'' (UK) | ||
+ | | mz=''[[sega:Megazone|Megazone]]'' (AU) | ||
+ | | neo=''[[sega:Neo|Neo]]'' (PL) | ||
+ | | neopl=''[[sega:Neo Plus|Neo Plus]]'' (PL) | ||
+ | | ngamer=''[[sega:NGamer|NGamer]]'' (UK) | ||
+ | | ngc=''[[sega:NGC Magazine|NGC Magazine]]'' (UK) | ||
+ | | nomuk=''[[sega:Nintendo Official Magazine|Nintendo Official Magazine]]'' (UK) | ||
+ | | np=''[[sega:Nintendo Power|Nintendo Power]]'' (US) | ||
+ | | odmuk=''[[sega:Official Dreamcast Magazine (UK)|Official Dreamcast Magazine]]'' (UK) | ||
+ | | okconsolas=''[[sega:OK Consolas|OK Consolas]]'' (ES) | ||
+ | | onmuk=''[[sega:The Official Nintendo Magazine|The Official Nintendo Magazine]]'' (UK) | ||
+ | | ops2uk=''[[sega:PlayStation 2 Official Magazine - UK|PlayStation 2 Official Magazine]]'' (UK) | ||
+ | | oxmuk=''[[sega:Official Xbox Magazine|Official Xbox Magazine]]'' (UK) | ||
+ | | pcaction=''[[sega:PC Action|PC Action]]'' (DE) | ||
+ | | pcgames=''[[sega:PC Games|PC Games]]'' (DE) | ||
+ | | pcplayer=''[[sega:PC Player|PC Player]]'' (DE) | ||
+ | | playerone=''[[sega:Player One|Player One]]'' (FR) | ||
+ | | playus=''[[sega:Play (US)|Play]]'' (US) | ||
+ | | pocketgames=''[[sega:Pocket Games|Pocket Games]]'' (US) | ||
+ | | pp=''[[sega:Power Play|Power Play]]'' (DE) | ||
+ | | pu=''[[sega:Power Unlimited|Power Unlimited]]'' (NL) | ||
+ | | raze=''[[sega:Raze|Raze]]'' (UK) | ||
+ | | saturnpower=''[[sega:Saturn Power|Saturn Power]]'' (UK) | ||
+ | | score=''[[sega:Score|Score]]'' (CZ) | ||
+ | | segamagazin=''[[sega:Sega Magazin|Sega Magazin]]'' (DE) | ||
+ | | segamaguk=''[[sega:Sega Magazine (UK)|Sega Magazine]]'' (UK) | ||
+ | | seganews=''[[sega:Sega News (Czechia)|Sega News]]'' (CZ) | ||
+ | | shn=''[[sega:Svenska Hemdatornytt|Svenska Hemdatornytt]]'' (SE) | ||
+ | | sfm=''[[sega:Sega Force Mega|Sega Force Mega]]'' (UK) | ||
+ | | sfsw=''[[sega:Sega Force (Sweden)|Sega Force]]'' (SW) | ||
+ | | sfuk=''[[sega:Sega Force (UK)|Sega Force]]'' (UK) | ||
+ | | smf=''[[sega:Sega Master Force|Sega Master Force]]'' (UK) | ||
+ | | smz=''[[sega:Sega Megazone|Sega Megazone]]'' (AU) | ||
+ | | segapower=''[[sega:Sega Power|Sega Power]]'' (UK) | ||
+ | | segapro=''[[sega:Sega Pro|Sega Pro]]'' (UK) | ||
+ | | segazuk=''[[sega:Sega Zone (UK)|Sega Zone]]'' (UK) | ||
+ | | sgp=''[[sega:SuperGamePower|SuperGamePower]]'' (BR) | ||
+ | | sonicmag=''[[Sonic Mag: B.D. & Jeux-Video!]]'' (FR) | ||
+ | | ssm=''[[sega:Sega Saturn Magazine (UK)|Sega Saturn Magazine]]'' (UK) | ||
+ | | ssmjp=''[[sega:Sega Saturn Magazine (Japan)|Sega Saturn Magazine]]'' (JP) | ||
+ | | ssmjp_r=''[[sega:Sega Saturn Magazine (Japan)|Sega Saturn Magazine (readers)]]'' (JP) | ||
+ | | stc=''[[Sonic the Comic]]'' (UK) | ||
+ | | supergame=''[[sega:Supergame|Supergame]]'' (BR) | ||
+ | | supersonic=''[[sega:Supersonic|Supersonic]]'' (FR) | ||
+ | | todosega=''[[sega:Todo Sega|Todo Sega]]'' (ES) | ||
+ | | topconsoles=''[[sega:Top Consoles|Top Consoles]]'' (FR) | ||
+ | | ts=''[[sega:Total Saturn|Total Saturn]]'' (UK) | ||
+ | | ugameplayers=''[[sega:Ultra Game Players|Ultra Game Players]]'' (US) | ||
+ | | user=''[[sega:User|User]]'' (GR) | ||
+ | | videogame=''VideoGame'' | ||
+ | | videogames=''[[sega:Video Games (Germany)|Video Games]]'' (DE) | ||
+ | | videogamesus=''[[sega:VideoGames|VideoGames]]'' (US) | ||
+ | | vgce=''[[sega:VideoGames & Computer Entertainment|VideoGames & Computer Entertainment]]'' (US) | ||
+ | | zero=''[[sega:Zero (magazine)|Zero]]'' (UK) | ||
+ | | {{#var:ratingskey}} }} | ||
+ | {{!}}style="padding-left:5px;" width="20px" align="center"{{!}} {{#var:ratingsvalue}} | ||
+ | {{!}} {{{{{#var:ratingskey}}_source|}}}{{#if:{{#pos:{{#var:ratingskey}}|_1}}|{{{{{#var:ratingskeyx}}_source_1|}}}}}{{#if:{{#pos:{{#var:ratingskey}}|_2}}|{{{{{#var:ratingskeyx}}_source_2|}}}}}{{#if:{{#pos:{{#var:ratingskey}}|_3}}|{{{{{#var:ratingskeyx}}_source_3|}}}}}{{#if:{{#pos:{{#var:ratingskey}}|_4}}|{{{{{#var:ratingskeyx}}_source_4|}}}}} | ||
+ | {{!}}- | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | + | {{!}}} | |
− | + | {{!}}} | |
− | + | | | |
− | + | {{{!}}cellpadding="0" cellspacing="0" class="breakout" style="width:auto; float:right;" | |
− | {{!}} | + | {{!}}[[File:Segaretro-round.svg|30px|link={{PAGENAME}}/Reception]] [[sega:{{PAGENAME}}/Reception|Reception »]] |
− | + | {{!}}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{!}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{!}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{! | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | + | <noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==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. | 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: | Usage: | ||
<pre> | <pre> | ||
{{Ratings | {{Ratings | ||
+ | | icon= | ||
+ | |||
+ | | 360= | ||
+ | | 3djuegos= | ||
+ | | 4players= | ||
+ | | ace= | ||
+ | | asm= | ||
+ | | badinfluence= | ||
| consolesplus= | | consolesplus= | ||
| cvg= | | cvg= | ||
+ | | cvgit= | ||
| dcuk= | | dcuk= | ||
+ | | dmjp= | ||
+ | | dmjp_r= | ||
| dmuk= | | dmuk= | ||
+ | | dori= | ||
| edge= | | edge= | ||
+ | | eg= | ||
| egm= | | egm= | ||
+ | | famitsu= | ||
+ | | famitsu360= | ||
+ | | flux= | ||
| gamefan= | | gamefan= | ||
− | |||
| gamesmachine= | | gamesmachine= | ||
| gamesmachineuk= | | gamesmachineuk= | ||
+ | | gamesmaster= | ||
+ | | gameplayers= | ||
+ | | gamepower= | ||
+ | | gamepro= | ||
+ | | gamezero= | ||
+ | | gamingtarget= | ||
+ | | generation= | ||
+ | | gi= | ||
+ | | happycomputer= | ||
+ | | highscore= | ||
| hobbyconsolas= | | hobbyconsolas= | ||
+ | | ign= | ||
| joypad= | | joypad= | ||
| joystick= | | joystick= | ||
+ | | justpushstart= | ||
+ | | maniac= | ||
| mdag= | | mdag= | ||
| mega= | | mega= | ||
+ | | megaforce= | ||
+ | | megafun= | ||
| megaplay= | | megaplay= | ||
+ | | meristation= | ||
+ | | micromania= | ||
| mm= | | mm= | ||
| mms= | | mms= | ||
| mrdc= | | mrdc= | ||
| mt= | | mt= | ||
+ | | nextlevel= | ||
+ | | odmfr= | ||
| odmuk= | | odmuk= | ||
| odmus= | | odmus= | ||
+ | | palgn= | ||
| playerone= | | playerone= | ||
− | | | + | | powersonic= |
+ | | pp= | ||
+ | | psu= | ||
+ | | pu= | ||
+ | | s= | ||
| saturnplus= | | saturnplus= | ||
| saturnpower= | | saturnpower= | ||
+ | | sega16= | ||
+ | | segafan= | ||
| segamagjp= | | segamagjp= | ||
| segamaguk= | | segamaguk= | ||
| segapower= | | segapower= | ||
+ | | segapro= | ||
| sfuk= | | sfuk= | ||
| sfsw= | | sfsw= | ||
+ | | sfm= | ||
| smf= | | smf= | ||
+ | | shin= | ||
| smz= | | smz= | ||
| ssm= | | ssm= | ||
+ | | supersonic= | ||
| sv= | | sv= | ||
+ | | svenska= | ||
| tilt= | | tilt= | ||
| ts= | | ts= | ||
+ | | ug= | ||
+ | | ugameplayers= | ||
+ | | vandal= | ||
+ | | vgce= | ||
+ | | viciojuegos= | ||
+ | | videogamecritic= | ||
+ | | worthplaying= | ||
}} | }} | ||
</pre> | </pre> | ||
+ | for sources, add "_source", e.g. | ||
+ | <pre> | ||
+ | | smf_source=[http://www.google.com] | ||
+ | | vgce_source={{num|32}} | ||
+ | </pre> | ||
All fields are optional. | All fields are optional. | ||
− | + | [[Category:Breakout box templates]]</noinclude> | |
− | [[Category:Breakout |
Latest revision as of 06:08, 10 August 2021
Reception » |
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= | 360= | 3djuegos= | 4players= | ace= | asm= | badinfluence= | consolesplus= | cvg= | cvgit= | dcuk= | dmjp= | dmjp_r= | dmuk= | dori= | edge= | eg= | egm= | famitsu= | famitsu360= | flux= | gamefan= | gamesmachine= | gamesmachineuk= | gamesmaster= | gameplayers= | gamepower= | gamepro= | gamezero= | gamingtarget= | generation= | gi= | happycomputer= | highscore= | hobbyconsolas= | ign= | joypad= | joystick= | justpushstart= | maniac= | mdag= | mega= | megaforce= | megafun= | megaplay= | meristation= | micromania= | mm= | mms= | mrdc= | mt= | nextlevel= | odmfr= | odmuk= | odmus= | palgn= | playerone= | powersonic= | pp= | psu= | pu= | s= | saturnplus= | saturnpower= | sega16= | segafan= | segamagjp= | segamaguk= | segapower= | segapro= | sfuk= | sfsw= | sfm= | smf= | shin= | smz= | ssm= | supersonic= | sv= | svenska= | tilt= | ts= | ug= | ugameplayers= | vandal= | vgce= | viciojuegos= | videogamecritic= | worthplaying= }}
for sources, add "_source", e.g.
| smf_source=[http://www.google.com] | vgce_source={{num|32}}
All fields are optional.