Modulo:Navbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m ottimizzazione
m +tonumber per listIds
Riga 19:
name:match("^list(%d+)style$") or name:match("^group(%d+)style$")
if id then
idret = tonumber(id) <= maxList
ret = id <= maxList
end
end
Line 50 ⟶ 49:
local id = k:match("^list(%d+)$")
if id then
table.insert(ret, tonumber(id))
end
end
Line 228 ⟶ 227:
:cssText(self.args["list" .. id .. "style"])
:wikitext(self.args["list" .. id])
if id == "1" and self.args.image then
self:__addImage(trNode, #listIds)
end