Content deleted Content added
Adamant.pwn (talk | contribs) check that language is defined |
extra values from qualifiers |
||
Line 239:
citeq_args.url = getValue( {"P2699", ps = 1, qid = qid, maxvals=0, citeq_args.url } ) -- try url
-- Get extra values if needed
if not citeq_args.pages then
citeq_args.pages = getValue( {"P1433", ps = 1, qid = citeq_args.qid, maxvals=0, citeq_args.pages, qual='P304', qualsonly='yes' } )
end
if not citeq_args.isbn then
citeq_args.isbn = getValue( {"P1433", ps = 1, qid = citeq_args.qid, maxvals=0, citeq_args.isbn, qual='P212', qualsonly='yes' } )
end
local slink = mw.wikibase.getSitelink(qid)
local label = mw.wikibase.getLabel(qid) or citeq_args.language and mw.wikibase.getLabelByLang(qid, citeq_args.language)
|