Module:Sandbox: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 10: Line 10:
p = {}
p = {}


function p.pick(name)
p.loop = function(en)
t1 = {}
local en
 
t1 = {
t1 = {
["Bulbasaur"] = {
["Bulbasaur"] = {
["ja"] = "フシギダネ",  
["ja"] = "フシギダネ",  
["type1"] = "Grass"
["type1"] = "Grass"
}
}
}
}
if name then
if en then
return t1[name]
return t1[en]
end
end
end
end


return p
return p

Revision as of 20:10, 2 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]]
----------------------------------------------------------------------------------------------------

p = {}

p.loop = function(en)
	local en
	t1 = {
		["Bulbasaur"] = {
			["ja"] = "フシギダネ", 
			["type1"] = "Grass"
		}
	}
		
	if en then
		return t1[en]
	end
end

return p