Module:Categorization

-- -- See the talk page for documentation.

--% This function is meant to be called with the names of the namespaces that pages can be categorized in. --% It returns a function to be used to categorize pages, which accepts any number of category names. function p.categorize(...) local namespaces = {...} return function(...) local result = '' if mw.title.getCurrentTitle:inNamespaces(unpack(namespaces)) then for _, category in next, {...} do               result = result .. ""           end end return result end end