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#
)
end
Line 95:
prefix, t[1]
),
'Template:Article history#
)
end
Line 139:
mw.text.listToText(newKeys)
),
'Template:Article history#
)
end
Line 379:
tostring(gacat)
),
)
end
Line 515:
makeTemplateLink('fac')
),
'Template:Article history#
)
end
Line 527:
makeTemplateLink('FAR')
),
'Template:Article history#
)
end
Line 538:
articleHistoryObj:raiseError(
string.format(
"
'
'WikiProjects',
articleHistoryObj.args[currentStatusParam],
currentStatusParam
),
'Template:Article history#
)
end
Line 576 ⟶ 577:
articleHistoryObj:raiseError(
'former featured articles should have a current status',
'Template:Article history#
)
elseif statusId == 'GA' then
Line 586 ⟶ 587:
tostring(statusCode)
),
'Template:Article history#
)
end
Line 630 ⟶ 631:
num, num
),
'Template:Article history#
)
else
Line 651 ⟶ 652:
"featured topic names were specified; " ..
"please check the parameter names",
'Template:Article history#
)
end
Line 868 ⟶ 869:
data.mainDate
),
'Template:Article history#
)
end
Line 2,026 ⟶ 2,027:
-- A help link for row-error-missing-icon
['row-error-missing-icon-help'] = 'Template:Article history#
-- 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#
-- 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#
-- 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#
-- 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#
-- 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#
-- 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
"beginning with '$3'",
-- A help link for action-error-no-date
['action-error-no-date-help'] = 'Template:Article history#
-- 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#
-- The text to display the current status at the bottom of the collapsible
|