local function tsl(args)
	return mw.getCurrentFrame():expandTemplate {title = "Translink", args = args}
end

local reviewers = {

	{"[[1UP.com]]", "1UP"},
    {"[[4Players]]", "4P"},
	{"[[ACE (雜誌)|ACE]]", "ACE"},
	{tsl {"en", "ActionTrip", "ActionTrip"}, "Atrip"},
	{"[[Adventure Gamers]]", "AdvGamers"},
	{"[[All Media Guide|AllGame]]", "Allgame"},
	{tsl {"en", "Aktueller Software Markt", "Aktueller Software Markt"}, "ASM"},
	{"[[Amiga Action]]", 'AmAction' },
	{tsl {"en", "Amiga Computing", "Amiga Computing"}, 'AmComputing' },
	{tsl {"en", "Amiga Force", "Amiga Force"}, 'AmForce' },
	{tsl {"en", "Amiga Format", "Amiga Format"}, 'AmFormat' },
	{tsl {"en", "Amiga Power", "Amiga Power"}, 'AmPower' },
	{tsl {"en", "Amiga User International", "Amiga User International"}, 'AmUI' },
	{tsl {"en", "Amstrad Action", "Amstrad Action"}, "AAction"},
	{tsl {"en", "Amtix", "Amtix!"}, "Amtix"},
	{"[[影音俱樂部]]", 'AVC' },	
	{tsl {"en", "Gemaga|Beep! MegaDrive", "Gemaga|Beep! MegaDrive"}, 'BMD' },
	{"[[CNET Gamecenter]]", 'CNG' },
	{tsl {"en", "Computer Game Review", "Computer Game Review"}, 'CGR' },
	{"[[電腦遊戲雜誌]]", "CGM"},
	{"[[電腦遊戲策略+]]", 'CGSP' },
	{"[[电脑游戏世界]]", "CWG"},
	{"Consoles +", 'CP'},
	{"[[撞击 (杂志)|撞擊]]", "CRASH"},
	{"[[电脑与电子游戏]]", "CVG"},
	{"[[Destructoid]]", "Destruct"},
	{tsl {"en", "Digital Trends", "Digital Trends"}, 'DT' },
	{"[[龙 (杂志)|龙]]", "Dragon"},
	{"[[Easy Allies]]", "EZA"},
	{"[[Edge (杂志)|Edge]]", "Edge"},
	{"[[电子游戏月刊]]", "EGM"},
	{tsl {"en", "EP Daily", "EP Daily"}, 'EPD' },
	{"[[Eurogamer]]", "EuroG"},
	{"[[金融郵報]]", "FP"},
	{"[[G4 (电视频道)|G4]]", "G4"},
	{"GameCritics", "GCritics"},
	{"[[Game Informer]]", "GI"},
	{tsl {"en", "Game Players", "Game Players"}, 'GP' },
	{"[[GameDaily]]", 'GD' },
	{tsl {"en", "GameFan", "GameFan"}, "GameFan"},
	{tsl {"en", "Gamekult", "Gamekult"}, 'Gamekult' },
	{"[[GamePro]]", "GamePro"},
	{"[[Game Revolution]]", "GameRev"},
	{tsl {"en", "GamesMaster", "GamesMaster"}, "GMaster"},
	{"[[GamesRadar+]]", "GRadar"},
	{"[[GameSpot]]", "GSpot"},
	{"[[GameSpy]]", "GSpy"},
	{tsl {"en", "GameStar", "GameStar"}, 'GStar' },
	{"[[GamesTM]]", "GTM"},
	{tsl {"de", "Gameswelt"}, 'Gwelt' },
	{tsl {"en", "Games-X", "Games-X"}, 'GX' },
	{"[[GameTrailers]]", "GT"},
	{"[[GameWire]]", "GW"},
	{"[[Gamezebo]]", "Gamezebo"},
	{"[[GameZone]]", "GameZone"},
	{ "Gekkan PC Engine", 'GPCE' },
	{ "Génération 4", 'Gen4' },
	{"[[Giant Bomb]]", "GB"},
	{"[[Hardcore Gamer|HardcoreGamer]]", "HCG"},
	{tsl {"en", "HobbyConsolas", "HobbyConsolas"}, 'HC' },
	{tsl {"en", "Hyper (magazine)", "Hyper (杂志)", "Hyper"}, "Hyper"},
	{"[[IGN]]", "IGN"},
	{ "Impress Watch", 'IW' },
	{"[[Jeuxvideo.com]]", "JXV"},
	{ "Joypad", 'JP' },
	{tsl {"en", "Joystick (magazine)", "Joystick (杂志)", "Joystick"}, 'JS' },
	{"[[Joystiq]]", "Joystiq"},
	{tsl {"en", "Kill Screen", "Kill Screen"}, 'KS' },
	{ "M! Games", 'MG' },
	{tsl {"en", "MacLife", "MacLife"}, 'ML' },
	{ "[[Macworld]]", 'MW' },
	{ "Marukatsu PC Engine", 'MPCE' },
	{tsl {"en", "Maximum PC", "Maximum PC"}, "MaxPC"},
	{tsl {"en", "Mean Machines Sega", "Mean Machines Sega"}, 'MMS' },
	{ "Mega Fun", 'MF' },
	{ "MeriStation", 'MS' },
	{tsl {"en", "Micromanía", "Micromanía"}, 'MIC' },
	{tsl {"en", "NGC Magazine", "NGC杂志", "NGC"}, "N64"},
	{tsl {"en", "NGC Magazine", "NGC杂志", "NGC"}, "NGC"},
	{tsl {"en", "Nintendo Gamer", "NGamer"}, "NG"},
	{"[[次世代]]", "NGen"},
	{"Nintendo Life", "NLife"},
	{"[[任天堂力量]]", "NP"},
	{"任天堂世界报道", "NWR"},
	{"[[新音乐快递]]", 'NME' },
	{"[[紐約每日新聞]]", "NYDN"},
	{"[[官方任天堂杂志]]", "ONM"},
	{"[[官方美国PlayStation杂志|美国PlayStation官方杂志]]", "OPM"},
	{"[[PlayStation官方杂志—英国|英国PlayStation官方杂志]]", "OPMUK"},
	{tsl {"en", "PlayStation_Official_Magazine_–_Australia", "官方PlayStation杂志 (澳大利亚)", "澳-{}-洲官方PlayStation杂志"}, "OPMAU"},
	{"[[官方Xbox杂志]]", "OXM"},
	{"[[官方Xbox杂志|官方Xbox杂志英国]]", "OXMUK"},
	{ "PALGN", "PALGN"},
	{tsl {"en", "PC Accelerator", "PC Accelerator"}, 'PCA' },
	{ "PC Engine Fan", 'PCEF' },
	{tsl {"en", "PC Format", "PC Format"}, "PCF"},
	{"[[PC Gamer|PC Gamer英国]]", "PCGUK"},
	{"[[PC Gamer|PC Gamer美国]]", "PCGUS"},
	{tsl {"en", "PC Games", "PC Games", "PC Games德國"}, "PCG"},
    {"[[PCGamesN]]", "PCGN"},
	{"[[GamePro|PC Games美国]]", "GPPCG"},
	{ "[[个人电脑杂志]]", 'PCM' },
	{tsl {"en", "PC PowerPlay", "PC PowerPlay"}, "PCPP"},
	{tsl {"en", "PC Zone", "PC Zone"}, "PCZone"},
	{"[[Play (英国杂志)|Play]]", "Play"},
	{"[[Pocket Gamer]]", "PG"},
	{"[[Polygon]]", "Poly"},
	{ "Player One", 'PO' },
	{tsl {"en", "PlayStation:_The_Official_Magazine", "PlayStation:官方杂志", "PlayStation杂志"}, "PSM"},
	{tsl {"en", "PSM3", "PSM3"}, "PSM3"},
	{ "Push Square", "PSQ"},
	{tsl {"en", "Newsfield#Raze", "Newsfield", "Raze"}, 'Raze' },
	{"[[懷舊玩家]]", 'Retro' },
	{"[[RPGamer]]", "RPG"},
	{ "RPGFan", 'RPGFan' },
	{tsl {"en", "Sinclair User", "Sinclair User"}, "SUser"},
	{"[[Shacknews]]", "SN"},
	{tsl {"en", "ST Action", "ST Action"}, 'STAction' },
	{tsl {"en", "ST Format", "ST Format"}, 'STFormat' },
	{tsl {"en", "ST Review", "ST Review"}, 'STRev' },
	{ "Superjuegos", 'SJ' },
	{ "Super Game Power", 'SGP' },
	{tsl {"en", "Super Play", "Super Play"}, 'SP' },
	{"[[TeamXbox]]", "TX"},
	{tsl {"en", "TechRadar", "TechRadar"}, "TR"},
	{ "[[每日电讯报]]", "TELE"},
	{tsl {"en", "The Games Machine", "The Games Machine英國"}, "TGM"},
	{tsl {"en", "The Games Machine (Italy)", "The Games Machine義大利"}, "TGMIt"},
	{"[[TouchArcade]]", 'TA' },
    {"[[衛報]]", 'TG' },
	{tsl {"en", "Tilt (French magazine)", "Tilt"}, "TILT"},
	{tsl {"en", "Total!", "Total!"}, "TOT"},
	{"[[Eurogamer|USGamer]]", "USG"},
	{"[[VentureBeat]]", 'VB' },
	{"[[VG247]]", 'VG247' },
	{"[[VideoGamer.com]]", "VG"},
	{tsl {"en", "Video Games Chronicle", "Video Games Chronicle"}, "VGC"},
	{ "Video Games德國", 'VGS' },
	{tsl {"en", "VideoGames & Computer Entertainment", "VideoGames & Computer Entertainment"}, "VGCE"},
	{tsl {"en", "X-Play", "X-Play"}, "XPlay"},
	{tsl {"en", "Your Sinclair", "Your Sinclair"}, "YSinclair"},
	{tsl {"en", "Zero (video game magazine)", "Zero (杂志)", "Zero"}, "Zero"},
	{tsl {"en", "Zzap!64", "Zzap!64"}, "Z64"},

-- 中文媒体
    {"[[17173网]]", "17173网"},
    {"[[17173网]]", "17173網"},
    {"[[3DMGAME]]", "3DM"},
	{"[[电子游戏软件]]", "电软"},
	{"[[电子游戏软件]]", "電軟"},
	{"[[大众软件]]", "大软"},
	{"[[大众软件]]", "大軟"},
	{"QooApp", "QooApp"},
	{"[[udn遊戲角落]]", "udn"},
	{"[[游民星空]]", "游民"},
	{"[[游民星空]]", "遊民"},
	{"[[游侠网]]", "遊俠"},
	{"[[游侠网]]", "游侠"},
	{"[[游戏机实用技术]]", "UCG"},
	{"[[游戏时光]]", "VGT"},
	
-- 日文媒体
	{"Appget", "Appget"},
	{"[[Fami通]]", "Fam"},

}

