"मोड्युल:Article history" का संशोधनहरू बिचको अन्तर

Undid revision 646877312 by Mr. Stradivarius (talk) - causing problems
(only output categories if we are in the Talk namespace)
(Undid revision 646877312 by Mr. Stradivarius (talk) - causing problems)
end
return ret
end
 
function ArticleHistory:categoriesAreActive()
-- Returns a boolean indicating whether categories should be output or not.
return self.currentTitle.namespace == 1 -- We are in the Talk namespace
end
 
local ret = {}
 
-- Child object categories
if self:categoriesAreActive() then
for i, obj in ipairs(self:getAllObjects()) do
-- Child object categories
local categories = self:try(obj.getCategories, obj, self)
for i, obj in ipairs(self:getAllObjects()) do
for j, categoryObj in ipairs(categories or {}) do
local categories = self:try(obj.getCategories, obj, self)
ret[#ret + 1] = tostring(categoryObj)
for j, categoryObj in ipairs(categories or {}) do
ret[#ret + 1] = tostring(categoryObj)
end
end
end
 
-- Extra categories
for i, func in ipairs(self.cfg.extraCategories or {}) do
local for cats =i, func in ipairs(self).cfg.extraCategories or {}) do
local cats = func(self) or {}
for i, categoryObj in ipairs(cats) do
ret[#ret + 1] = tostring(categoryObj)
end
end
end
errorList:tag('li'):wikitext(msg)
end
errorCategory = tostring(Category.new(self:message('error-category')))
if self:categoriesAreActive() then
errorCategory = tostring(Category.new(self:message(
'error-category'
)))
end
 
-- If there are no errors and no active objects, then exit. We can't make

edits

"https://ne.wikipedia.org/wiki/विशेष:MobileDiff/497861" बाट अनुप्रेषित