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

Contenuto cancellato Contenuto aggiunto
creo sandbox
 
m versione attuale
 
(8 versioni intermedie di 2 utenti non mostrate)
Riga 1:
local ip = {}
 
-- Funzione per l'utilizzo da altro modulo
i._IsLatin = function(args)
function p._main(args)
local txttext = args[1]; or ''
if txt == '' then
 
return '';
if mw.text.trim(text) == '' then return nil end
end
 
local leni = mw.ustring.len(txt);1
local posj = 1;mw.ustring.len(text)
 
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";
return "sì";false
elseif
elseif charval >= 8960 then
charval>=2100 and charval~=8364 then
return "no";false
end
pos i = posi + 1;
end
 
return "sì";
return true
end
 
-- Funzione per il template:Valido in corsivo
i.IsLatin = function(frame)
returnfunction ip._isLatinmain(frame.args)
return p._main(frame.args) and 'sì' or ''
end
 
return ip