diff --git a/i18n/en.json b/i18n/en.json index 1d2d610..5fa72c7 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -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." } diff --git a/src/SpecialPage/SpecialResourceLoaderArticles.php b/src/SpecialPage/SpecialResourceLoaderArticles.php index a06399a..d5589d4 100644 --- a/src/SpecialPage/SpecialResourceLoaderArticles.php +++ b/src/SpecialPage/SpecialResourceLoaderArticles.php @@ -113,6 +113,7 @@ private function addPage() { $formDescriptor = [ 'Page' => [ 'label-message' => 'resourceloaderarticles-page', + 'help-message' => 'resourceloaderarticles-help-page', 'type' => 'text', 'required' => true, ], @@ -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, @@ -292,6 +294,7 @@ private function deletePage( $id ) { ], 'Page' => [ 'label-message' => 'resourceloaderarticles-page', + 'help-message' => 'resourceloaderarticles-help-page', 'type' => 'text', 'required' => true, 'disabled' => true,