Module:Sandbox

local p = {}

local function getArgs(frame) local args = {} for key, value in pairs(frame:getParent.args) do       args[key] = value end for key, value in pairs(frame.args) do       args[key] = value end return args end

function p.main(frame) local args     = getArgs(frame) local item     = args[1] or args.item or '' local game     = args[2] or args.game or '' local text     = args[text] or args.text or '' return p.itemLink(item, game, text) end

function p.itemLink(item, game, text) local function isEmpty(s) return s == nil or s == '' end local function tableEmpty(s) return next(s) == nil end local data = { ["DnM"] = "Doubutsu no Mori", ["DnM+"] = "Doubutsu no Mori+", ["PG"] = "Animal Crossing", ["DnMe+"] = "Doubutsu no Mori e+", ["iQue"] = "Dòngwù Sēnlín", ["WW"] = "Wild World", ["CF"] = "City Folk", ["NL"] = "New Leaf", ["HHD"] = "Happy Home Designer", ["PC"] = "Pocket Camp", ["NH"] = "New Horizons" }	local print = '' if not isEmpty(item) then print = print .. ""		if not isEmpty(text) then			print = print .. text		else			print = print .. item		end		print = print .. "" end return print end

return p