Template talk


From Sega Retro

How will this average feature work: will it need to be updated manually when a new score is added? I know MediaWiki has a basic system that we can use to automate everything, but how will this extend to multiconsole and Template:Num?
Hell, we should probably automate the magazines that don't use a single number...- Andlabs 16:33, 14 August 2011 (CDT)

I just calculated things by hand - I think there was an attempt at automating things when we first made this template but it didn't work out. Besides, if you're working with multiple consoles it'll probably get a bit confused. It's tedious, but hunting out old magazines in the first place probably takes longer.
More of an experiment to see if it would look nice really. Tons of pages use this template and it would take a while to go through them all and add avereages -Black Squirrel 05:03, 15 August 2011 (CDT)


Sega Mega Drive
25 Sega Retro Average
Show review scores
Sega Saturn
50 Sega Retro Average
Show review scores
Sega Dreamcast
75 Sega Retro Average
Show review scores
IBM PC compatibles
47 Sega Retro Average
Hide review scores
Publication Score Source
DC-UK 53 №11
DC-UK 2: DC Harder 15 №101
DC-UK with a Vengeance 85 №501
Live Free or DC-UK 35 №7
A Good Day to DC-UK 97 [1]
86 Sega Retro Average
Hide review scores
Publication Score Source
DC-UK 53 №11
DC-UK 2: DC Harder 15 №101
DC-UK with a Vengeance 85 №501
Live Free or DC-UK 35 №7
A Good Day to DC-UK 97 №321

or is this too much like Metacritic

the idea here is that it would be one per system and you'd be able to show/hide each list, thus reducing clutter. Probably needs tweaking. Probably not easy to convert into a proper, working template either. But yeah -Black Squirrel 16:20, 9 December 2011 (CST)

If we do go with that one, there might be a way to automate taking the averages but it might involve an extension and might not work with the average at the top; I'd have to look into it - Andlabs 16:35, 9 December 2011 (CST)
I really like this, but we also -really- need it to do averaging automatically. If we have to get an extension to do it, so be it. - Scarred Sun 14:35, 15 December 2011 (CST)



If you see 7 2 5, then we have both ParserFunctions and Variables extensions, which should be all we need (as far as I can tell)
Maybe we can also make it slightly fancier by providing things like an automatic GamePro score calculator that one can show the original score as a popup, but IDK if/how that would work - Andlabs 16:50, 15 December 2011 (CST)

ok so we have ParserFunctions but not Variables - Andlabs 16:55, 15 December 2011 (CST)

OK now that it works

I went ahead and added a collapsible element on the template (I had wanted it to show "out of x reviews" but it looked kind of assy that way.) My question is: how do we want to handle rescored games? That is, a game gets reviewed in one issue of a magazine and then gets a second review (usually for a buyer's guide or something.) My gut is to go with the first recorded review, as that stays truer to the time and truer to the goal of getting all reviews of that time. - Scarred Sun 23:54, 17 March 2012 (CDT)

I already made a "cvg_1" for second Computer & Video Games reviews. I wouldn't like to not have second review scores recorded, but I'd be fine with not counting them towards the average. - Hivebrain 00:20, 18 March 2012 (CDT)
Perhaps something after the template, to indicate that a rescore happened?
Sega Saturn
52 Sega Retro Average
Based on 2 reviews
Publication Score Source
Honest Reviews 100 №120
Irate Gamer 4 №14
The following rescores later happened:
Magazine New Score Notes
Honest Reviews 10 №124 revealed that the CEO of Honest Reviews's publisher Good Reads had been paid by Acclaim to spin a positive review in the hopes that would lead to some good publicity as the game had been mercilessly torn to bits by every other major publication at the time. He personally ghostwrote the review and snuck it in the galley proofs reportedly mere minutes before they went to the press. Upon finding this out, the original reviewer quit and sued Acclaim and Good Reads; Good Reads's CEO resigned shortly thereafter.
Irate Gamer 52 №13 accidentally swapped the review breakouts for this game and Time Travel Salesman Simulator 3.
...on second thought that could get unwieldly, but explaining the situation might be helpful - Andlabs 00:35, 18 March 2012 (CDT)
They don't usually give reasons for rereviews. Just stick them at the bottom of the list like this:
Sega Retro Average 
Publication Score Source
90 №123
82 №45
Computer & Video Games (rescore) 100 №125
Sega Mega Drive
Based on
2 reviews

- Hivebrain 01:16, 18 March 2012 (CDT)
I'd average the two scores. So if CVG gave the game 78 one month and 80 the next, we'd list it as 79 and provide two sources.
The problem is, you can't always treat the first review as the most accurate. Some magazines review the import version of a game before the localised one. -Black Squirrel 05:20, 18 March 2012 (CDT)

On another note, I'd like to figure out a way to have the "based on # reviewS" show up on the collapsed box without it looking gay. "Oh hey, this game has a 58 review, it must be meh... wait it's based on one review :/" - Andlabs 15:10, 18 March 2012 (CDT)

Non-listed magazines

How do you add ratings for magazines not listed, such as Zero?

Like I just did - see the history -Black Squirrel 05:26, 21 May 2012 (CDT)

I understand now, thank you.

Spam protection filter

"The text you wanted to save was blocked by the spam filter. This is probably caused by a link to a blacklisted external site.

The following text is what triggered our spam filter: display:non*"

Now I can't revert to the previous edit either as it also contains "display:non*". Could someone fix this please as the template is now displayed wrong on all game pages. (*=e, I can't post it here either as the Spam protection filter continues to block it)

