Unknown author fix, 27 August 2026

This commit is contained in:
Jonathan Harker 2026-08-29 22:54:29 +12:00
parent 61b2d57f61
commit 6df6071a72
2 changed files with 2 additions and 2 deletions

View file

@ -138,7 +138,7 @@ local function makelink(v, out, link, maxpos, wdl)
if v.qualifiers and v.qualifiers.P1932 then if v.qualifiers and v.qualifiers.P1932 then
label = v.qualifiers.P1932[1].datavalue.value label = v.qualifiers.P1932[1].datavalue.value
else else
label = cfg.i18n_t["unknown-author"] .. (cfg.i18n_t.trackingcats["unknown-author"] or "") label = mw.wikibase.getLabel("Q4233718"):gsub("^%l", mw.ustring.upper) .. (cfg.i18n_t.trackingcats["unknown-author"] or "")
end end
maxpos = maxpos + 1 maxpos = maxpos + 1
out[maxpos] = label out[maxpos] = label

View file

@ -7,7 +7,7 @@ settings definitions for i18n
local i18n_t = { local i18n_t = {
["cite_q"] = "{{cite Q|", ["cite_q"] = "{{cite Q|",
["erratum"] = "(erratum)", ["erratum"] = "(erratum)",
["unknown-author"] = mw.wikibase.getLabel("Q4233718"):gsub("^%l", mw.ustring.upper), -- ["unknown-author"] = mw.wikibase.getLabel("Q4233718"):gsub("^%l", mw.ustring.upper),
["wdq"] = "[[WDQ (identifier)|Wikidata]]", -- go through "WDQ (identifier)" redirect to reduce clutter in "What links here" and improve reverse lookup. Keep in sync with {{QID}}. ["wdq"] = "[[WDQ (identifier)|Wikidata]]", -- go through "WDQ (identifier)" redirect to reduce clutter in "What links here" and improve reverse lookup. Keep in sync with {{QID}}.
["wikisource"] = "enwikisource", ["wikisource"] = "enwikisource",
["errors"] = { ["errors"] = {