Module:Sandbox: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
m (Undo revision 337825 by Adkuate (talk))
Tag: Undo
mNo edit summary
Line 4: Line 4:
--
--
-- Here you can set anything you want in this sandbox, as long as it uses the language Lua.
-- Here you can set anything you want in this sandbox, as long as it uses the language Lua.
--[[Category:Sandbox]]
-- Do not forget to add {{#invoke:Sandbox|<function name>}} in your template.
-- [[Category:Sandbox]]
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------


Line 13: Line 14:
["Venusaur"] = "フシギバナ"
["Venusaur"] = "フシギバナ"
}
}
return print(t1[x])
print(t1[x])
end
end

Revision as of 20:20, 1 October 2022



----------------------------------------------------------------------------------------------------
--
--                                        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]]
----------------------------------------------------------------------------------------------------

function test(x)
	t1 = {
		["Bulbasaur"] = "フシギダネ",
		["Ivysaur"] = "フシギソウ",
		["Venusaur"] = "フシギバナ"
	}
	print(t1[x])
end