Module:headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 284: Line 284:
translits_formatted = " (" .. table.concat(data.translits, " <i>or</i> ") .. ")"
translits_formatted = " (" .. table.concat(data.translits, " <i>or</i> ") .. ")"
local transliteration_page = mw.title.new(data.lang:getCanonicalName() .. " transliteration", "Wiktionary")
local transliteration_page = mw.title.new(data.lang:getCanonicalName() .. " transliteration", "")
if transliteration_page then
if transliteration_page then
local success, exists = pcall(function () return transliteration_page.exists end)
local success, exists = pcall(function () return transliteration_page.exists end)
if success and exists then
if success and exists then
translits_formatted = " [[Wiktionary:" .. data.lang:getCanonicalName() .. " transliteration|•]]" .. translits_formatted
translits_formatted = " [[" .. data.lang:getCanonicalName() .. " transliteration|•]]" .. translits_formatted
end
end
end
end

Navigation menu