Content deleted Content added
m Chlod moved page Module:Sandbox/Chlod/Backwards copy to Module:Backwards copy without leaving a redirect |
add error for missing date (required parameter) |
||
Line 6:
local function demoCheck(args)
return yesno(args["demo"]) or yesno(args["nocat"])
end▼
end
Line 65 ⟶ 60:
args["year" .. i] or (i == 1 and args["year"]) or ""
)
if mw.text.trim(date or "") == "" then
return showError("Provided titles must also have a respective <code>year</code> or <code>date</code> parameter.")
▲ end
table.insert(citations, frame:expandTemplate{ title = "Citation", args = {
|