Anonymous user
Module:Message box: Difference between revisions
Jump to navigation
Jump to search
on second thoughts, I like this way of passing params to category handler better
m (fix brackets) |
(on second thoughts, I like this way of passing params to category handler better) |
||
Line 128:
function box:setTitle(args)
-- Get the title object and the namespace.
self.title = self.pageTitle or mw.title.getCurrentTitle()
self.nsid = box.getNamespaceId(self.demospace) or self.title.namespace
end
Line 383:
-- Convert category tables to strings and pass them through [[Module:Category handler]].
self.categories = categoryHandler{
main = tconcat(self.mainCats or {}),
Line 396 ⟶ 388:
all = tconcat(self.allCats or {}),
nocat = args.nocat,
demospace =
page =
}
end
|