From 81088918e2e7da9d4db939dfa6b827d61b33369b Mon Sep 17 00:00:00 2001 From: Jonathan Harker Date: Fri, 16 Oct 2026 19:21:51 +1300 Subject: [PATCH] Add help links to Cite Q red error messages --- module_citeq.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module_citeq.lua b/module_citeq.lua index 9f392be..5fb6b18 100644 --- a/module_citeq.lua +++ b/module_citeq.lua @@ -889,7 +889,8 @@ local function _cite_q (citeq_args) local name_cat = cfg.i18n_t.trackingcats['missing-author-first-last-names'] if #missing_names > 0 and not string.find(opt_cat, name_cat, 1, true) then opt_cat = opt_cat .. name_cat - opt_cat = opt_cat .. ' {{[[Template:Cite Q|Cite Q]]}}: Missing first/last names in Wikidata for ' .. table.concat(missing_names, ', ') .. ' ' + -- TODO: format and i18n this string + opt_cat = opt_cat .. ' {{[[Template:Cite Q|Cite Q]]}}: Missing first/last names in Wikidata for ' .. table.concat(missing_names, ', ') .. ' ([[Template:Cite Q#Error messages|help]]) ' end -- change edition to ordinal if it's set and numeric @@ -903,7 +904,8 @@ local function _cite_q (citeq_args) citeq_args.ref = nil -- avoid CS1 maint: ref duplicates default else local tpara = frame:expandTemplate{ title = 'para', args = {'ref', citeq_args.ref} } - opt_cat = opt_cat .. ' {{[[Template:Cite Q|Cite Q]]}}: supplied ' .. tpara .. ' does not match value generated from Wikidata: ' .. citeref .. ' ' + -- TODO: format and i18n this string + opt_cat = opt_cat .. ' {{[[Template:Cite Q|Cite Q]]}}: supplied ' .. tpara .. ' does not match value generated from Wikidata: ' .. citeref .. ' ([[Template:Cite Q#Error messages|help]]) ' end end