Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
implement nowrapitems=yes to apply nowrap to lines in a list item per Template talk:Navbox#Merging nowrap navbox using idea from recently deleted Module:Navbox with nowrap lists
minor tweak; "_" for an unused variable
Line 340:
if subpage == 'doc' or subpage == 'sandbox' or subpage == 'testcases' then return end
 
for i_, cat in ipairs(getTrackingCategories()) do
builder:wikitext('[[Category:' .. cat .. ']]')
end
Line 386:
args = navboxArgs
 
for k, v_ in pairs(args) do
if type(k) == 'string' then
local listnum = tostring(k):match('^list(%d+)$')
if local listnum then= table.insertk:match(listnums, tonumber'^list(listnum%d+)$') end
if listnum then table.insert(listnums, tonumber(listnum)) end
end
end
table.sort(listnums)