Module:Sandbox/ChaoticShadow/InfoboxBuilder: Difference between revisions
Content added Content deleted
(rename variables) |
No edit summary |
||
Line 348: | Line 348: | ||
-- @return self |
-- @return self |
||
-- The current object |
-- The current object |
||
function InfoboxBuilder:addRow(should_hide, cols) |
function InfoboxBuilder:addRow(should_hide, cols, options) |
||
if options then |
|||
⚫ | |||
if options.hideIfEmpty and #options.hideIfEmpty > 0 then |
|||
⚫ | |||
for i,v in ipairs(options.hideIfEmpty) do |
|||
if v.tag == 'argth' or v.tag == 'argtd' then |
|||
table.insert(actual_values, self:getContent(v.content)) |
|||
end |
|||
⚫ | |||
end |
|||
⚫ | |||
⚫ | |||
⚫ | |||
end |
|||
⚫ | |||
end |
|||
⚫ | |||
local _row = self.infobox:tag('tr') |
local _row = self.infobox:tag('tr') |