Module:Cite Q/sandbox: Difference between revisions

Content deleted Content added
layer "last, first" functionality on top of existing function
Tag: Reverted
Undid revision 1117685307 by Tol (talk): will try to actually code this properly at some point
Line 173:
local sitelink = mw.wikibase.getSitelink(qnumber)
if qnumber == "Q2818964" then sitelink = nil end -- suppress link to "Various authors"
if v.qualifiers and v.qualifiers.P9688 and v.qualifiers.P9687P1932 then
label = v.qualifiers.P9688[1].datavalue.value .. ", " .. v.qualifiers.P9687[1].datavalue.value
elseif v.qualifiers and v.qualifiers.P1932 then
label = v.qualifiers.P1932[1].datavalue.value
else