Module:Releases/Data

local utilsTable = require("Module:UtilsTable")

local data = { Games = { systems = { {				code = "FDS", name = "Famicom Disk System", },			{				code = "NES", name = "Nintendo Entertainment System", },			{				code = "N64", name = "Nintendo 64", },			{				code = "GBA", name = "Game Boy Advance", },			{				code = "Wii", name = "Wii" },			{				code = "3DS", name = "Nintendo 3DS", },			{				code = "Wii U", name = "Wii U"			}, {				code = "Switch", name = "Nintendo Switch" },		},		services = { ["Wii"] = { ["VC"] = { name = "Virtual Console", displayName = "Wii Virtual Console", },			},			["3DS"] = { ["VC"] = { name = "Virtual Console", displayName = "3DS Virtual Console", },			},			["Wii U"] = { ["VC"] = { name = "Virtual Console", displayName = "Wii U Virtual Console", },			},			["Switch"] = { ["NES"] = { name = "Nintendo Entertainment System – Nintendo Switch Online", displayName = "Nintendo Switch Online" },				["SNES"] = { name = "Super Nintendo Entertainment System – Nintendo Switch Online", displayName = "Nintendo Switch Online" },			},		},		programs = { ["3DS"] = { ["Ambassador"] = "Nintendo 3DS Ambassadors" },		},	},	regions = { { 			param = "na", code = "NOA", },		{			param = "jp", code = "JP", },		{			param = "eu", code = "EUR", },		{			param = "au", code = "AU", },		{			param = "kr", code = "KR", },		{			param = "tw", code = "THM", },		{			param = "cn", code = "CN", },	}, }

data.Games.systemsByCode = utilsTable.keyBy(data.Games.systems, "code") data.Games.systemCodes = utilsTable.map(data.Games.systems, "code") data.Games.systemCodes.reference = "Module:Releases/Data"

data.regionsByParam = utilsTable.keyBy(data.regions, "param")

return data