Content deleted Content added
All now removed. |
Add width clause |
||
Line 95:
-- Create episode table
local root = mw.html.create('table')
-- Table width
local table_width
if args.total_width == 'auto' then
table_width = 'auto'
elseif tonumber(args.total_width) ~= nil then
table_width = args.total_width .. '%'
else
table_width = '100%'
end
root
Line 100 ⟶ 111:
:addClass('plainrowheaders')
:addClass('wikiepisodetable')
:css('width', table_width)
▲ :css('width', args.total_width and string.gsub(args.total_width,'%%','') .. '%' or '100%')
-- Caption
|