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 11: Line 11:


function p.loop(frame)
function p.loop(frame)
local out = {}
local t1 = {
["Bulbasaur"] = {
["ja"] = "フシギダネ",
["type1"] = "Grass",
},
["Ivysaur"] = {
["ja"] = "フシギダネ",
["type1"] = "Grass",
},
["Venusaur"] = {
["ja"] = "フシギダネ",
["type1"] = "Grass",
["type2"] = "Poison"
}
}


for idx = 1, 5 do
return t1[frame][ja]
table.insert(out, idx)
end
 
return table.concat(out, "<br>")
end
end


return p
return p

Revision as of 19:39, 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.loop(frame)
	local t1 = {
		["Bulbasaur"] = {
			["ja"] = "フシギダネ",
			["type1"] = "Grass",
		},
		["Ivysaur"] = {
			["ja"] = "フシギダネ",
			["type1"] = "Grass",
		},
		["Venusaur"] = {
			["ja"] = "フシギダネ",
			["type1"] = "Grass",
			["type2"] = "Poison"
		}
	}

	return t1[frame][ja]
end

return p