Module:Article history/config: Difference between revisions

Content deleted Content added
change the error category from "ArticleHistory errors" to "Article history errors", to go along with the renaming of the template
add error help locations and improve a couple of the messages
Line 75:
key
),
'Template:Article history#ErrorsInvalid date'
)
end
Line 95:
prefix, t[1]
),
'Template:Article history#ErrorsNo date parameter'
)
end
Line 139:
mw.text.listToText(newKeys)
),
'Template:Article history#ErrorsParameters are deprecated'
)
end
Line 379:
tostring(gacat)
),
'"Template:Article history#ErrorsInvalid value in 'gacat'"
)
end
Line 515:
makeTemplateLink('fac')
),
'Template:Article history#ErrorsFeatured article candidates'
)
end
Line 527:
makeTemplateLink('FAR')
),
'Template:Article history#ErrorsFeatured article review'
)
end
Line 538:
articleHistoryObj:raiseError(
string.format(
"Please do not use '%s' as avalue of ''%s'' parameter:; these " ..
'these assessments are the responsibility of individual WikiProjects.', ..
'WikiProjects',
articleHistoryObj.args[currentStatusParam],
currentStatusParam
),
'Template:Article history#ErrorsWikiProject assessments'
)
end
Line 576 ⟶ 577:
articleHistoryObj:raiseError(
'former featured articles should have a current status',
'Template:Article history#ErrorsFormer featured articles'
)
elseif statusId == 'GA' then
Line 586 ⟶ 587:
tostring(statusCode)
),
'Template:Article history#ErrorsFormer featured articles'
)
end
Line 630 ⟶ 631:
num, num
),
'Template:Article history#ErrorsFeatured topic names'
)
else
Line 651 ⟶ 652:
"featured topic names were specified; " ..
"please check the parameter names",
'Template:Article history#ErrorsFeatured topic names'
)
end
Line 868 ⟶ 869:
data.mainDate
),
'Template:Article history#ErrorsInvalid date'
)
end
Line 2,026 ⟶ 2,027:
 
-- A help link for row-error-missing-icon
['row-error-missing-icon-help'] = 'Template:Article history#ErrorsMissing icon',
 
-- Error for action objects that aren't passed a code.
Line 2,034 ⟶ 2,035:
 
-- A help link for action-error-no-code
['action-error-no-code-help'] = 'Template:Article history#ErrorsAction codes',
 
-- Error for action objects that are passed an invalid code.
Line 2,042 ⟶ 2,043:
 
-- A help link for action-error-invalid-code
['action-error-invalid-code-help'] = 'Template:Article history#ErrorsAction codes',
 
-- Error for action objects with blank result parameters, where result
Line 2,052 ⟶ 2,053:
 
-- A help link for action-error-blank-result
['action-error-blank-result-help'] = 'Template:Article history#ErrorsAction results',
 
-- Error for action objects with invalid result parameters.
Line 2,062 ⟶ 2,063:
 
-- A help link for action-error-invalid-result
['action-error-invalid-result-help'] = 'Template:Article history#ErrorsAction results',
 
-- Error for action objects with invalid dates.
Line 2,070 ⟶ 2,071:
 
-- A help link for action-error-invalid-date
['action-error-invalid-date-help'] = 'Template:Article history#ErrorsInvalid date',
 
-- Error for action objects with no dates.
-- $1 - the parameter number
-- $2 - the date parameter name
-- $3 - the action 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",..
"beginning with '$3'",
 
-- A help link for action-error-no-date
['action-error-no-date-help'] = 'Template:Article history#ErrorsNo date',
 
-- The text to display in place of the action date if it is missing.
Line 2,091 ⟶ 2,094:
 
-- A help link for action-error-invalid-oldid
['action-error-invalid-oldid-help'] = 'Template:Article history#ErrorsInvalid oldid',
 
-- The text to display the current status at the bottom of the collapsible