Jump to content

Module:Infobox: Difference between revisions

17 bytes added ,  11 years ago
make all whitespace arguments nil, rather than just empty string arguments
(disallow zero-numbered row parameters)
(make all whitespace arguments nil, rather than just empty string arguments)
Line 259:
end
-- ParserFunctions considers the empty stringwhitespace to be false, so to preserve the previous
-- behavior of {{infobox}}, change any emptywhitespace 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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.