Modulo:Valido in corsivo/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m versione corrente
m versione attuale
 
(7 versioni intermedie di 2 utenti non mostrate)
Riga 1:
local ip = {}
 
-- Funzione per l'utilizzo da altro modulo
function p._main(args)
i._IsLatin = function(args)
local txttext = args[1]; or ''
 
if txt == '' then
if mw.text.trim(text) == '' then return nil end
return '';
 
end
local i = 1
local lenj = mw.ustring.len(txttext);
 
local pos = 1;
while ( posi <= len j) do
local charval = mw.ustring.codepoint(mw.ustring.sub(txttext, posi))
if charval >=370 1280 and charval <2000 7680 then
return "no";false
elseif charval >= 8960 then
elseif
return false
charval>=2100 and charval~=8364 then
end
return "no";
i = i + end 1
end
pos = pos + 1;
 
end
return "sì";true
end
 
-- Funzione per il template:Valido IsLatinin corsivo
ifunction p.IsLatin = functionmain(frame)
return ip._IsLatin_main(frame.args) and 'sì' or ''
end
 
return ip