Module:Citation/CS1/Identifiers: Difference between revisions

no edit summary
m (1 revision imported)
No edit summary
Line 1: Line 1:
local identifiers = {};
local identifiers = {};


Line 44: Line 43:
end
end
if is_set (options.q) then
 
wd_article = mw.wikibase.getEntity (options.q):getSitelink (this_wiki_code .. 'wiki'); -- fetch article title from wd
-- if is_set (options.q) then
if wd_article then
-- wd_article = mw.wikibase.getEntity (options.q):getSitelink (this_wiki_code .. 'wiki'); -- fetch article title from wd
wd_article = table.concat ({':', this_wiki_code, ':', wd_article}); -- make interwiki link if taken from wd; leading colon required
-- if wd_article then
end
-- wd_article = table.concat ({':', this_wiki_code, ':', wd_article}); -- make interwiki link if taken from wd; leading colon required
end
-- end
-- end


return table.concat ({
return table.concat ({