Modulo:Valido in corsivo: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m Modificato il livello di protezione per "Modulo:IsLatin": Template o modulo usato in maniera estensiva ([Modifica=Consentito solo agli amministratori] (infinito) [Spostamento=Consentito solo agli amministratori] (infinito))
correggo come da discussione
Riga 1:
local i = {}
 
-- Funzione per l'utilizzo da altro modulo
i._IsLatin = function(args)
local txt = args[1]; or ''
if mw.text.trim(txt) == '' then return nil end
return '';
local len = mw.ustring.len(txt);
end
local pos = 1
while ( pos <= len ) do
local len = mw.ustring.len(txt);
charval = mw.ustring.codepoint(mw.ustring.sub(txt, pos))
local pos = 1;
if charval >=370 880 and charval <2000 8192 then
while ( pos <= len ) do
return "sì";false
charval = mw.ustring.codepoint(mw.ustring.sub(txt, pos))
elseif charval >= 8960 then
if charval>=370 and charval<2000 then
return "no";false
end
elseif
pos = pos + 1;
charval>=2100 and charval~=8364 then
end
return "no";
return true
end
pos = pos + 1;
end
return "sì";
end
 
-- Funzione per il template IsLatin
i.IsLatin = function(frame)
returnif imw._IsLatintext.trim(frame.args[1]) == '' then return end
return i._IsLatin(frame.args) and 'sì' or 'no'
end