diff --git a/module_citeq.lua b/module_citeq.lua index ceead63..6ea51a0 100644 --- a/module_citeq.lua +++ b/module_citeq.lua @@ -9,6 +9,8 @@ local cite_cfg = mw.loadData ('Module:Cite/config') local cfg = mw.loadData ('Module:Cite_Q/config') local cs1_module = 'Module:Citation/CS1' -- don't load the module yet, may not be needed local cs1_cfg = mw.loadData('Module:Citation/CS1/Configuration') +local opt_cat = '' + -------------------------------------------------------------------------------- -- makeOrdinal needs to be internationalised along with cfg.i18n_t @@ -363,6 +365,7 @@ local function get_name_list (nl_type, args, qid, wdl) args[nl_type .. '-first' .. i] = args[nl_type .. '-first' .. i] or out[k].first else args[nl_type .. i] = label + opt_cat = opt_cat .. cfg.i18n_t.trackingcats['missing-author-first-last-names']; end if link[k] then args[nl_type .. '-link' .. i] = args[nl_type .. '-link' .. i] or link[k] -- author-linkn or editor-linkn @@ -886,12 +889,10 @@ local function _cite_q (citeq_args) citeq_args.id = id end - local opt_cat = '' - -- Indicator if item has been retracted local retract = '' if citeq_args.retracted_by then - opt_cat = cfg.i18n_t.trackingcats.retracted + opt_cat = opt_cat .. cfg.i18n_t.trackingcats.retracted local retract_id = string.gsub(citeq_args.retracted_by, 'Q', '') local retr_params = { citeq = 'yes', diff --git a/module_citeq_config.lua b/module_citeq_config.lua index bd209f0..35dc8fa 100644 --- a/module_citeq_config.lua +++ b/module_citeq_config.lua @@ -32,6 +32,7 @@ local i18n_t = { ["replaced"] = "[[Category:Cite Q - cites a replaced work]]", ["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]]", }, }