Content deleted Content added
improve ease of access from other Lua modules, expand the comments a little |
sync again - this won't be necessary after all |
||
Line 381:
function p.navbox(frame)
-- ParserFunctions considers the empty string to be false, so to preserve the previous ▼
-- behavior of {{navbox}}, change any empty arguments to nil, so Lua will consider▼
-- them false too.▼
local
local
else▼
--
local temp;
temp =
temp =
for i = 1, 20 do
temp =
temp =
end
temp =
▲ -- ParserFunctions considers the empty string to be false, so to preserve the previous
▲ -- behavior of {{navbox}}, change any empty arguments to nil, so Lua will consider
▲ -- them false too.
▲ for k, v in pairs(origArgs) do
▲ if mw.ustring.find(v, '%S') then
args[k] = v
end
|