Thanks for reverting my edit, but Spam filter still prevents me from editing this page, I'd like to add Games-X magazine so that I can start adding the reviews from this magazine.

Aaargghh ... now I can't post a link without spam filter asking me to tell cats from dogs, but there's no submit button to enter the answer and the pictures are also obscured by the black Sega Retro bar at the top of the page. This is frustrating --Pirate Dragon 15:10, 6 August 2012 (CDT)

EDGE and Page numbers

How are we placing page numbers in the _source= fields? And just to confirm: for Edge's x/10 ratings we just multiply by 10? - Andlabs 16:18, 27 October 2012 (CDT)

№101, p55
Vol. 1, №66, p23
I just extended the num template a bit. Just convert any scores to a straight percentage, so yes multiply by 10. - Hivebrain 20:02, 27 October 2012 (CDT)
Thanks - Andlabs 20:45, 27 October 2012 (CDT)

High Scores

So guys, how feasible do you think it is to create a Metacritic-style "high scores" table, i.e. aggregate all these ratings templates so we can compare Mega Drive games against each other or whatever

I've tried to do this in the past, but it's a really awkward mess. If you use DPL you can grab all the ratings templates from pages in a category, but it won't differentiate between consoles and you can't pick apart values (it will always render the table in full, console icons and individual review scores in-tact - you can't just have it print the average score). Also Cloudflare hates you if you use DPL too often

Supposedly there is syntax available that will let you generate lists depending on template parameters, but it's pretty horrible and woefully under-documented. Any ideas? -Black Squirrel 14:33, 23 February 2013 (CST)

2016 update

Not sure this is populating Category:Rating without PDF source - it's likely a quick fix but I'm not sure if we want a more elegant solution? Do we want to build this functionality into the Num template, in case we need a PDF source somewhere else?

p.s. do any testing on Template:RatingsTest - because there's so many pages relying on this template, updates kinda cripple the server in the short term, as mediawiki goes through every page using this template and updates it. It takes hours to move pages en masse to and from categories - that's why I didn't notice the above wasn't happening - the category seemed full and it would take an age to referesh.

It's also not flagging up non-magazine publications even though I'm using Template:OnlineRatingTest. I don't know why (yet) - Mediawiki syntax is really hard to read. -Black Squirrel (talk) 11:52, 25 June 2016 (CDT)

The way it works now, any edit to the magazine name templates will also lag the server, which is something to keep in mind. - Hivebrain (talk) 12:53, 25 June 2016 (CDT)
I'm not sure it works like that.
I think, when you update a template, Mediawiki cycles through any pages that link to that template. There's thousands of (big) pages that use the Ratings template so that takes a while (though why it's given such a high priority as to lag the user experience is another matter).
The MagazineName template is only used by a small handful of pages (which are themselves templates), so that doesn't take very long to cycle through. Something like MagazineNameUK is technically only linked to once, so the update is instantaneous.
I've just added something to MagazineNameJP which will be getting called indirectly from thousands of ratings templates and 700+ magtables, and it hasn't caused an issue... unless there's a delay -Black Squirrel (talk) 13:19, 25 June 2016 (CDT)
Okay there was a delay and it killed the wiki for half an hour. That's not good -Black Squirrel (talk) 14:07, 25 June 2016 (CDT)