Add tracking category for supplied ref mismatch
This commit is contained in:
parent
a12122b03f
commit
dc7f9358db
2 changed files with 2 additions and 0 deletions
|
|
@ -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> '
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ local i18n_t = {
|
|||
["unknown-author"] = "", -- [[Category:Cite Q - author unknown]] removed as misplaced; someone is welcome to restore it if it is placed outside of the template parameter value
|
||||
["unknown-template"] = "[[Category:Cite Q - template unknown]]",
|
||||
["missing-author-first-last-names"] = "[[Category:Cite Q - authors with missing given and family names]]",
|
||||
["supplied-ref"] = "[[Category:Cite Q - supplied citeref does not match]]",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue