Difference between revisions of "Module:Sandbox"
Jump to navigation
Jump to search
(Created page with " print("Hello World")") |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
local p = {} | |||
local dex = require("Module:Pokédex") | |||
function p.pokedex(frame) | |||
result = "" | |||
for i, v in ipairs( dex ) do | |||
result = result .. ":" .. i .. ": " .. v .. "\n" | |||
end | |||
return result | |||
end | |||
return p |
Latest revision as of 06:59, 18 April 2021
Documentation for this module may be created at Module:Sandbox/doc
local p = {} local dex = require("Module:Pokédex") function p.pokedex(frame) result = "" for i, v in ipairs( dex ) do result = result .. ":" .. i .. ": " .. v .. "\n" end return result end return p