Misplaced Pages

Module:Video game reviews/data/sandbox: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Module:Video game reviews | data Browse history interactively← Previous editNext edit →Content deleted Content added
Revision as of 21:57, 22 April 2016 editFerret (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Pending changes reviewers, Rollbackers, Template editors95,717 edits Helping ZS.← Previous edit Revision as of 13:55, 28 March 2017 edit undoFerret (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Pending changes reviewers, Rollbackers, Template editors95,717 edits SwitchNext edit →
Line 85: Line 85:
{']','N64'}, {']','N64'},
{']','NES'}, {']','NES'},
{']','NS'},
{']','PC'}, {']','PC'},
{']','PS'}, {']','PS'},

Revision as of 13:55, 28 March 2017

This is the module sandbox page for Module:Video game reviews/data (diff).
Module documentation[view] [edit] [history] [purge]
WarningThis Lua module is used on approximately 15,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them.
ProtectedThis module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing.
This module depends on the following other modules:
CSSThis module uses TemplateStyles:
Related pages

This module implements the {{Video game reviews}} template. Please see the template page for usage instructions.

Tracking/maintenance category

The above documentation is transcluded from Module:Video game reviews/data/doc. (edit | history)
Editors can experiment in this module's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this module.
local reviewers = {
	{']', '1UP'},
	{']', 'AdvGamers'},
	{']', 'Allgame'},
	{"]", 'AAction'},
	{"]", 'Amtix'},
	{"]", 'CWG'},
	{"]", 'CVG'},
	{"]", 'CRASH'},
	{"]", 'Destruct'},
	{"]", 'Dragon'},
	{"]", 'Edge'},
	{"]", 'EGM'},
	{']', 'EuroG'},
	{"]", 'Fam'},
	{']', 'G4'},
	{"]", 'GameFan'},
	{"]", 'GI'},
	{"]", 'GamePro'},
	{']', 'GameRev'},
	{"]", 'GMaster'},
	{']', 'GSpot'},
	{']', 'GSpy'},
	{']', 'GRadar'},
	{"]", 'GTM'},
	{']', 'GT'},
	{']', 'GameZone'},
	{']', 'GB'},
	{"]", 'Hyper'},
	{']', 'IGN'},
	{']', 'Joystiq'},
	{"]", 'MaxPC'},
	{"]", 'N64'},
	{"]", 'NGC'},
	{"]", 'NG'},
	{']', 'NLife'},
	{"]", 'NP'},
	{'Nintendo World Report', 'NWR'},
	{"]", 'ONM'},
	{"]", 'OPM'},
	{"]", 'OPMUK'},
	{"]", 'OPMAU'},
	{"]", 'OXM'},
	{"]", 'OXMUK'},
	{']', 'PALGN'},
	{"]", 'PCF'},
	{"]", 'PCGUK'},
	{"]", 'PCGUS'},
	{"]", 'PCPP'},
	{"]", 'PCZone'},
	{"]", 'Play'},
	{']', 'Poly'},
	{"]", 'PSM'},
	{"]", 'PSM3'},
	{']', 'RPG'},
	{"]", 'SUser'},
	{']', 'TX'},
	{']', 'VG'},
	{"]", 'XPlay'},
	{"]", 'YSinclair'},
}

local aggregators = {
	{']','GR'},
	{']','MC'},
}

local systems = {
	{']','3DS'},
	{']','A2600'},
	{']','CV'},
	{']','DS'},
	{']','SDC'},	
	{']','GB'},
	{']','GBA'},
	{']','GBC'},
	{']','NGC'},	
	{']','GEN'},
	{']','iOS'},
	{']','LYNX'},	
	{']','MAC'},
	{']','SMD'},	
	{']','MOB'},
	{']','N-G'},
	{']','N64'},
	{']','NES'},
	{']','NS'},
	{']','PC'},
	{']','PS'},
	{']','PS2'},
	{']','PS3'},
	{']','PS4'},
	{']','PSP'},
	{']','SGG'},
	{']','SNES'},
	{']','SMS'},
	{']','SSAT'},
	{']','NSHI'},	
	{']','TG16'},
	{']','VITA'},
	{']','WII'},
	{']','WIIU'},	
	{']','XBOX'},
	{']','X360'},
	{']','XONE'},
}

--Episodes, Seasons, soforth.
local parts = {
	--Episodes
	{'Episode One','E1'},
	{'Episode Two','E2'},
	{'Episode Three','E3'},
	{'Episode Four','E4'},
	{'Episode Five','E5'},
	{'Episode Six','E6'},
	{'Episode Seven','E7'},
	{'Episode Eight','E8'},
	{'Episode Nine','E9'},
	{'Episode Ten','E10'},
	--Seasons
	{'Season One','S1'},
	{'Season Two','S2'},
	{'Season Three','S3'},
	{'Season Four','S4'},
	{'Season Five','S5'},
	{'Season Six','S6'},
	{'Season Seven','S7'},
	{'Season Eight','S8'},
	{'Season Nine','S9'},
	{'Season Ten','S10'},
	--Years
	{'Year One','Y1'},
	{'Year Two','Y2'},
	{'Year Three','Y3'},
	{'Year Four','Y4'},
	{'Year Five','Y5'},
	{'Year Six','Y6'},
	{'Year Seven','Y7'},
	{'Year Eight','Y8'},
	{'Year Nine','Y9'},
	{'Year Ten','Y10'},
}

local function setupSortkeys(t)
	local retval = {}
	for k,v in ipairs(t) do
		retval] = { name = v, sortkey = k }
	end
	return retval
end

return {
	reviewers = setupSortkeys(reviewers),
	aggregators = setupSortkeys(aggregators),
	systems = setupSortkeys(systems),
	parts = setupSortkeys(parts),
	i18n = {
		wrapper = 'Template:Video game reviews',
		emptyCategory = ']',
		multiplatformCategory = ']',
		singleplatformCategory = ']',
		aggregateScore = 'Aggregate score',
		aggregateScores = 'Aggregate scores',
		aggregator = 'Aggregator',
		award = 'Award',
		awards = 'Awards',
		na = 'N/A',
		publication = 'Publication',
		reception = 'Reception',
		reviewScore = 'Review score',
		reviewScores = 'Review scores',
		score = 'Score',
	},
	argi18n = {
		-- For non-English wikis, add translations of argument keys here.
		-- Example:
		-- subtitle = 'untertitel'
	}
}
Category: