Module:Article history/config: Difference between revisions

Content deleted Content added
remove all the validStatuses tables, as they aren't based on anything in the template code and they aren't being used by the main module
change the messages used with addWarning to "warning" instead of "error"
Line 1,989:
['warning-help'] = 'Warning: $1 ([[$2|help]]).',
['warning-nohelp'] = 'Warning: $1.',
 
-- Warning for invocations that specify a current status without specifying any
-- actions.
['articlehistory-warning-status-no-actions'] = "a current status was supplied " ..
'without any actions',
 
-- A help link for articlehistory-error-status-no-actions
['articlehistory-warning-status-no-actions-help'] = 'Template:Article history#No actions',
 
-- Error for row objects that should output notice bar icons but for which no
Line 2,005 ⟶ 1,997:
-- A help link for row-error-missing-icon
['row-error-missing-icon-help'] = 'Template:Article history#Missing icon',
 
-- Error for invalid current status codes.
-- $1 - the code input by the user
['articlehistory-error-invalid-status'] = "'$1' is not a valid status code",
 
-- A help link for articlehistory-error-invalid-status
['articlehistory-error-invalid-status-help'] = 'Template:Article history#Invalid status',
 
-- Error for action objects that aren't passed a code.
Line 2,049 ⟶ 2,034:
['action-error-invalid-result-help'] = 'Template:Article history#Action results',
 
-- ErrorWarning for action objects with invalid dates.
-- $1 - the date input by the user
-- $2 - the date parameter name
['action-errorwarning-invalid-date'] = "invalid date '$1' detected in parameter '$2'",
 
-- A help link for action-errorwarning-invalid-date
['action-errorwarning-invalid-date-help'] = 'Template:Article history#Invalid date',
 
-- Error for action objects with no dates.
Line 2,061 ⟶ 2,046:
-- $2 - the date parameter name
-- $3 - the action parameter name
['action-errorwarning-no-date'] = "no date specified for action $1; " ..
"please add a date to parameter '$2' or remove the other parameters " ..
"beginning with '$3'",
 
-- A help link for action-errorwarning-no-date
['action-errorwarning-no-date-help'] = 'Template:Article history#No date',
 
-- The text to display in place of the action date if it is missing.
Line 2,079 ⟶ 2,064:
-- A help link for action-error-invalid-oldid
['action-error-invalid-oldid-help'] = 'Template:Article history#Invalid oldid',
 
-- Error for invalid current status codes.
-- $1 - the code input by the user
['articlehistory-errorwarning-invalid-status'] = "'$1' is not a valid status code",
 
-- A help link for articlehistory-errorwarning-invalid-status
['articlehistory-errorwarning-invalid-status-help'] = 'Template:Article history#Invalid status',
 
-- Warning for invocations that specify a current status without specifying any
-- actions.
['articlehistory-warning-status-no-actions'] = "a current status was supplied " ..
'without any actions',
 
-- A help link for articlehistory-errorwarning-status-no-actions
['articlehistory-warning-status-no-actions-help'] = 'Template:Article history#No actions',
 
-- The text to display the current status at the bottom of the collapsible