Skip to content

Commit

Permalink
Add help text to resource name field
Browse files Browse the repository at this point in the history
  • Loading branch information
iMarbot committed Apr 20, 2024
1 parent 63f3ee7 commit 290eab1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"resourceloaderarticles-success-edit": "Resource successfully edited",
"resourceloaderarticles-success-delete": "Resource successfully deleted",

"resourceloaderarticles-help-page": "Page name of resource (excl. `MediaWiki:Common.[js|css]/`). Valid JS ends with `.js` and valid styling ends with `.css` or `.less`.",
"resourceloaderarticles-help-priority": "Priority for loading order of the resource (higher first), falls back to alphabetic order within a single priority class."
}
3 changes: 3 additions & 0 deletions src/SpecialPage/SpecialResourceLoaderArticles.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ private function addPage() {
$formDescriptor = [
'Page' => [
'label-message' => 'resourceloaderarticles-page',
'help-message' => 'resourceloaderarticles-help-page',
'type' => 'text',
'required' => true,
],
Expand Down Expand Up @@ -200,6 +201,7 @@ private function editPage( $id ) {
],
'Page' => [
'label-message' => 'resourceloaderarticles-page',
'help-message' => 'resourceloaderarticles-help-page',
'type' => 'text',
'required' => true,
'default' => $row->rla_page,
Expand Down Expand Up @@ -292,6 +294,7 @@ private function deletePage( $id ) {
],
'Page' => [
'label-message' => 'resourceloaderarticles-page',
'help-message' => 'resourceloaderarticles-help-page',
'type' => 'text',
'required' => true,
'disabled' => true,
Expand Down

0 comments on commit 290eab1

Please sign in to comment.