Changes

Jump to: navigation, search

Module:Message box

185 bytes added, 23:22, 27 September 2013
try testing for demospace and page params or category handler against the current title object
-- Convert category tables to strings and pass them through [[Module:Category handler]].
local chpage, chdemospace
local currentTitle = mw.title.getCurrentTitle
if self.title ~= currentTitle then
chpage = self.title.prefixedText
end
if self.nsid ~= currentTitle.namespace then
chdemospace = self.nsid
end
self.categories = categoryHandler{
main = tconcat(self.mainCats or {}),
all = tconcat(self.allCats or {}),
nocat = args.nocat,
demospace = self.demospace and args.demospace or nilchdemospace, page = self.pageTitle and pageTitle.prefixedText or nilchpage
}
end
Anonymous user

Navigation menu