Module:Message box: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
சி fix brackets
on second thoughts, I like this way of passing params to category handler better
வரிசை 128:
function box:setTitle(args)
-- Get the title object and the namespace.
local self.pageTitle = getTitleObject(args.page ~= '' and args.page)
self.title = self.pageTitle or mw.title.getCurrentTitle()
local self.demospace = box.getNamespaceId(args.demospace ~= '' and args.demospace) or nil
self.nsid = box.getNamespaceId(self.demospace) or self.title.namespace
end
 
வரிசை 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 {}),
வரி 396 ⟶ 388:
all = tconcat(self.allCats or {}),
nocat = args.nocat,
demospace = chdemospaceself.demospace,
page = chpageself.pageTitle and pageTitle.prefixedText or nil
}
end
"https://tamilar.wiki/w/Module:Message_box" இலிருந்து மீள்விக்கப்பட்டது