Module:Comic/sandbox

p.comic = function (frame) local work = frame.args[1] -- 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)

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

return p