Module:PTUPokemon/Data

local p = {} local data = mw.loadData('Module:PTUPokemon/data') function p.switch(frame) local text = frame.args[1] local textkey = frame.args[2] if data[text] ~= nil and data[text][textkey] ~= nil then text = data[text][textkey] else text = nil -- Modify invalid key output here end return text end return p