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 epOutput local argPipedText = args[2] or '' local argOpt = args['opt'] or (argPipedText ~= '') and 'piped' or 'none' local options = { ['nolink-noquotes'] = epName, -- Only for Template:Infobox episodes (manga), ['nolink'] = '"' .. epName .. '"', ['full'] = 'Duranki, ' .. epName .. '"',       ['piped'] =  .. argPipedText .. ,        ['none'] = '"' .. epName .. '"'    }    epOutput = options[argOpt] or options['none']    return epOutput end

return p

--