Misplaced Pages

Module:Video game reviews/data: 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 Browse history interactively← Previous editContent deleted Content added
Revision as of 21:29, 17 July 2014 view sourceJackmcbarn (talk | contribs)31,380 edits new format again - name and sortkey← Previous edit Latest revision as of 05:38, 9 December 2024 view source Paine Ellsworth (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, File movers, New page reviewers, Pending changes reviewers, Rollbackers, Template editors255,936 edits per edit request on talk page - include Mean Machines (Nintendo) as separate and distinct from Mean Machines Sega 
(108 intermediate revisions by 22 users not shown)
Line 1: Line 1:
local reviewers = { local reviewers = {
{']', '1UP'}, { "'']''", '1UP' },
{']', 'Atrip'}, { "'']''", '4P' },
{']', 'AdvGamers'}, { "'']''", 'ACE' },
{']', 'Allgame'}, { "'']''", 'AdvGamers' },
{']', 'AAction'}, { "'']''", 'Allgame' },
{']', 'Amtix'}, { "'']''", 'ASM' },
{']', 'CVG'}, { "'']''", 'AmAction' },
{']', 'CRASH'}, { "'']''", 'AmComputing' },
{']', 'Destruct'}, { "'']''", 'AmForce' },
{']', 'Dragon'}, { "'']''", 'AmFormat' },
{']', 'Edge'}, { "'']''", 'AmPower' },
{']', 'EGM'}, { "'']''", 'AmUI' },
{']', 'EuroG'}, { "'']''", 'AAction' },
{']', 'Fam'}, { "'']''", 'Amtix' },
{']', 'G4'}, { "'']''", 'AVC' },
{ "'']''", 'BMD' },
{'GameCritics', 'GCritics'},
{']', 'GameFan'}, { "'']''", 'CNG' },
{']', 'GI'}, { "'']''", 'CGR' },
{']', 'GamePro'}, { "'']''", 'CGM' },
{ "'']''", 'CGSP' },
{']', 'GameRev'},
{']', 'GMaster'}, { "'']''", 'CGW' },
{']', 'GRadar'}, { "''Consoles +''", 'CP' },
{']', 'GSpot'}, { "'']''", 'CRASH' },
{']', 'GSpy'}, { "'']''", 'CVG' },
{']', 'GTM'}, { "'']''", 'Destruct' },
{']', 'GT'}, { "'']''", 'DT' },
{ "'']''", 'Dragon' },
{'GameWire', 'GW'},
{']', 'GameZone'}, { "'']''", 'EZA' },
{']', 'GB'}, { "'']''", 'Edge' },
{']', 'Hyper'}, { "'']''", 'EGM' },
{']', 'IGN'}, { "'']''", 'EPD' },
{']', 'Joystiq'}, { "'']''", 'EuroG' },
{']', 'MaxPC'}, { "'']''", 'Fam' },
{']', 'N64'}, { "'']''", 'G4' },
{']', 'NGC'}, { "'']''", 'GI' },
{']', 'NG'}, { "'']''", 'GP' },
{'NintendoLife', 'NLife'}, { "'']''", 'GD' },
{']', 'NP'}, { "'']''", 'GameFan' },
{ "'']''", 'Gamekult' },
{'Nintendo World Report', 'NWR'},
{']', 'ONM'}, { "'']''", 'GamePro' },
{ "'']''", 'GameRev' },
{']', 'OPM'},
{ "'']''", 'GMaster' },
{']', 'OPMUK'},
{']', 'OPMAU'}, { "'']''", 'GSpot' },
{']', 'OXM'}, { "'']''", 'GSpy' },
{ "'']''", 'GRadar' },
{']', 'OXMUK'},
{']', 'PALGN'}, { "'']''", 'GStar' },
{']', 'PCF'}, { "'']''", 'GTM' },
{']', 'PCGUK'}, { "'']''", 'GX' },
{']', 'PCGUS'}, { "'']''", 'GT' },
{']', 'PCPP'}, { "'']''", 'Gamezebo' },
{']', 'PCZone'}, { "''GameZone''", 'GameZone' },
{']', 'Play'}, { "''Gekkan PC Engine''", 'GPCE' },
{']', 'Poly'}, { "''Génération 4''", 'Gen4' },
{ "'']''", 'GB' },
{']', 'PSM'},
{']', 'PSM3'}, { "''Hardcore Gamer''", 'HCG' },
{']', 'RPG'}, { "'']''", 'HC' },
{']', 'SUser'}, { "'']''", 'Hyper' },
{']', 'TX'}, { "'']''", 'IGN' },
{']', 'VG'}, { "''Impress Watch''", 'IW' },
{']', 'XPlay'}, { "'']''", 'JXV' },
{']', 'YSinclair'}, { "''Joypad''", 'JP' },
{ "'']''", 'JS' },
{ "'']''", 'Joystiq' },
{ "'']''", 'KS' },
{ "''M! Games''", 'MG' },
{ "'']''", 'ML' },
{ "'']''", 'MW' },
{ "''Marukatsu PC Engine''", 'MPCE' },
{ "'']''", 'MaxPC' },
{ "'']''", 'MM' },
{ "'']''", 'MMS' },
{ "''Mega Fun''", 'MF' },
{ "''MeriStation''", 'MS' },
{ "'']''", 'MIC' },
{ "'']''", 'N64' },
{ "'']''", 'NGen' },
{ "'']''", 'NG' },
{ "'']''", 'NGC' },
{ "'']''", 'NLife' },
{ "'']''", 'NP' },
{ "''Nintendo World Report''", 'NWR' },
{ "'']''", 'NME' },
{ "'']''", 'ONM' },
{ "'']''", 'OPMAU' },
{ "'']''", 'OPMUK' },
{ "'']''", 'OPM' },
{ "]", 'OXMUK' },
{ "]", 'OXM' },
{ "''PALGN''", 'PALGN' },
{ "'']''", 'PCA' },
{ "''PC Engine Fan''", 'PCEF' },
{ "'']''", 'PCF' },
{ "]", 'PCGUK' },
{ "]", 'PCGUS' },
{ "]", 'PCG' },
{ "]", 'GPPCG' },
{ "'']''", 'PCPP' },
{ "'']''", 'PCZone' },
{ "'']''", 'PCGN' },
{ "'']''", 'PCM' },
{ "'']''", 'Play' },
{ "'']''", 'PG' },
{ "'']''", 'Poly' },
{ "''Player One''", 'PO' },
{ "'']''", 'PSM' },
{ "'']''", 'PSM3' },
{ "'']''", 'PSQ' },
{ "'']''", 'Raze' },
{ "'']''", 'Retro' },
{ "''RPGamer''", 'RPG' },
{ "''RPGFan''", 'RPGFan' },
{ "'']''", 'SN' },
{ "'']''", 'SUser' },
{ "'']''", 'STAction' },
{ "'']''", 'STFormat' },
{ "'']''", 'STRev' },
{ "''Superjuegos''", 'SJ' },
{ "''Super Game Power''", 'SGP' },
{ "'']''", 'SP' },
{ "'']''", 'TX' },
{ "'']''", 'TR' },
{ "'']''", 'TELE' },
{ "]", 'TGM' },
{ "]", 'TGMIt' },
{ "'']''", 'TG' },
{ "'']''", 'TILT' },
{ "'']''", 'TOT' },
{ "'']''", 'TA' },
{ "'']''", 'USG' },
{ "'']''", 'VB' },
{ "'']''", 'VGC' },
{ "'']''", 'VG247' },
{ "''Video Games'' (DE)", 'VGS' },
{ "''VideoGamer.com''", 'VG' },
{ "'']''", 'VGCE' },
{ "'']''", 'XPlay' },
{ "'']''", 'YSinclair' },
{ "'']''", 'Zero' },
{ "'']''", 'Z64' },
} }


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


local systems = { local systems = {
{']','A2600'}, { ']', '3DO' },
{']','CV'}, { ']', '3DS' },
{']','DS'}, { ']', 'AMI' },
{']','GB'}, { ']', 'ARC' },
{']','GBA'}, { ']', 'A2600' },
{']','GBC'}, { ']', 'JAG' },
{']', 'GEN'}, { ']', 'LYNX' },
{']','iOS'}, { ']', 'AST' },
{']','N-G'}, { ']', 'C64' },
{']','N64'}, { ']', 'CD32' },
{']','NES'}, { ']', 'CV' },
{']','NGC'}, { ']', 'DOS' },
{']','NSHI'}, { ']', 'SDC' },
{']','PC'}, { ']', 'DS' },
{']','PS'}, { ']', 'GB' },
{']','PS2'}, { ']', 'GBA' },
{']','PS3'}, { ']', 'GBC' },
{']','PS4'}, { ']', 'NGC' },
{']','PSP'}, { ']', 'GEN' },
{']','SDC'}, { ']', 'INT' },
{']','SGG'}, { ']', 'iOS' },
{']','SNES'}, { ']', 'MAC' },
{']','SMD'}, { ']', 'SMS' },
{']','SMS'}, { ']', 'MOB' },
{']','SSAT'}, { ']', 'N-G' },
{']','TG16'}, { ']', 'N64' },
{']','VITA'}, { ']', 'NES' },
{']','XBOX'}, { ']', 'NS' },
{']','X360'}, { ']', 'PC' },
{']','XONE'}, { ']', 'VITA' },
{']','WII'}, { ']', 'PS' },
{ ']', 'PS2' },
{ ']', 'PS3' },
{ ']', 'PS4' },
{ ']', 'PS5' },
{ ']', 'PSP' },
{ ']', 'SSAT' },
{ ']', 'SMD' },
{ ']', 'SGG' },
{ ']', 'NSHI' },
{ ']', 'SNES' },
{ ']', 'TG16' },
{ ']', 'WII' },
{ ']', 'WIIU' },
{ ']', 'XBOX' },
{ ']', 'X360' },
{ ']', 'XONE' },
{ ']', 'XSXS' },
{ ']', 'ZX' },
} }


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


return {
return { reviewers = setupSortkeys(reviewers), aggregators = setupSortkeys(aggregators), systems = setupSortkeys(systems) }
reviewers = setupSortkeys(reviewers),
aggregators = setupSortkeys(aggregators),
systems = setupSortkeys(systems),
i18n = {
wrapper = 'Template:Video game reviews',
templatestyles = 'Module:Video game reviews/styles.css',
pattern = {
reviewer = '^rev%d+$',
aggregator = '^agg%d+$',
award = '^award%d+$',
},
class = {
aggregators = 'vgr-aggregators',
awards = 'vgr-awards',
centeredpub = 'vgr-center',
container = 'video-game-reviews',
containerleft = 'vgr-left',
containernone = 'vgr-none',
containersingle = 'vgr-single',
dark = 'skin-invert',
headerrow = 'vgr-hrow',
na = 'table-na', -- same as Template:n/a
reviews = 'vgr-reviews',
stacked = 'vgr-stacked',
subtitle = 'vgr-subtitle',
title = 'vgr-title',
wikidata = 'vgr-edit-on-wikidata',
-- we keep wikitable around even though all the styles are overriden
-- because it helps some scripts to know to look for a real data table
wikitable = 'wikitable',
},
state = {
autocollapse = 'autocollapse', -- you may not have this on your wiki
collapsed = 'collapsed',
expanded = 'expanded',
},
align = {
left = 'left',
none = 'none',
},
category = {
empty = ']',
multiplatform = ']',
singleplatform = ']',
},
display = {
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'
},
}

Latest revision as of 05:38, 9 December 2024

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.
Subpages of this module.

local reviewers = {
	{ "'']''", '1UP' },
	{ "'']''", '4P' },
	{ "'']''", 'ACE' },
	{ "'']''", 'AdvGamers' },
	{ "'']''", 'Allgame' },
	{ "'']''", 'ASM' },
	{ "'']''", 'AmAction' },
	{ "'']''", 'AmComputing' },
	{ "'']''", 'AmForce' },
	{ "'']''", 'AmFormat' },
	{ "'']''", 'AmPower' },
	{ "'']''", 'AmUI' },
	{ "'']''", 'AAction' },
	{ "'']''", 'Amtix' },
	{ "'']''", 'AVC' },	
	{ "'']''", 'BMD' },
	{ "'']''", 'CNG' },
	{ "'']''", 'CGR' },
	{ "'']''", 'CGM' },
	{ "'']''", 'CGSP' },
	{ "'']''", 'CGW' },
	{ "''Consoles +''", 'CP' },
	{ "'']''", 'CRASH' },
	{ "'']''", 'CVG' },
	{ "'']''", 'Destruct' },
	{ "'']''", 'DT' },
	{ "'']''", 'Dragon' },
	{ "'']''", 'EZA' },
	{ "'']''", 'Edge' },
	{ "'']''", 'EGM' },
	{ "'']''", 'EPD' },
	{ "'']''", 'EuroG' },
	{ "'']''", 'Fam' },
	{ "'']''", 'G4' },
	{ "'']''", 'GI' },
	{ "'']''", 'GP' },
	{ "'']''", 'GD' },
	{ "'']''", 'GameFan' },
	{ "'']''", 'Gamekult' },
	{ "'']''", 'GamePro' },
	{ "'']''", 'GameRev' },
	{ "'']''", 'GMaster' },
	{ "'']''", 'GSpot' },
	{ "'']''", 'GSpy' },
	{ "'']''", 'GRadar' },
	{ "'']''", 'GStar' },
	{ "'']''", 'GTM' },
	{ "'']''", 'GX' },
	{ "'']''", 'GT' },
	{ "'']''", 'Gamezebo' },
	{ "''GameZone''", 'GameZone' },
	{ "''Gekkan PC Engine''", 'GPCE' },
	{ "''Génération 4''", 'Gen4' },
	{ "'']''", 'GB' },
	{ "''Hardcore Gamer''", 'HCG' },
	{ "'']''", 'HC' },
	{ "'']''", 'Hyper' },
	{ "'']''", 'IGN' },
	{ "''Impress Watch''", 'IW' },
	{ "'']''", 'JXV' },
	{ "''Joypad''", 'JP' },
	{ "'']''", 'JS' },
	{ "'']''", 'Joystiq' },
	{ "'']''", 'KS' },
	{ "''M! Games''", 'MG' },
	{ "'']''", 'ML' },
	{ "'']''", 'MW' },
	{ "''Marukatsu PC Engine''", 'MPCE' },
	{ "'']''", 'MaxPC' },
	{ "'']''", 'MM' },
	{ "'']''", 'MMS' },
	{ "''Mega Fun''", 'MF' },
	{ "''MeriStation''", 'MS' },
	{ "'']''", 'MIC' },
	{ "'']''", 'N64' },
	{ "'']''", 'NGen' },
	{ "'']''", 'NG' },
	{ "'']''", 'NGC' },
	{ "'']''", 'NLife' },
	{ "'']''", 'NP' },
	{ "''Nintendo World Report''", 'NWR' },
	{ "'']''", 'NME' },
	{ "'']''", 'ONM' },
	{ "'']''", 'OPMAU' },
	{ "'']''", 'OPMUK' },
	{ "'']''", 'OPM' },
	{ "]", 'OXMUK' },
	{ "]", 'OXM' },
	{ "''PALGN''", 'PALGN' },
	{ "'']''", 'PCA' },
	{ "''PC Engine Fan''", 'PCEF' },
	{ "'']''", 'PCF' },
	{ "]", 'PCGUK' },
	{ "]", 'PCGUS' },
	{ "]", 'PCG' },
	{ "]", 'GPPCG' },
	{ "'']''", 'PCPP' },
	{ "'']''", 'PCZone' },
	{ "'']''", 'PCGN' },
	{ "'']''", 'PCM' },
	{ "'']''", 'Play' },
	{ "'']''", 'PG' },
	{ "'']''", 'Poly' },
	{ "''Player One''", 'PO' },
	{ "'']''", 'PSM' },
	{ "'']''", 'PSM3' },
	{ "'']''", 'PSQ' },
	{ "'']''", 'Raze' },
	{ "'']''", 'Retro' },
	{ "''RPGamer''", 'RPG' },
	{ "''RPGFan''", 'RPGFan' },
	{ "'']''", 'SN' },
	{ "'']''", 'SUser' },
	{ "'']''", 'STAction' },
	{ "'']''", 'STFormat' },
	{ "'']''", 'STRev' },
	{ "''Superjuegos''", 'SJ' },
	{ "''Super Game Power''", 'SGP' },
	{ "'']''", 'SP' },
	{ "'']''", 'TX' },
	{ "'']''", 'TR' },
	{ "'']''", 'TELE' },
	{ "]", 'TGM' },
	{ "]", 'TGMIt' },
	{ "'']''", 'TG' },
	{ "'']''", 'TILT' },
	{ "'']''", 'TOT' },
	{ "'']''", 'TA' },
	{ "'']''", 'USG' },
	{ "'']''", 'VB' },
	{ "'']''", 'VGC' },
	{ "'']''", 'VG247' },
	{ "''Video Games'' (DE)", 'VGS' },
	{ "''VideoGamer.com''", 'VG' },
	{ "'']''", 'VGCE' },
	{ "'']''", 'XPlay' },
	{ "'']''", 'YSinclair' },
	{ "'']''", 'Zero' },
	{ "'']''", 'Z64' },
}

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

local systems = {
	{ ']', '3DO' },
	{ ']', '3DS' },
	{ ']', 'AMI' },
	{ ']', 'ARC' },
	{ ']', 'A2600' },
	{ ']', 'JAG' },
	{ ']', 'LYNX' },
	{ ']', 'AST' },
	{ ']', 'C64' },
	{ ']', 'CD32' },
	{ ']', 'CV' },
	{ ']', 'DOS' },
	{ ']', 'SDC' },
	{ ']', 'DS' },
	{ ']', 'GB' },
	{ ']', 'GBA' },
	{ ']', 'GBC' },
	{ ']', 'NGC' },
	{ ']', 'GEN' },
	{ ']', 'INT' },
	{ ']', 'iOS' },
	{ ']', 'MAC' },
	{ ']', 'SMS' },
	{ ']', 'MOB' },
	{ ']', 'N-G' },
	{ ']', 'N64' },
	{ ']', 'NES' },
	{ ']', 'NS' },
	{ ']', 'PC' },
	{ ']', 'VITA' },
	{ ']', 'PS' },
	{ ']', 'PS2' },
	{ ']', 'PS3' },
	{ ']', 'PS4' },
	{ ']', 'PS5' },
	{ ']', 'PSP' },
	{ ']', 'SSAT' },
	{ ']', 'SMD' },
	{ ']', 'SGG' },
	{ ']', 'NSHI' },
	{ ']', 'SNES' },
	{ ']', 'TG16' },
	{ ']', 'WII' },
	{ ']', 'WIIU' },
	{ ']', 'XBOX' },
	{ ']', 'X360' },
	{ ']', 'XONE' },
	{ ']', 'XSXS' },
	{ ']', 'ZX' },
}

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',
		templatestyles = 'Module:Video game reviews/styles.css',
		pattern = {
			reviewer = '^rev%d+$',
			aggregator = '^agg%d+$',
			award = '^award%d+$',
		},
		class = {
			aggregators = 'vgr-aggregators',
			awards = 'vgr-awards',
			centeredpub = 'vgr-center',
			container = 'video-game-reviews',
			containerleft = 'vgr-left',
			containernone = 'vgr-none',
			containersingle = 'vgr-single',
			dark = 'skin-invert',
			headerrow = 'vgr-hrow',
			na = 'table-na', -- same as Template:n/a
			reviews = 'vgr-reviews',
			stacked = 'vgr-stacked',
			subtitle = 'vgr-subtitle',
			title = 'vgr-title',
			wikidata = 'vgr-edit-on-wikidata',
			-- we keep wikitable around even though all the styles are overriden
			-- because it helps some scripts to know to look for a real data table
			wikitable = 'wikitable',
		},
		state = {
			autocollapse = 'autocollapse', -- you may not have this on your wiki
			collapsed = 'collapsed',
			expanded = 'expanded',
		},
		align = {
			left = 'left',
			none = 'none',
		},
		category = {
			empty = ']',
			multiplatform = ']',
			singleplatform = ']',
		},
		display = {
			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'
	},
}
Categories: