Content deleted Content added
downgrade missing date to warning if year provided in author |
per talk |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 59:
else
local author = args["author" .. i] or (i == 1 and args["author"])
local date = (args["date" .. i] or (i == 1 and args["date"])) or
-- legacy way of providing dates
Line 75 ⟶ 74:
i, i, i
), demoCheck(args))
else▼
text = text .. " " .. showWarning(string.format(
▲ else
"Provided <code>title%s</code> must also have a respective <code>year%s</code> or <code>date%s</code> parameter.",
i, i, i
))
end
end
if tonumber (display_authors) and (0 ~= tonumber (display_authors)) then -- for {{backwards copy}} only allowed number is 0 to suppress author name list
display_authors = 'etal'; -- any other number gets 'etal'; any other text will be rejected by cs1|2
end
Line 92 ⟶ 90:
ref = "none",
author = author,
["display-authors"] =
▲ ["display-authors"] = args["display-authors" .. i] or (i == 1 and args["display-authors"]),
date = date,
url = args["url" .. i] or (i == 1 and args["url"]),
Line 108 ⟶ 105:
text = string.format(
"%s article is substantially duplicated by a piece in an external publication. " ..
"
text
)
Line 159 ⟶ 156:
image = '[[File:Newspaper Cover.svg|50px]]',
text = bannerText(frame, args)
}) .. ((demoCheck(args)
"" or "[[Category:Wikipedia article talk pages incorporating the backwards copy template]]"
)
end
|