Module:Cite Q/sandbox: Difference between revisions

Content deleted Content added
tweak
test
Line 489:
break
end
end
end
 
-- See if we have wikisource
if not citeq_args.url then
local wikisource_sitelink = mw.wikibase.getSitelink(qid, "enwikisource") or nil
if wikisource_sitelink then
citeq_args.url = 'https://en.wikisource.org/wiki/' .. mw.uri.encode(wikisource_sitelink,'WIKI')
end
end
Line 520 ⟶ 512:
local slink_flag = false
local wrap_title = ''
if not slink then
-- See if we have wikisource
if not citeq_args.url then
local wikisource_sitelink = mw.wikibase.getSitelink(qid, "enwikisource") or nil
if wikisource_sitelink then
slink = ':s:'..wikisource_sitelink
end
end
end
if citeq_args.title then
if slink then