Open main menu

Changes

Module:Infobox

17 bytes added, 08:02, 1 June 2013
make all whitespace arguments nil, rather than just empty string arguments
end
-- ParserFunctions considers the empty string whitespace to be false, so to preserve the previous -- behavior of {{infobox}}, change any empty whitespace arguments to nil, so Lua will consider
-- them false too. (Except the 'italic title' param, which specifies different behavior
-- depending on whether it's absent or empty)
args = {}
for k, v in pairs(origArgs) do
if mw.ustring.match(v ~= , '%S' ) or k == 'italic title' then
args[k] = v
end
Anonymous user