Module:Sandbox/Alexiscoutinho

This is an old revision of this page, as edited by Alexiscoutinho (talk | contribs) at 18:44, 23 March 2020. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}

function p.buildRows( frame )
    local data = frame.args.data
    local numwidth = frame.args.numwidth
    local collapsible = frame.args.collapsible
    return math.max(tonumber(' '), 5)

    --local lines = mw.text.split( data, '\n' )
   -- local params = mw.text.split( lines[#lines], ';' )
   -- local i, j, n = 1, 1, #params
   -- local total1, total2 = 0, 0

    --repeat
    --	if j == 6 then
    --		total1 = tonumber( string.gsub( params[i], ',', '' ) )
    --	elseif j == 8 then
    	--	total2 = tonumber( string.gsub( params[i], ',', '' ) )
    --	end
    --	if not string.find( params[i], '^ *%a' ) then
    --		j = j + 1
    --	end
    --	i = i + 1
  --  until i == n or j == 8

    --return math.max( string.gsub( params[6], ',', '' ), string.gsub( params[8], ',', '' ) )
end
return p