Content deleted Content added
basic args logic |
nil safety, proper frame access |
||
Line 39:
end
local function bannerText(frame, args)
local text = ""
Line 59:
string.format(
"%s %s",
args["monthday" .. i] or (i == 1 and args["monthday"]) or "",
args["year" .. i] or (i == 1 and args["year"]) or ""
)
Line 106:
end
function p.renderBanner(frame, args)
return MessageBox.main('tmbox', {
name = "backwards-copy",
small = args["small"],
image = '[[File:Newspaper Cover.svg|50px]]',
text = bannerText(frame, args)
}) .. (demoCheck(args) and "[[Category:Wikipedia article talk pages incorporating the backwardscopy template]]" or "")
end
Line 121:
removeBlanks = true
})
return p.renderBanner(frame, args)
end
|