Module:Episodes

local p = {}

function p.getEp(frame) local episodesManga = mw.loadData( 'Module:Episodes/mangaData' ) local args = frame:getParent.args local epKey = args[1]:match( 'e?([0-9A-P]*)' ) or '' local epVal = episodesManga[epKey] local epName = epVal['ename'] local toLink = args['link'] local epOutput if args['full'] == 'yes' then epOutput = 'Berserk, ' .. 'Volume ' .. epVal['volume'] .. ', "' .. epName .. '"' else if toLink == 'no' then epOutput = '"' .. epName .. '"' else epOutput = '"' .. epName .. '"' end end return epOutput end

return p

--