Module:Cite Q/sandbox: Difference between revisions

Content deleted Content added
test
test
Line 512:
local slink_flag = false
local wrap_title = ''
local wslink = false
if not slink then
-- See if we have wikisource
Line 518 ⟶ 519:
if wikisource_sitelink then
slink = ':s:'..wikisource_sitelink
wslink = true
end
end
Line 530 ⟶ 532:
else
if slink then
if slink:lower() == title_display:lower() and not wslink then
citeq_args.title = '[[' .. slink .. ']]'
else
Line 541 ⟶ 543:
end
if slink_flag then
if slink:gsub("%:s%:","") == wrap_title and not wslink then -- direct link
citeq_args.title = '[[' .. slink .. ']]'
else -- piped link