Modulo:Valido in corsivo/sandbox
Aspetto
local i = {}
-- Funzione per l'utilizzo da altro modulo
i._IsLatin = function(args)
local txt = args[1];
if txt == '' then
return '';
end
local len = mw.ustring.len(txt);
local pos = 1;
while ( pos <= len ) do
charval = mw.ustring.codepoint(mw.ustring.sub(txt, pos))
if charval>=880 and charval<8192 then
return "no";
elseif
charval>=8448 then
return "no";
end
pos = pos + 1;
end
return "sì";
end
-- Funzione per il template IsLatin
i.IsLatin = function(frame)
return i._IsLatin(frame.args)
end
return i