Module:Sandbox/ChaoticShadow/InfoboxBuilder: Difference between revisions

no edit summary
(rename variables)
No edit summary
Line 348:
-- @return self
-- The current object
function InfoboxBuilder:addRow(should_hide, cols, options)
if options then
local actual_values = {}
if options.hideIfEmpty and #options.hideIfEmpty > 0 then
local actual_values = {}
for i,v in ipairs(colsoptions.hideIfEmpty) do
if v.tag == 'argth' or v.tag == 'argtd' then
table.insert(actual_values, self:getContent(v.content))
end
end
end
if should_hide and if #actual_values == 0 then
return self
if should_hide and #actual_values == 0 then
end
return self
end
end
local _row = self.infobox:tag('tr')
439

edits