Module:Crh: Difference between revisions

Content deleted Content added
added Arabic script formatting
HTML `lang` and `title`
Line 64:
end
 
local spannedLatin = "<span title=\"Crimean Tatar-language text\" lang=\"crh-Latn\">" .. latinText .. "</span>"
if lead and not labelOnly and link then
table.insert(parts, "[[Latin alphabet|Latin]]: ''" .. latinTextspannedLatin .. "''")
elseif lead and not labelOnly and link then
table.insert(parts, "Latin: ''" .. latinTextspannedLatin .. "''")
else
table.insert(parts, "''" .. latinTextspannedLatin .. "''")
end
 
if cyrillicText and not labelOnly and link then
local spannedCyrillic = "<span title=\"Crimean Tatar-language text\" lang=\"crh-Cyrl\">" .. cyrillicText .. "</span>"
table.insert(parts, "[[Cyrillic script|Cyrillic]]: " .. cyrillicText)
elseif cyrillicText andif not labelOnly and not link then
table.insert(parts, "[[Cyrillic script|Cyrillic]]: " .. cyrillicTextspannedCyrillic)
elseif cyrillicText and not labelOnly and not link then
table.insert(parts, cyrillicText"Cyrillic: " .. spannedCyrillic)
elseif cyrillicText and labelOnly then
end
table.insert(parts, spannedCyrillic)
end
end
if arabicText then
local formattedArabicspannedArabic = "<span title=\"Crimean Tatar-language text\" lang=\"crh-Arab\" dir=\"rtl\">" .. arabicText .. "</span>"
 
if arabicText and not labelOnly and link then
table.insert(parts, "[[Arabic script|Arabic]]: " .. formattedArabicspannedArabic)
elseif arabicText and not labelOnly and not link then
table.insert(parts, "Arabic: " .. formattedArabicspannedArabic)
elseif arabicText and labelOnly then
table.insert(parts, formattedArabicspannedArabic)
end
end