Module:Article stub box: Difference between revisions

Content deleted Content added
We can now safely include bad templates in Template:Asbox/testcases
mNo edit summary
Line 37:
function catStub(page, pageDoc)--p.templatepage passes page; p.main does not
stubCats = {
hasDoc = nil,
missing = {},
text = '',
Line 136:
.. catStub(page, pageDoc)
.. ((args.demo and args.demo ~= 'doc' and '') or (require('Module:Documentation').main{
content = (
(page.text ~= 'Stub' and --This comparison performed in {{Asbox/stubtree}} before it invokes Module:Asbox stubtree
Line 176:
)
)
})
.. category{done = true}))
end
 
Line 185:
wrappers = WRAPPER_TEMPLATE
})
args.test_cats = 1
local output = mw.html.create()
local asbox = output:tag'table'