Content deleted Content added
add invalid action code error |
add more Action class errors and use a special key _BLANK for blank action result codes |
||
Line 489:
id = 'reviewed',
text = 'Reviewed',
aliases = {'_BLANK'}
}
},
Line 511:
id = 'reviewed',
text = 'Reviewed',
aliases = {'_BLANK'}
},
kept = {
Line 1,222:
-- Error for action objects that are passed an invalid code.
-- $1 - the code that
-- $2 - the parameter name for the code
['action-error-invalid-code'] = "invalid action code '$1' passed to the '$2' parameter",
-- A help link for action-error-invalid-code
['action-error-invalid-code-help'] = 'Template:Article history#Errors',
-- Error for action objects with blank result parameters, where result
-- parameters are required for the action's ID.
-- $1 - the action ID
-- $2 - the result parameter name
['action-error-blank-result'] = "the '$1' action requires a result code; " ..
"please add a result code to parameter '$2'",
-- A help link for action-error-blank-result
['action-error-blank-result-help'] = 'Template:Article history#Errors',
-- Error for action objects with invalid result parameters.
-- $1 - the result code that the user input
-- $2 - the action ID
-- $3 - the result parameter name
['action-error-invalid-result'] = "invalid result '$1' for action '$2' " ..
"detected in parameter '$3'",
-- A help link for action-error-invalid-result
['action-error-invalid-result-help'] = 'Template:Article history#Errors',
-- Error for action objects with invalid dates.
-- $1 - the date input by the user
-- $2 - the date parameter name
['action-error-invalid-date'] = "invalid date '$1' detected in parameter '$2'",
-- A help link for action-error-invalid-date
['action-error-invalid-date-help'] = 'Template:Article history#Errors',
-- Error for action objects with no dates.
-- $1 - the parameter number
-- $2 - the date parameter name
['action-error-no-date'] = "no date specified for action $1; " ..
"please add a date to parameter '$2' or remove the other parameters for action $1",
-- A help link for action-error-no-date
['action-error-no-date-help'] = 'Template:Article history#Errors',
-- The text to display in place of the action date if it is missing.
['action-date-missing'] = '?',
-- Error for action objects with invalid oldids.
-- $1 - the oldid input by the user
-- $2 - the oldid parameter name
['action-error-invalid-oldid'] = "invalid oldid '$1' detected in parameter '$2'; " ..
"if an oldid is specified it must be a positive integer",
-- A help link for action-error-invalid-oldid
['action-error-invalid-oldid-help'] = 'Template:Article history#Errors',
}
|