ref=none is legitimate

This commit is contained in:
Trappist the monk 2026-10-19 13:29:44 +13:00 • committed by Jonathan Harker
parent 746e3a3947
commit c259ed2704

View file

@ -875,7 +875,7 @@ local function _cite_q (citeq_args)
-- handle supplied {{para|ref}} for readable ID, avoid CS1 duplicate default error -- handle supplied {{para|ref}} for readable ID, avoid CS1 duplicate default error
local pubyear = yearFromDate(citeq_args['publication-date']) local pubyear = yearFromDate(citeq_args['publication-date'])
if citeq_args.ref then if citeq_args.ref and 'none' ~= citeq_args.ref then
local citeref = make_citeref(names.authors or names.editors, pubyear) local citeref = make_citeref(names.authors or names.editors, pubyear)
if citeq_args.ref == citeref then if citeq_args.ref == citeref then
citeq_args.ref = nil -- avoid CS1 maint: ref duplicates default citeq_args.ref = nil -- avoid CS1 maint: ref duplicates default