Modul:Navbox: Unterschied zwischen den Versionen

testing tracking categories
(testing tracking categories)
(testing tracking categories)
Zeile 269: Zeile 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
Zeile 280: Zeile 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
Zeile 388: Zeile 388:
     end
     end
   
   
     --renderTrackingCategories(res)
     renderTrackingCategories(res)
   
   
     return tostring(res)
     return tostring(res)
Anonymer Benutzer