Module:Sandbox: Difference between revisions
Jump to navigation
Jump to search
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"] = "フシギバナ" | ||
} | } | ||
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