Mòdul:Episode table: diferència entre les revisions

Contingut suprimit Contingut afegit
Cap resum de modificació
width
Etiqueta: Revertida
Línia 11:
local EpisodeTable = {}
 
function EpisodeTable.cell(background, width, text, reference, textColor)
local cell = mw.html.create('th')
-- Width
local cell_width
if width == 'auto' then
cell_width = 'auto'
elseif tonumber(width) ~= nil then
cell_width = width .. '%'
else
cell_width = nil
end
-- Cell