Modulo:Controllo certificazioni: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
correggo
espando
Riga 9:
local awards = { "d'oro", "di platino", "di diamante" }
for _, v in ipairs(awards) do
iflocal subcontent = string.match(content, '|%s*numero dischi ' .. v .. '%s*=[^|}]*{{%s*[Cc]ertificazione disco%s*|[^}]*FIMI(.+)$') then
if subcontent then
return cat
local n = 0
for s, c in string.gmatch(subcontent, '(.*)([|{}]+)') do
if s ~= '' and s:match('FIMI') then
return cat
end
if n == 0 and c == '|' or c == '}}' then
return
elseif c == '{{' then
n = n + 1
elseif c == '}}' then
n = n - 1
end
end
end
end