Module:Navbox: Difference between revisions
undo test
m>Toohool (testing tracking categories) |
m>Toohool (undo test) |
||
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 | |||
for i, cat in ipairs(getTrackingCategories()) do | for i, cat in ipairs(getTrackingCategories()) do | ||
builder.wikitext('[[ | builder.wikitext('[[Category:' .. cat .. ']]') | ||
end | end | ||
end | end |