Content deleted Content added
handle bad statuses using the existing architecture and add the status notice bar icons |
get the currentstatus parameter name from the config rather than hard-coding it |
||
Line 500:
aliases = {'START', 'B', 'A'},
text = function (articleHistoryObj)
local currentStatusParam = articleHistoryObj.cfg.currentStatusParam
articleHistoryObj:raiseError(
string.format(
"Please do not use %s as a ''
'these assessments are the responsibility of individual WikiProjects.',
currentStatusParam
),
'Template:Article history#Errors'
Line 516 ⟶ 518:
-- arguments, and the ID is the value contained in the config.
local statuses = articleHistoryObj.cfg.statuses
local statusCode = articleHistoryObj.args[articleHistoryObj.
local statusId = articleHistoryObj:getStatusIdForCode(statusCode)
|