Module:Infobox: Difference between revisions
fix text alignment
m>Toohool (←Created page with '-- -- This module will implement {{Infobox}} -- local p = {} local HtmlBuilder = require('Module:HtmlBuilder') local args local root function union(t1, t...') |
m>Toohool (fix text alignment) |
||
Line 60: | Line 60: | ||
local dataCell = row.tag('td') | local dataCell = row.tag('td') | ||
if not rowArgs.label then dataCell.attr('colspan', 2) end | if not rowArgs.label then | ||
dataCell | |||
.attr('colspan', 2) | |||
.css('text-align', 'center') | |||
end | |||
dataCell | dataCell | ||
.addClass(rowArgs.class) | .addClass(rowArgs.class) |