Module:Sandbox

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 19:31, 3 October 2022 by Adkuate (talk | contribs)
Jump to navigation Jump to search



----------------------------------------------------------------------------------------------------
--
--                                        Module:Sandbox
--
-- Here you can set anything you want in this sandbox, as long as it uses the language Lua.
-- Do not forget to add {{#invoke:Sandbox|<function name>}} in your template.
-- [[Category:Sandbox]]
----------------------------------------------------------------------------------------------------

p = {}

function p.pick(name, getVar)
	local argsA = name.args
	local argsB = getVar.args
	local list = {}
	list["Bulbasaur"] = {
		["ja"] = "フシギダネ",
		["type1"] = "Grass"
	}
	
	if argsA and argsB then
		return print(list[argsA][argsB])
	end
end

return p