Module:Navbox: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
undo test |
fix for empty params |
||
வரிசை 351:
for k, v in pairs(args) do
-- ParserFunctions considers the empty string to be false, so to preserve the previous
if listnum then table.insert(listnums, tonumber(listnum)) end▼
-- behavior of {{navbox}}, change any empty arguments to nil, so Lua will consider
-- them false too.
args[k] = nil
else
local listnum = ('' .. k):match('^list(%d+)$')
▲ if listnum then table.insert(listnums, tonumber(listnum)) end
end
end
table.sort(listnums)
| |||