Module:Comic

local p = {}

p.comic = function (frame) local work = frame.args[1] local noLink = frame.args['nolink'] -- handle blank entry if isempty(work) then return 'Title missing or incorrectly entered .' end -- issue is calculated with work name local printMatcher = require('Module:Print ref/Matcher') local printCode, issueNumber = printMatcher.matchCode(work) local printInfo = require('Module:Print ref/Info') local display = printInfo.display(printCode, issueNumber, noLink)

if display == 'Unknown printed work' then workFormat = "''" .. work .. "''"   elseif display == 'Invalid issue' then workFormat = 'Invalid issue ' else workFormat = display end return workFormat end

--function to determine if a string is empty function isempty(s) return s == nil or s == '' end

return p