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)
function p.pick(f)
local en = name
local args = f.args
t1 = {
local s = {
["Bulbasaur"] = {
["Bulbasaur"] = {
["ja"] = "フシギダネ",  
["ja"] = "フシギダネ",  
Line 18: Line 18:
}
}
}
}
if en then
for k,v in pairs(f) do
return t1[en](ja)
s[v]=k
end
end
return s
end
end


return p
return p

Revision as of 20:28, 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 = {}

function p.pick(f)
	local args = f.args
	local s = {
		["Bulbasaur"] = {
			["ja"] = "フシギダネ", 
			["type1"] = "Grass"
		}
	}
	
	for k,v in pairs(f) do
		s[v]=k
	end
	return s
end

return p