Add tracking category for supplied ref mismatch

This commit is contained in:
Jonathan Harker 2026-10-20 12:37:04 +13:00
parent a12122b03f
commit dc7f9358db
2 changed files with 2 additions and 0 deletions

View file

@ -920,6 +920,7 @@ local function _cite_q (citeq_args)
if citeq_args.ref == citeref then
citeq_args.ref = nil -- avoid CS1 maint: ref duplicates default
else
tableset_add(opt_cat, cfg.i18n_t.trackingcats['supplied-ref'])
local tpara = frame:expandTemplate{ title = 'para', args = {'ref', citeq_args.ref} }
-- TODO: format and i18n this string
cq_errors = cq_errors .. ' <span class="error" style="font-size:inherit"><code class="cs1-code">{{[[Template:Cite Q|Cite Q]]}}</code>: supplied ' .. tpara .. ' does not match value generated from Wikidata: <code class="cs1-code">' .. citeref .. '</code> ([[Template:Cite Q#Error messages|help]])</span> '