Module:Message box: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
rewrite with a "box" object to make the code a little less spaghetti-like |
try testing for demospace and page params or category handler against the current title object |
||
வரிசை 383:
-- 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 {}),
வரி 388 ⟶ 396:
all = tconcat(self.allCats or {}),
nocat = args.nocat,
demospace =
page =
}
end
| |||