Anonymous user
Module:Infobox: Difference between revisions
From The Kodiak Republic Wiki
simplify (tested in sandbox)
(fixed) |
(simplify (tested in sandbox)) |
||
Line 113:
end
elseif rowArgs.data then
end▼
local row = root:tag('tr')
row:addClass(rowArgs.rowclass)
Line 231 ⟶ 234:
local rownums = union(getArgNums('header'), getArgNums('data'))
table.sort(rownums)
for k, num in ipairs(rownums) do
▲ dval:gsub('%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]', ''):match('%S')
▲ row_style = 'display:none'
▲ end
addRow({
header = args['header' .. tostring(num)],
Line 251 ⟶ 242:
class = args['class' .. tostring(num)],
rowclass = args['rowclass' .. tostring(num)],
rowstyle =
rowcellstyle = args['rowcellstyle' .. tostring(num)],
dataid = args['dataid' .. tostring(num)],
|