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 13:55, 28 March 2017 editFerret (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Pending changes reviewers, Rollbackers, Template editors95,717 edits Switch← Previous edit Revision as of 14:47, 6 July 2017 edit undoIzno (talk | contribs)Checkusers, Interface administrators, Administrators115,051 edits sync with main boxNext edit →
Line 1: Line 1:
local reviewers = { local reviewers = {
{']', '1UP'}, {"]", '1UP'},
{']', 'AdvGamers'}, {']', 'AdvGamers'},
{']', 'Allgame'}, {']', 'Allgame'},
{"]", 'AAction'}, {"]", 'AAction'},
{"]", 'Amtix'}, {"]", 'Amtix'},
{"]", 'CWG'}, {"]", 'CWG'},
{"]", 'CVG'}, {"]", 'CVG'},
Line 12: Line 12:
{"]", 'Edge'}, {"]", 'Edge'},
{"]", 'EGM'}, {"]", 'EGM'},
{']', 'EuroG'}, {"]", 'EuroG'},
{"]", 'Fam'}, {"]", 'Fam'},
{']', 'G4'}, {']', 'G4'},
{"]", 'GameFan'}, {"]", 'GameFan'},
{"]", 'GI'}, {"]", 'GI'},
{"]", 'GamePro'}, {"]", 'GamePro'},
{']', 'GameRev'}, {']', 'GameRev'},
{"]", 'GMaster'}, {"]", 'GMaster'},
{']', 'GSpot'}, {']', 'GSpot'},
{']', 'GSpy'}, {']', 'GSpy'},
Line 29: Line 29:
{"]", 'Hyper'}, {"]", 'Hyper'},
{']', 'IGN'}, {']', 'IGN'},
{']', 'Joystiq'}, {"]", 'Joystiq'},
{"]", 'MaxPC'}, {"]", 'MaxPC'},
{"]", 'N64'}, {"]", 'N64'},
{"]", 'NGC'}, {"]", 'NGC'},
{"]", 'NG'}, {"]", 'NG'},
{']', 'NLife'}, {"]", 'NLife'},
{"]", 'NP'}, {"]", 'NP'},
{'Nintendo World Report', 'NWR'}, {'Nintendo World Report', 'NWR'},
{"]", 'ONM'}, {"]", 'ONM'},
{"]", 'OPM'}, {"]", 'OPM'},
{"]", 'OPMUK'}, {"]", 'OPMUK'},
{"]", 'OPMAU'}, {"]", 'OPMAU'},
{"]", 'OXM'}, {"]", 'OXM'},
{"]", 'OXMUK'}, {"]", 'OXMUK'},
{']', 'PALGN'}, {']', 'PALGN'},
Line 50: Line 50:
{"]", 'PCZone'}, {"]", 'PCZone'},
{"]", 'Play'}, {"]", 'Play'},
{']', 'Poly'}, {"]", 'Poly'},
{"]", 'PSM'}, {"]", 'PSM'},
{"]", 'PSM3'}, {"]", 'PSM3'},
{']', 'RPG'}, {'RPGamer', 'RPG'},
{"]", 'SUser'}, {"]", 'SUser'},
{']', 'TX'}, {']', 'TX'},
Line 71: Line 71:
{']','CV'}, {']','CV'},
{']','DS'}, {']','DS'},
{']','SDC'}, {']','SDC'},
{']','ESHOP'},
{']','GB'}, {']','GB'},
{']','GBA'}, {']','GBA'},
Line 104: Line 105:
{']','X360'}, {']','X360'},
{']','XONE'}, {']','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'},
} }


Line 155: Line 119:
aggregators = setupSortkeys(aggregators), aggregators = setupSortkeys(aggregators),
systems = setupSortkeys(systems), systems = setupSortkeys(systems),
parts = setupSortkeys(parts),
i18n = { i18n = {
wrapper = 'Template:Video game reviews', wrapper = 'Template:Video game reviews',

Revision as of 14:47, 6 July 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'},
	{'RPGamer', 'RPG'},
	{"]", 'SUser'},
	{']', 'TX'},
	{']', 'VG'},
	{"]", 'XPlay'},
	{"]", 'YSinclair'},
}

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

local systems = {
	{']','3DS'},
	{']','A2600'},
	{']','CV'},
	{']','DS'},
	{']','SDC'},
	{']','ESHOP'},
	{']','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'},
}

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),
	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: