Module:Sandbox/Alexiscoutinho: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 13:
local i = 1
local total1, total2 = 0, 0
local a = ''
 
for parameter in mw.text.gsplit( lines[#lines], ';' ) do
a = a..parameter..'-'
if string.find( parameter, '^ *%A' ) then
if i == 6 then
Line 21 ⟶ 23:
total1 = 0
end
return parameter, total1
elseif i == 8 then
total2 = tonumber( string.gsub( parameter, '%D', '' ) )
Line 33 ⟶ 34:
end
divisor = math.max( total1, total2 ) / ( 0.95 * barwidth )
return a
end
return divisor