Modulo:Citazione/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Riga 1 385:
else
local frame_lingue = {return_error='true', usacodice='sì'}
forif linguanil in== mw.ustring.gmatchfind( Language, "%S+"',', 1, true ) dothen
-- for historical reasons, when there are no commas, a space have to be used as separator
frame_lingue[#frame_lingue+1] = lingua
-- TODO: verify that the whole string exists as single language
for lingua in mw.ustring.gmatch(Language, "%S+") do
frame_lingue[#frame_lingue+1] = lingua
end
else
-- CSV
for lingua in mw.text.gsplit( Language, ',', true ) do
lingua = mw.text.trim( lingua )
if '' ~= lingua then
frame_lingue[#frame_lingue+1] = lingua
end
end
end
if #frame_lingue > 1 or (#frame_lingue==1 and frame_lingue[1]:lower()~="it") then