"Module:Asbox": अवतरणों में अंतर
Content deleted Content added
imported>Codehydro patch for note param causing gap in firefox; also streamlined asbox further |
imported>Codehydro place main category in article even if |tempsort=no |
||
पंक्ति 95:
--Get category names and, if called by p.templatepage, the optional sort key
local tsort, cat = args['tempsort' .. v], mw.ustring.gsub(args['category' .. v], '[^%w%p%s]', '')--remove all hidden unicode chars
--Do not place template in main category if |tempsort = 'no'
page and (--p.templatepage passes page; p.main does not, i.e. articles are categorized without sort keys.▼
v=='' and tsort == 'no'--if true, inserts 'true' in table, which category() will reject
▲ --p.templatepage passes page; p.main does not, i.e. articles are categorized without sort keys.
or tsort and {cat, k = ' ', t = tsort}
▲ table.insert(stubCats.v, page and
)
)
--Check category existance only if on the template page (i.e. stub documentation)
if page then
|