Module:Sandbox/ChaoticShadow/InfoboxBuilder: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 333:
--- Adds a row, with columns up to 30 columns spanned
-- @param should_hide boolean
-- @param ... { { tag, content, hide, attr, colspan, rowspan, css }, ... }▼
-- The row will be hidden if all varying columns are nil
-- tag "th", "td", "argth", "argtd"
-- A string containing one of the above, "th" or
Line 347 ⟶ 349:
-- @return self
-- The current object
function InfoboxBuilder:addRow(should_hide,
local actual_values = {}
for i,v in ipairs(
if v.tag == 'argth' or v.tag == 'argtd' then
table.insert(actual_values, self:getContent(v.content))
Line 358:
end
▲ -- if should_hide and #actual_values > 0 then
▲ -- return self
▲ -- end
end
|