Module:Video game reviews/data

Documentation for this module may be created at Module:Video game reviews/data/doc

local reviewers = {
	{ "[[1Up.com|''1Up.com'']]", '1UP' },
	{ "[[4Players|''4Players'']]", '4P' },
	{ "[[ACE (magazine)|''ACE'']]", 'ACE' },
	{ "[[Adventure Gamers|''Adventure Gamers'']]", 'AdvGamers' },
	{ "[[AllGame|''AllGame'']]", 'Allgame' },
	{ "[[Aktueller Software Markt|''Aktueller Software Markt'']]", 'ASM' },
	{ "[[Amiga Action|''Amiga Action'']]", 'AmAction' },
	{ "[[Amiga Computing|''Amiga Computing'']]", 'AmComputing' },
	{ "[[Amiga Force|''Amiga Force'']]", 'AmForce' },
	{ "[[Amiga Format|''Amiga Format'']]", 'AmFormat' },
	{ "[[Amiga Power|''Amiga Power'']]", 'AmPower' },
	{ "[[Amiga User International|''Amiga User International'']]", 'AmUI' },
	{ "[[Amstrad Action|''Amstrad Action'']]", 'AAction' },
	{ "[[Amtix|''Amtix'']]", 'Amtix' },
	{ "\''Beep! MegaDrive'\'", 'BMD' },
	{ "[[CNET Gamecenter|''CNET Gamecenter'']]", 'CNG' },
	{ "[[Computer Game Review|''Computer Game Review'']]", 'CGR' },
	{ "[[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' },
	{ "[[EP Daily|''EP Daily'']]", 'EPD' },
	{ "[[Eurogamer|''Eurogamer'']]", 'EuroG' },
	{ "[[Famitsu|''Famitsu'']]", 'Fam' },
	{ "[[G4 (U.S. TV channel)|''G4'']]", 'G4' },
	{ "[[Game Informer|''Game Informer'']]", 'GI' },
	{ "[[Game Players|''Game Players'']]", 'GP' },
	{ "[[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' },
	{ "[[Games-X|''Games-X'']]", 'GX' },
	{ "[[GameTrailers|''GameTrailers'']]", 'GT' },
	{ "[[Gamezebo|''Gamezebo'']]", 'Gamezebo' },
	{ "\''GameZone'\'", 'GameZone' },
	{ "\''Gekkan PC Engine'\'", 'GPCE' },
	{ "\''Génération 4'\'", 'Gen4' },
	{ "[[Giant Bomb|''Giant Bomb'']]", 'GB' },
	{ "\''Hardcore Gamer'\'", 'HCG' },
	{ "[[HobbyConsolas|''HobbyConsolas'']]", 'HC' },
	{ "[[Hyper (magazine)|''Hyper'']]", 'Hyper' },
	{ "[[IGN|''IGN'']]", 'IGN' },
	{ "\''Impress Watch'\'", 'IW' },
	{ "[[Jeuxvideo.com|''Jeuxvideo.com'']]", 'JXV' },
	{ "\''Joypad'\'", 'JP' },
	{ "[[Joystick (magazine)|''Joystick'']]", 'JS' },
	{ "[[Joystiq|''Joystiq'']]", 'Joystiq' },
	{ "\''M! Games'\'", 'MG' },
	{ "[[MacLife|''MacLife'']]", 'ML' },
	{ "[[Macworld|''Macworld'']]", 'MW' },
	{ "\''Marukatsu PC Engine'\'", 'MPCE' },
	{ "[[Maximum PC|''Maximum PC'']]", 'MaxPC' },
	{ "[[Mean Machines Sega|''Mean Machines Sega'']]", 'MMS' },
	{ "\''Mega Fun'\'", 'MF' },
	{ "\''MeriStation'\'", 'MS' },
	{ "[[Micromanía|''Micromanía'']]", 'MIC' },
	{ "[[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 Accelerator|''PC Accelerator'']]", 'PCA' },
	{ "[[PC Format|''PC Format'']]", 'PCF' },
	{ "[[PC Gamer|''PC Gamer'' (UK)]]", 'PCGUK' },
	{ "[[PC Gamer|''PC Gamer'' (US)]]", 'PCGUS' },
	{ "[[PC Games|''PC Games'']]", 'PCG' },
	{ "[[GamePro#PC Games|''PC Games'' (US)]]", 'GPPCG' },
	{ "[[PC PowerPlay|''PC PowerPlay'']]", 'PCPP' },
	{ "[[PC Zone|''PC Zone'']]", 'PCZone' },
	{ "[[PCGamesN|''PCGamesN'']]", 'PCGN' },
	{ "[[PCMag|''PCMag'']]", 'PCM' },
	{ "[[Play (UK magazine)|''Play'']]", 'Play' },
	{ "[[Pocket Gamer|''Pocket Gamer'']]", 'PG' },
	{ "[[Polygon (website)|''Polygon'']]", 'Poly' },
	{ "\''Player One'\'", 'PO' },
	{ "[[PlayStation: The Official Magazine|''PSM'']]", 'PSM' },
	{ "[[PSM3|''PSM3'']]", 'PSM3' },
	{ "[[Push Square|''Push Square'']]", 'PSQ' },
	{ "[[Newsfield#Raze|''Raze'']]", 'Raze' },
	{ "[[Retro Gamer|''Retro Gamer'']]", 'Retro' },
	{ "\''RPGamer'\'", 'RPG' },
	{ "\''RPGFan'\'", 'RPGFan' },
	{ "[[Shacknews|''Shacknews'']]", 'SN' },
	{ "[[Sinclair User|''Sinclair User'']]", 'SUser' },
	{ "[[ST Action|''ST Action'']]", 'STAction' },
	{ "[[ST Format|''ST Format'']]", 'STFormat' },
	{ "[[ST Review|''ST Review'']]", 'STRev' },
	{ "\''Superjuegos'\'", 'SJ' },
	{ "\''Super Game Power'\'", 'SGP' },
	{ "[[Super Play|''Super Play'']]", 'SP' },
	{ "[[TeamXbox|''TeamXbox'']]", 'TX' },
	{ "[[The Games Machine|''The Games Machine'']]", 'TGM' },
	{ "[[The Games Machine (Italy)|''The Games Machine (Italy)'']]", 'TGMIt' },
	{ "[[The Guardian|''The Guardian'']]", 'TG' },
	{ "[[Tilt (French magazine)|''Tilt'']]", 'TILT' },
	{ "[[Total!|''Total!'']]", 'TOT' },
	{ "[[TouchArcade|''TouchArcade'']]", 'TA' },
	{ "[[USgamer|''USgamer'']]", 'USG' },
	{ "[[VentureBeat|''VentureBeat'']]", 'VB' },
	{ "[[VG247|''VG247'']]", 'VG247' },
	{ "\''Video Games'\' (DE)", 'VGS' },
	{ "\''VideoGamer.com'\'", 'VG' },
	{ "[[VideoGames & Computer Entertainment|''VideoGames & Computer Entertainment'']]", 'VGCE' },
	{ "[[X-Play|''X-Play'']]", 'XPlay' },
	{ "[[Your Sinclair|''Your Sinclair'']]", 'YSinclair' },
	{ "[[Zero (video game magazine)|''Zero'']]", 'Zero' },
	{ "[[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' },
	{ '[[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'
	},
}