Modulo:Citazione: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m considera numeri anche le stringhe del tipo n-n o n/n
riscrivo: la modifica dava errori per un local mancante, ma quella variabile non serve
Riga 1 084:
end
else
-- consideraformatta Volume e Issue considerando numeri anche le stringhe del tipo n-n o n/n
if is_set(Volume) then
if tonumber(tempVolume:gsub('[-/]', ''), 10) or A:ORIGIN('Volume') == "vol" then
-- considera numeri anche le stringhe del tipo n-n o n/n
temp = mw.ustring.gsub(Volume,'[%-/]','')
if tonumber(temp) or A:ORIGIN('Volume') == "vol" then
Volume = "vol. " .. Volume
end
end
if is_set(Issue) then
tempif = mw.ustring.gsubtonumber(Issue,:gsub('[%-/]', ''), 10) then
if tonumber(temp) then
Issue = "nº " .. Issue
end