Jump to content

Module:Aligned table: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 8: Line 8:
local align = {}
local align = {}
local cols = tonumber(args['cols'] or '2')
local cols = tonumber(args['cols'] or '2')
local res = ''
local style = args['style'] or ''
if style ~= '' then
style = ' style="' .. style .. '"'
end
for i = 1,cols do
for i = 1,cols do
Line 30: Line 34:
         end
         end
     end
     end
     return '<table>\n' .. table.concat( entries, '\n' ) .. '\n</table>'
     return '<table' .. style ..'>\n' .. table.concat( entries, '\n' ) .. '\n</table>'
      
      
  end
  end


return p
return p
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.