Module:Choose alt

local p = {}

function p.alt(frame) if frame == mw.getCurrentFrame then args = frame:getParent.args else args = frame end local value = frame['value'] local num = tonumber(value) if num ~= nil then return frame[n + 1] elseif frame[value] == nil then return frame[1] else return frame[value] end end

return p