Jump to content

Module:Video game reviews/data

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ferret (talk | contribs) at 18:55, 31 December 2020 (User:Nihonjoe, if you actually used the "PCE" system code (which wasn't added to documentation), please replace with TG16, which is already in the table and the same system.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local reviewers = {
	{ "[[1Up.com|''1Up.com'']]", '1UP' },
	{ "[[4Players|''4Players'']]", '4P' },
	{ "[[ACE (magazine)|''ACE'']]", 'ACE' },
	{ "[[Adventure Gamers|''Adventure Gamers'']]", 'AdvGamers' },
	{ "[[AllGame|''AllGame'']]", 'Allgame' },
	{ "[[Amstrad Action|''Amstrad Action'']]", 'AAction' },
	{ "[[Amtix|''Amtix'']]", 'Amtix' },
	{ "[[Computer Games Magazine|''CGM'']]", 'CGM' },
	{ "[[Computer Games Magazine|''CGSP'']]", 'CGSP' },
	{ "[[Computer Gaming World|''CGW'']]", 'CGW' },
	{ "\''Consoles +'\'", 'CP' },
	{ "[[Crash (magazine)|''Crash'']]", 'CRASH' },
	{ "[[Computer and Video Games|''CVG'']]", 'CVG' },
	{ "[[Destructoid|''Destructoid'']]", 'Destruct' },
	{ "[[Dragon (magazine)|''Dragon'']]", 'Dragon' },
	{ "[[Easy Allies|''Easy Allies'']]", 'EZA' },
	{ "[[Edge (magazine)|''Edge'']]", 'Edge' },
	{ "[[Electronic Gaming Monthly|''EGM'']]", 'EGM' },
	{ "[[Eurogamer|''Eurogamer'']]", 'EuroG' },
	{ "[[Famitsu|''Famitsu'']]", 'Fam' },
	{ "[[G4 (U.S. TV channel)|''G4'']]", 'G4' },
	{ "[[Game Informer|''Game Informer'']]", 'GI' },
	{ "[[GameFan|''GameFan'']]", 'GameFan' },
	{ "\''Gamekult'\'", 'Gamekult' },
	{ "[[GamePro|''GamePro'']]", 'GamePro' },
	{ "[[GameRevolution|''GameRevolution'']]", 'GameRev' },
	{ "[[GamesMaster (magazine)|''GamesMaster'']]", 'GMaster' },
	{ "[[GameSpot|''GameSpot'']]", 'GSpot' },
	{ "[[GameSpy|''GameSpy'']]", 'GSpy' },
	{ "[[GamesRadar+|''GamesRadar+'']]", 'GRadar' },
	{ "[[GameStar|''GameStar'']]", 'GStar' },
	{ "[[GamesTM|''GamesTM'']]", 'GTM' },
	{ "[[GameTrailers|''GameTrailers'']]", 'GT' },
	{ "[[Gamezebo|''Gamezebo'']]", 'Gamezebo' },
	{ "\''GameZone'\'", 'GameZone' },
	{ "\''Gekkan PC Engine'\'", 'GPCE' },
	{ "[[Giant Bomb|''Giant Bomb'']]", 'GB' },
	{ "\''Hardcore Gamer'\'", 'HCG' },
	{ "[[Hyper (magazine)|''Hyper'']]", 'Hyper' },
	{ "[[IGN|''IGN'']]", 'IGN' },
	{ "\''Impress Watch'\'", 'IW' },
	{ "[[Jeuxvideo.com|''Jeuxvideo.com'']]", 'JXV' },
	{ "\''Joypad'\'", 'JP' },
	{ "[[Joystiq|''Joystiq'']]", 'Joystiq' },
	{ "\''M! Games'\'", 'MG' },
	{ "\''Marukatsu PC Engine'\'", 'MPCE' },
	{ "[[Maximum PC|''Maximum PC'']]", 'MaxPC' },
	{ "\''Mega Fun'\'", 'MF' },
	{ "[[NGC Magazine|''N64 Magazine'']]", 'N64' },
	{ "[[Next Generation (magazine)|''Next Generation'']]", 'NGen' },
	{ "[[Nintendo Gamer|''NGamer'']]", 'NG' },
	{ "[[NGC Magazine|''NGC Magazine'']]", 'NGC' },
	{ "[[Nintendo Life|''Nintendo Life'']]", 'NLife' },
	{ "[[Nintendo Power|''Nintendo Power'']]", 'NP' },
	{ "\''Nintendo World Report'\'", 'NWR' },
	{ "[[Official Nintendo Magazine|''ONM'']]", 'ONM' },
	{ "\''PC Engine Fan'\'", 'PCEF' },
	{ "[[PlayStation Official Magazine – Australia|''OPM'' (AU)]]", 'OPMAU' },
	{ "[[PlayStation Official Magazine – UK|''OPM'' (UK)]]", 'OPMUK' },
	{ "[[Official U.S. PlayStation Magazine|''OPM'' (US)]]", 'OPM' },
	{ "[[Official Xbox Magazine|''OXM'' (UK)]]", 'OXMUK' },
	{ "[[Official Xbox Magazine|''OXM'' (US)]]", 'OXM' },
	{ "[[PALGN|''PALGN'']]", 'PALGN' },
	{ "[[PC Format|''PC Format'']]", 'PCF' },
	{ "[[PC Gamer|''PC Gamer'' (UK)]]", 'PCGUK' },
	{ "[[PC Gamer|''PC Gamer'' (US)]]", 'PCGUS' },
	{ "[[PC Games|''PC Games'']]", 'PCG' },
	{ "[[PC PowerPlay|''PC PowerPlay'']]", 'PCPP' },
	{ "[[PC Zone|''PC Zone'']]", 'PCZone' },
	{ "[[PCGamesN|''PCGamesN'']]", 'PCGN' },
	{ "[[Play (UK magazine)|''Play'']]", 'Play' },
	{ "[[Pocket Gamer|''Pocket Gamer'']]", 'PG' },
	{ "[[Polygon (website)|''Polygon'']]", 'Poly' },
	{ "[[PlayStation: The Official Magazine|''PSM'']]", 'PSM' },
	{ "[[PSM3|''PSM3'']]", 'PSM3' },
	{ "[[Push Square|''Push Square'']]", 'PSQ' },
	{ "\''RPGamer'\'", 'RPG' },
	{ "\''RPGFan'\'", 'RPGFan' },
	{ "[[Shacknews|''Shacknews'']]", 'SN' },
	{ "[[Sinclair User|''Sinclair User'']]", 'SUser' },
	{ "[[TeamXbox|''TeamXbox'']]", 'TX' },
	{ "[[The Guardian|''The Guardian'']]", 'TG' },
	{ "\''Total!'\'", 'TOT' },
	{ "[[TouchArcade|''TouchArcade'']]", 'TA' },
	{ "[[USgamer|''USgamer'']]", 'USG' },
	{ "[[VentureBeat|''VentureBeat'']]", 'VB' },
	{ "[[VG247|''VG247'']]", 'VG247' },
	{ "\''Video Games'\' (DE)", 'VGS' },
	{ "\''VideoGamer.com'\'", 'VG' },
	{ "[[X-Play|''X-Play'']]", 'XPlay' },
	{ "[[Your Sinclair|''Your Sinclair'']]", 'YSinclair' },
	{ "[[Zzap!64|''Zzap!64'']]", 'Z64' },
}

local aggregators = {
	{ '[[GameRankings]]', 'GR' },
	{ '[[Metacritic]]', 'MC' },
}

local systems = {
	{ '[[3DO Interactive Multiplayer|3DO]]', '3DO' },
	{ '[[Nintendo 3DS|3DS]]', '3DS' },
	{ '[[Amiga]]', 'AMI' },
	{ '[[Arcade game|Arcade]]', 'ARC' },
	{ '[[Atari 2600]]', 'A2600' },
	{ '[[Atari Jaguar]]', 'JAG' },
	{ '[[Atari Lynx]]', 'LYNX' },
	{ '[[Atari ST]]', 'AST' },
	{ '[[Commodore 64|C64]]', 'C64' },
	{ '[[Amiga CD32|CD32]]', 'CD32' },
	{ '[[ColecoVision]]', 'CV' },
	{ '[[MS-DOS|DOS]]', 'DOS' },
	{ '[[Dreamcast]]', 'SDC' },
	{ '[[Nintendo DS|DS]]', 'DS' },
	{ '[[Nintendo eShop|eShop]]', 'ESHOP' },
	{ '[[Game Boy]]', 'GB' },
	{ '[[Game Boy Advance|GBA]]', 'GBA' },
	{ '[[Game Boy Color|GBC]]', 'GBC' },
	{ '[[GameCube|GC]]', 'NGC' },
	{ '[[List of video game consoles|General]]', 'GEN' },
	{ '[[iOS]]', 'iOS' },
	{ '[[Macintosh]]', 'MAC' },
	{ '[[Master System]]', 'SMS' },
	{ '[[Mobile phones|mobile]]', 'MOB' },
	{ '[[N-Gage (device)|N-Gage]]', 'N-G' },
	{ '[[Nintendo 64|N64]]', 'N64' },
	{ '[[Nintendo Entertainment System|NES]]', 'NES' },
	{ '[[Nintendo Switch|NS]]', 'NS' },
	{ '[[Personal Computer|PC]]', 'PC' },
	{ '[[PlayStation Vita|PS Vita]]', 'VITA' },
	{ '[[PlayStation (console)|PS]]', 'PS' },
	{ '[[PlayStation 2|PS2]]', 'PS2' },
	{ '[[PlayStation 3|PS3]]', 'PS3' },
	{ '[[PlayStation 4|PS4]]', 'PS4' },
	{ '[[PlayStation 5|PS5]]', 'PS5' },
	{ '[[PlayStation Portable|PSP]]', 'PSP' },
	{ '[[Sega Saturn|Saturn]]', 'SSAT' },
	{ '[[Sega Genesis]]', 'SMD' },
	{ '[[Sega Game Gear|SGG]]', 'SGG' },
	{ '[[Nvidia Shield|Shield]]', 'NSHI' },
	{ '[[Super Nintendo Entertainment System|SNES]]', 'SNES' },
	{ '[[TurboGrafx-16]]', 'TG16' },
	{ '[[Wii]]', 'WII' },
	{ '[[Wii U]]', 'WIIU' },
	{ '[[Xbox (console)|Xbox]]', 'XBOX' },
	{ '[[Xbox 360]]', 'X360' },
	{ '[[Xbox One]]', 'XONE' },
	{ '[[Xbox Series X and Series S|Xbox Series X/S]]', 'XSXS' },
	{ '[[ZX Spectrum|ZX]]', 'ZX' },
}

local function setupSortkeys(t)
	local retval = {}
	for k, v in ipairs(t) do
		retval[v[2]] = { name = v[1], 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',
			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 = '[[Category:Empty templates on articles]]',
			multiplatform = '[[Category:Articles using Video game reviews template in multiple platform mode]]',
			singleplatform = '[[Category:Articles using Video game reviews template in single platform mode]]',
		},
		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'
	},
}