Jump to content

Module:Navbox: Difference between revisions

testing tracking categories
m>Toohool
(testing tracking categories)
m>Toohool
(testing tracking categories)
Line 269: Line 269:
     if mw.ustring.sub(s, 1, 1) == '0' then return end -- not in template space
     if mw.ustring.sub(s, 1, 1) == '0' then return end -- not in template space
     local subpage = mw.ustring.lower(mw.ustring.sub(s, 2))
     local subpage = mw.ustring.lower(mw.ustring.sub(s, 2))
     if subpage == 'doc' or subpage == 'sandbox' or subpage == 'testcases' then return end
     --if subpage == 'doc' or subpage == 'sandbox' or subpage == 'testcases' then return end
      
      
     for i, cat in ipairs(getTrackingCategories()) do
     for i, cat in ipairs(getTrackingCategories()) do
         builder.wikitext('[[Category:' .. cat .. ']]')  
         builder.wikitext('[[:Category:' .. cat .. ']]')  
     end
     end
end
end
Line 280: Line 280:
     if needsHorizontalLists() then table.insert(cats, 'Navigational boxes without horizontal lists') end
     if needsHorizontalLists() then table.insert(cats, 'Navigational boxes without horizontal lists') end
     if hasCustomListSpacing() then table.insert(cats, 'Navigational boxes with custom list spacing') end
     if hasCustomListSpacing() then table.insert(cats, 'Navigational boxes with custom list spacing') end
     if hasBackgroundColors() then table.insert(cats, 'Navboxes using background colors') end
     if hasBackgroundColors() then table.insert(cats, 'Navboxes using background colours') end
     return cats
     return cats
end
end
Line 388: Line 388:
     end
     end
   
   
     --renderTrackingCategories(res)
     renderTrackingCategories(res)
   
   
     return tostring(res)
     return tostring(res)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.