local aggregators = {
	{"[[GameRankings]]", "GR"},
	{"[[Metacritic]]", "MC"},
	{"[[OpenCritic]](推荐率)", "OC"},
}

local systems = {
	
	{"[[游戏机列表|綜合]]", "GEN"},	-- 00000000
	{"[[雅達利2600]]", "A2600"},	-- 19770901
	{"[[ColecoVision]]", "CV"},	-- 19820899
	{"[[红白机|FC]]", "NES"},	-- 19830715
	{"[[红白机|FC]]", "FC"},	-- 19830715
	{"[[世嘉Master System|MS]]", "SMS"},	-- 19851020
	{"[[PC Engine|PCE]]", "PCE"},	-- 19871030
	{"[[PC Engine|PCE]]", "TG16"},	-- 19871030
	{"[[Mega Drive|MD]]", "MD"},	-- 19881029
	{"[[Mega Drive|MD]]", "SMD"},	-- 19881029
	{"[[Game Boy|GB]]", "GB"},	-- 19890421
	{"[[Game Gear|GG]]", "SGG"},	-- 19901006
	{"[[超級任天堂|SFC]]", "SNES"},	-- 19901121
	{"[[超級任天堂|SFC]]", "SFC"},	-- 19901121
	{"[[世嘉土星|SS]]", "SS"},	-- 19941122
	{"[[世嘉土星|SS]]", "SSAT"},	-- 19941122
	{"[[PlayStation|PS]]", "PS"},	-- 19941203
	{"[[任天堂64|N64]]", "N64"},	-- 19960623
	{"[[Game Boy Color|GBC]]", "GBC"},	-- 19981021
	{"[[Dreamcast|DC]]", "DC"},	-- 19981127
	{"[[Dreamcast|DC]]", "SDC"},	-- 19981127
	{"[[PlayStation 2|PS2]]", "PS2"},	-- 20000304
	{"[[Game Boy Advance|GBA]]", "GBA"},	-- 20010321
	{"[[任天堂GameCube|NGC]]", "NGC"},	-- 20010914
	{"[[Xbox (遊戲機)|Xbox]]", "XBOX"},	-- 20011115
	{"[[N-Gage|N-G]]", "N-G"},	-- 20031007
	{"[[任天堂DS|DS]]", "DS"},	-- 20041121
	{"[[任天堂DS|DS]]", "NDS"},	-- 20041121
	{"[[PlayStation Portable|PSP]]", "PSP"},	-- 20041212
	{"[[Xbox 360|X360]]", "X360"},	-- 20051122
	{"[[PlayStation 3|PS3]]", "PS3"},	-- 20061111
	{"[[Wii]]", "WII"},	-- 20061119
	{"[[任天堂3DS|3DS]]", "3DS"},	-- 20110226
	{"[[任天堂3DS|3DS]]", "N3DS"},	-- 20110226
	{"[[PlayStation Vita|PSV]]", "VITA"},	-- 20111217
	{"[[Wii U|WiiU]]", "WiiU"},	-- 20121118
	{"[[Shield Portable|Shield]]", "NSHI"},	-- 20130731
	{"[[PlayStation 4|PS4]]", "PS4"},	-- 20131115
	{"[[Xbox One|XOne]]", "XONE"},	-- 20131122
	{"[[任天堂Switch|NS]]", "NS"},	-- 20170303
	{"[[Xbox Series X/S|XSX/S]]", "XSXS"},	-- 20201110
	{"[[PlayStation 5|PS5]]", "PS5"},	-- 20201112
	{"[[个人电脑|PC]]", "PC"},	-- 99999999
	{"[[IOS|iOS]]", "iOS"},	-- 99999999
}

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:VG Reviews",
		emptyCategory = "",
		multiplatformCategory = "",
		singleplatformCategory = "",
		aggregateScore = "汇总得分",
		aggregateScores = "汇总得分",
		aggregator = "汇总媒体",
		award = "奖项",
		awards = "奖项",
		na = "不适用",
		publication = "媒体",
		reception = "评价",
		reviewScore = "评论得分",
		reviewScores = "评论得分",
		score = "得分"
	},
	argi18n = {}
}