Module:Sidebar: Difference between revisions
Appearance
newline fix |
don't modify the args table while iterating over it |
||
Line 196: | Line 196: | ||
args.belowstyle = 'border-top: 1px solid #aaa; border-bottom: 1px solid #aaa;' .. (args.belowstyle or '') | args.belowstyle = 'border-top: 1px solid #aaa; border-bottom: 1px solid #aaa;' .. (args.belowstyle or '') | ||
args.navbarstyle = 'padding-top: 0.6em;' .. (args.navbarstyle or args.tnavbarstyle or '') | args.navbarstyle = 'padding-top: 0.6em;' .. (args.navbarstyle or args.tnavbarstyle or '') | ||
local contentArgs = {} | |||
for k, v in pairs(args) do | for k, v in pairs(args) do | ||
Line 233: | Line 235: | ||
.wikitext(args['list' .. num]) | .wikitext(args['list' .. num]) | ||
contentArgs['content' .. num] = tostring(row) | |||
end | end | ||
end | |||
for k, v in pairs(contentArgs) do | |||
args[k] = v | |||
end | end | ||