Use Erratum template, qidonly config lookups, 5 September 2026

This commit is contained in:
Jonathan Harker 2026-09-06 11:48:42 +12:00
parent fbc531998a
commit d0298adb5d
2 changed files with 50 additions and 21 deletions

View file

@ -7,7 +7,6 @@ settings definitions for i18n
local i18n_t = {
["cite_q"] = "{{cite Q|",
["erratum"] = "(erratum)",
-- ["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}}.
["wikisource"] = "enwikisource",
["errors"] = {
@ -44,6 +43,7 @@ id = PXXX
maxvals = maximum number of multiple values (0 for all)
linked = "no" suppresses linking
qidonly = true - fetch the QID rather than the label string
populate_from_journal = true/false determines whether to look in a journal where the source is published
rank = "best", "preferred", normal, etc. determines how Wikidata ranks are treated
others = true - the value for the property goes to "others" section
@ -71,10 +71,12 @@ local simple_properties_t = {
hdl = {id = "P1184", maxvals = 1}, -- take care of |hdl-access=?
ismn = {id = "P1208", maxvals = 1},
journal = {id = "P1433", maxvals = 1},
thesis_degree = {id = "P13338", maxvals = 1},
thesis_submitted_to = {id = "P4101", maxvals = 1},
retracted_by = {id = "P5824", maxvals = 1}, -- transient, non-CS1
citeseerx = {id = "P3784", maxvals = 1},
thesis_degree = {id = "P13338", maxvals = 1}, -- transient, non-CS1
thesis_submitted_to = {id = "P4101", maxvals = 1}, -- transient, non-CS1
retracted_by = {id = "P5824", qidonly=true, maxvals = 1}, -- transient, non-CS1
replaced_by = {id = "P1366", qidonly=true, maxvals = 1}, -- transient, non-CS1
erratum = {id = "P2507", qidonly=true, maxvals = 1}, -- transient, non-CS1
-- citeseerx = {id = "P3784", maxvals = 1},
osti = {id = "P3894", maxvals = 1}, -- take care of |osti-access=?
biorxiv = {id = "P3951", maxvals = 1},
asin = {id = "P5749", maxvals = 1}, -- What about |asin-tld=? (WD examples resolve to .com at present, but may change)