Module:Pokémon

From Story Lists
Revision as of 10:51, 26 May 2021 by DanielCM (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Pokémon/doc

local p = {}
local dex = require("Module:Pokédex")

function p.pokedex(frame)
	result = ""

	for i, v in ipairs( dex ) do
		result = result .. ", " .. v
	end

	return result
end

function p.pokedexLong (frame)
	result = ""

	for i, v in ipairs( dex ) do
		result = result .. ":" .. i .. ": " .. v .. "\n"
	end

	return result
end

return p