Module:Cite Q/sandbox: Difference between revisions

Content deleted Content added
date should be in ""
No edit summary
Line 224:
citeq_args.url = getValue( {"P856", ps = 1, qid = citeq_args.qid, maxvals=0, citeq_args.url } ) -- try official website
citeq_args.url = getValue( {"P2699", ps = 1, qid = citeq_args.qid, maxvals=0, citeq_args.url } ) -- try url
if not citeq_args.title then
citeq_args.title = mw.wikibase.getSitelink(citeq_args.qid)
if citeq_args.title then
citeq_args.url = nil
citeq_args.title = '[[' .. citeq_args.title .. ']]'
else
citeq_args.title = mw.wikibase.getLabel(citeq_args.qid)
end
end