diff --git a/phpcs.xml b/phpcs.xml index 6c9fca3..4455ad4 100755 --- a/phpcs.xml +++ b/phpcs.xml @@ -7,6 +7,7 @@ + diff --git a/src/EntryPoints/RulesHooks.php b/src/EntryPoints/RulesHooks.php index be65b39..e0cafbc 100644 --- a/src/EntryPoints/RulesHooks.php +++ b/src/EntryPoints/RulesHooks.php @@ -43,7 +43,12 @@ public function onShowMissingArticle( $article ): void { } private function getRulesPageHtml(): string { - return Html::element( 'div', [ 'id' => 'ext-rules-app' ] ) . + return + Html::rawElement( 'p', + [ 'id' => 'ext-rules-intro' ], + wfMessage( 'ext-rules-intro' )->exists() ? wfMessage( 'ext-rules-intro' )->parse() : '' + ) . + Html::element( 'div', [ 'id' => 'ext-rules-app' ] ) . Html::rawElement( 'noscript', [], Html::noticeBox( wfMessage( 'rules-noscript-message' )->text(), '' ) ); }