+|class=noviewer
This commit is contained in:
parent
756321f787
commit
31303f54ab
1 changed files with 5 additions and 5 deletions
|
|
@ -203,7 +203,7 @@ local function makelink(v, out, maxpos, wdl, namestyle)
|
||||||
if wdl then
|
if wdl then
|
||||||
-- show that there's a Wikidata entry available
|
-- show that there's a Wikidata entry available
|
||||||
out[position] = string.format(
|
out[position] = string.format(
|
||||||
"[[:d:Q%s|%s]] <span title='%s'>[[File:Wikidata-logo.svg|16px|alt=|link=]]</span>",
|
"[[:d:Q%s|%s]] <span title='%s'>[[File:Wikidata-logo.svg|16px|class=noviewer|alt=|link=]]</span>",
|
||||||
v.mainsnak.datavalue.value["numeric-id"],
|
v.mainsnak.datavalue.value["numeric-id"],
|
||||||
label,
|
label,
|
||||||
cfg.i18n_t["errors"]["local-article-not-found"]
|
cfg.i18n_t["errors"]["local-article-not-found"]
|
||||||
|
|
@ -865,7 +865,7 @@ local function _cite_q (citeq_args)
|
||||||
if author.qid then
|
if author.qid then
|
||||||
-- ignore anonymous or non-humans
|
-- ignore anonymous or non-humans
|
||||||
if author.human then
|
if author.human then
|
||||||
table.insert(missing_names, author.label .. " <span title='edit author in Wikidata'>[[File:Edit icon on Wikisite.svg|14px|alt=|link=[[:d:" .. author.qid .. "]] ]]</span>")
|
table.insert(missing_names, author.label .. " <span title='edit author in Wikidata'>[[File:Edit icon on Wikisite.svg|14px|class=noviewer|alt=|link=[[:d:" .. author.qid .. "]] ]]</span>")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
table.insert(missing_names, author.label)
|
table.insert(missing_names, author.label)
|
||||||
|
|
@ -877,7 +877,7 @@ local function _cite_q (citeq_args)
|
||||||
if editor.qid then
|
if editor.qid then
|
||||||
-- ignore anonymous or non-humans
|
-- ignore anonymous or non-humans
|
||||||
if editor.human then
|
if editor.human then
|
||||||
table.insert(missing_names, editor.label .. " <span title='edit editor in Wikidata'>[[File:Edit icon on Wikisite.svg|14px|alt=|link=[[:d:" .. editor.qid .. "]] ]]</span>")
|
table.insert(missing_names, editor.label .. " <span title='edit editor in Wikidata'>[[File:Edit icon on Wikisite.svg|14px|class=noviewer|alt=|link=[[:d:" .. editor.qid .. "]] ]]</span>")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
table.insert(missing_names, editor.label)
|
table.insert(missing_names, editor.label)
|
||||||
|
|
@ -889,7 +889,7 @@ local function _cite_q (citeq_args)
|
||||||
if translator.qid then
|
if translator.qid then
|
||||||
-- ignore anonymous or non-humans
|
-- ignore anonymous or non-humans
|
||||||
if translator.human then
|
if translator.human then
|
||||||
table.insert(missing_names, translator.label .. " <span title='edit translator in Wikidata'>[[File:Edit icon on Wikisite.svg|14px|alt=|link=[[:d:" .. translator.qid .. "]] ]]</span>")
|
table.insert(missing_names, translator.label .. " <span title='edit translator in Wikidata'>[[File:Edit icon on Wikisite.svg|14px|class=noviewer|alt=|link=[[:d:" .. translator.qid .. "]] ]]</span>")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
table.insert(missing_names, translator.label)
|
table.insert(missing_names, translator.label)
|
||||||
|
|
@ -979,7 +979,7 @@ local function _cite_q (citeq_args)
|
||||||
local id = cfg.i18n_t.wdq.. ' [[:d:' .. qid .. '|' .. qid .. ']]'
|
local id = cfg.i18n_t.wdq.. ' [[:d:' .. qid .. '|' .. qid .. ']]'
|
||||||
local old_id = citeq_args.id
|
local old_id = citeq_args.id
|
||||||
if wdl then -- show WD logo
|
if wdl then -- show WD logo
|
||||||
id = id .. '[[File:Wikidata-logo.svg|16px|alt=|link=]]' -- possibly replace by WD edit icon?
|
id = id .. '[[File:Wikidata-logo.svg|16px|class=noviewer|alt=|link=]]' -- possibly replace by WD edit icon?
|
||||||
end
|
end
|
||||||
if is_set (old_id) then
|
if is_set (old_id) then
|
||||||
citeq_args.id = old_id .. list_sep .. id -- append to user-specified contents
|
citeq_args.id = old_id .. list_sep .. id -- append to user-specified contents
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue