Module:Format

local p = {}

function p.plainlist(frame) local list = frame:getParent.args[1] list = mw.text.split( list:gsub('%*%s*', ''), '\n' ) if list[1] == '' then table.remove(list, 1) end return table.concat( list, ' ') end

function p.mangaEpRel(frame) local args = frame.args local months = {[1] = 'January', [2] = 'February', [3] = 'March', [4] = 'April', [5] = 'May', [6] = 'June', [7] = 'July', [8] = 'August', [9] = 'September', [10] = 'October', [11] = 'November', [12] = 'December'} local dateY, dateM, dateD = args['publ']:match('([0-9]*)-([0-9]*)-([0-9]*)') local epPubDate = months[ tonumber(dateM) ] .. ' ' .. tonumber(dateD) .. ', ' .. dateY local epMagName = Young Animal Zero local epMagIssue, epMagYear = args['mag']:match('YAZ #([^,]*), (.*)') local epMagInfo = epMagName .. ' #' .. epMagIssue .. ' (' .. epMagYear .. ')' return epMagInfo .. ' ' .. epPubDate end

return p

--