Module:Lang: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,058:
if mw.ustring.find (text, whitelist) then -- does <text> contain characters from the whitelist?
-- text = text:gsub ('θ', ''); -- remove theta from <text>
text = mw.ustring.gsub (text, whitelist, 'x'); -- removereplace whitelisted characters from <text> with known Latn-script char 'x'
if 0 == text:len() then -- will be zero if theta was the only character in <text>
if transl then -- not nil for {{transliteration}}; assume Latin theta because this is 'transliteration' template