From 7d5e88fd5ffe60cdf85fbda1cd1206643520dc48 Mon Sep 17 00:00:00 2001 From: MatmaRex Date: Fri, 19 Jul 2013 20:28:36 +0200 Subject: [PATCH] Special:ListGroupRights: Display the legend at the top Previously it was displayed at the bottom and was rather hard to notice. Also prefix the legend with "Legend:" to make the interface clearer. Change-Id: I62f3dfb311ae648180363f36d60a5f400ea4f077 --- includes/specials/SpecialListgrouprights.php | 7 +++---- languages/messages/MessagesEn.php | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/specials/SpecialListgrouprights.php b/includes/specials/SpecialListgrouprights.php index 57bfea5c8a..82a4f70f1d 100644 --- a/includes/specials/SpecialListgrouprights.php +++ b/includes/specials/SpecialListgrouprights.php @@ -50,6 +50,8 @@ class SpecialListGroupRights extends SpecialPage { $out = $this->getOutput(); $out->addModuleStyles( 'mediawiki.special' ); + $out->wrapWikiMsg( "
\n$1\n
", 'listgrouprights-key' ); + $out->addHTML( Xml::openElement( 'table', array( 'class' => 'wikitable mw-listgrouprights-table' ) ) . '' . @@ -129,10 +131,7 @@ class SpecialListGroupRights extends SpecialPage { ' ) ); } - $out->addHTML( - Xml::closeElement( 'table' ) . "\n

\n" - ); - $out->wrapWikiMsg( "
\n$1\n
", 'listgrouprights-key' ); + $out->addHTML( Xml::closeElement( 'table' ) ); } /** diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index b8a927c122..c68de09fb9 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2867,7 +2867,8 @@ Supported {{PLURAL:$2|protocol|protocols}}: $1 (defaults to http:// 'listgrouprights' => 'User group rights', 'listgrouprights-summary' => 'The following is a list of user groups defined on this wiki, with their associated access rights. There may be [[{{MediaWiki:Listgrouprights-helppage}}|additional information]] about individual rights.', -'listgrouprights-key' => '* Granted right +'listgrouprights-key' => 'Legend: +* Granted right * Revoked right', 'listgrouprights-group' => 'Group', 'listgrouprights-rights' => 'Rights', -- 2.20.1