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

Content deleted Content added
सा Protected Module:Article history/config: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))
remove deprecated parameter code for dykdate2, otddate2, etc.
पङ्क्ति १३३:
for _, suffix in ipairs(suffixes) do
local key = prefix .. suffix
t[suffix] = args[key]
end
data[#data + 1] = t
end
if args[prefix .. 'date2'] then
data.hasDeprecatedParams = true -- For adding a tracking category
local t = {}
do
local key = prefix .. 'date2'
t.date = validateDate(key, args[key], articleHistoryObj)
end
for i, suffix in ipairs(suffixes) do
local key = prefix .. suffix .. '2'
t[suffix] = args[key]
end
Line १८८ ⟶ १७५:
local dateList = mw.text.listToText(dates, ', ', ', and ')
return mw.message.newRawMessage(blurb, dateList):plain()
end
 
-- Returns a deprecated parameters category if the data table passed to it has
-- a deprecated parameters flag set.
local function makeDeprecatedParamsCategory(data)
if data and data.hasDeprecatedParams then
return Category.new('Article history templates with deprecated parameters')
end
end
 
Line १,८७६ ⟶ १,८५५:
end
cats[1] = Category.new(cat)
cats[2] = makeDeprecatedParamsCategory(collapsibleNoticeObj:getData())
return cats
end
Line १,९१३ ⟶ १,८९१:
local cats = {}
cats[1] = Category.new('Wikipedia In the news articles')
cats[2] = makeDeprecatedParamsCategory(collapsibleNoticeObj:getData())
return cats
end
Line १,९५१ ⟶ १,९२८:
local cats = {}
cats[1] = Category.new('Selected anniversaries articles')
cats[2] = makeDeprecatedParamsCategory(collapsibleNoticeObj:getData())
return cats
end