Use AuthManager on special pages
[lhc/web/wiklou.git] / languages / messages / MessagesEn.php
index 8fa13c6..589144c 100644 (file)
@@ -42,7 +42,7 @@ $separatorTransformTable = null;
  * checkboxes. Extra settings in derived languages will automatically be
  * appended to the array of the fallback languages.
  */
-$extraUserToggles = array();
+$extraUserToggles = [];
 
 /**
  * URLs do not specify their encoding. UTF-8 is used by default, but if the
@@ -73,7 +73,7 @@ $linkPrefixExtension = false;
  * module rather than by the full wikitext parser. As a result, no other
  * parser features are available.
  */
-$namespaceNames = array(
+$namespaceNames = [
        NS_MEDIA            => 'Media',
        NS_SPECIAL          => 'Special',
        NS_MAIN             => '',
@@ -92,12 +92,12 @@ $namespaceNames = array(
        NS_HELP_TALK        => 'Help_talk',
        NS_CATEGORY         => 'Category',
        NS_CATEGORY_TALK    => 'Category_talk',
-);
+];
 
 /**
  * Array of namespace aliases, mapping from name to NS_xxx index
  */
-$namespaceAliases = array();
+$namespaceAliases = [];
 
 /**
  * Array of gender specific. namespace aliases.
@@ -109,7 +109,7 @@ $namespaceAliases = array();
  * );
  * @endcode
  */
-$namespaceGenderAliases = array();
+$namespaceGenderAliases = [];
 
 /**
  * A list of date format preference keys, which can be selected in user
@@ -120,13 +120,13 @@ $namespaceGenderAliases = array();
  * The special key "default" is an alias for either dmy or mdy depending on
  * $wgAmericanDates
  */
-$datePreferences = array(
+$datePreferences = [
        'default',
        'mdy',
        'dmy',
        'ymd',
        'ISO 8601',
-);
+];
 
 /**
  * The date format to use for generated dates in the user interface.
@@ -140,12 +140,12 @@ $defaultDateFormat = 'dmy or mdy';
  * Associative array mapping old numeric date formats, which may still be
  * stored in user preferences, to the new string formats.
  */
-$datePreferenceMigrationMap = array(
+$datePreferenceMigrationMap = [
        'default',
        'mdy',
        'dmy',
        'ymd'
-);
+];
 
 /**
  * These are formats for dates generated by MediaWiki (as opposed to the wikitext
@@ -155,7 +155,7 @@ $datePreferenceMigrationMap = array(
  * This array is automatically inherited by all subclasses. Individual keys can be
  * overridden.
  */
-$dateFormats = array(
+$dateFormats = [
        'mdy time' => 'H:i',
        'mdy date' => 'F j, Y',
        'mdy monthonly' => 'F Y',
@@ -179,16 +179,16 @@ $dateFormats = array(
        'ISO 8601 monthonly' => 'xnY-xnm',
        'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns',
        'ISO 8601 pretty' => 'xnm-xnd'
-);
+];
 
 /**
  * Default list of book sources
  */
-$bookstoreList = array(
+$bookstoreList = [
        'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN',
        'Barnes & Noble' => 'http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1',
        'Amazon.com' => 'http://www.amazon.com/gp/search/?field-isbn=$1'
-);
+];
 
 /**
  * Magic words
@@ -197,184 +197,191 @@ $bookstoreList = array(
  * IDs must be valid identifiers, they cannot contain hyphens.
  * CASE is 0 to match all case variants, 1 for case-sensitive
  *
- * Note to translators:
- *   Please include the English words as synonyms.  This allows people
- *   from other wikis to contribute more easily.
+ * Note to localisers:
+ *   - Include the English magic words as synonyms. This allows people from
+ *     other wikis that do not speak the language to contribute more easily.
+ *   - The first alias listed MUST be the preferred alias in that language.
+ *     Tools (like Visual Editor) are expected to use the first listed alias
+ *     when editing or creating new content.
+ *   - Order the other aliases so that common aliases occur before more rarely
+ *     used aliases. The aliases SHOULD be sorted by the following convention:
+ *     1. Local first, English last, then
+ *     2. Most common first, least common last.
  *
  * This array can be modified at runtime with the LanguageGetMagic hook
  */
-$magicWords = array(
+$magicWords = [
 #   ID                               CASE  SYNONYMS
-       'redirect'                => array( 0, '#REDIRECT' ),
-       'notoc'                   => array( 0, '__NOTOC__' ),
-       'nogallery'               => array( 0, '__NOGALLERY__' ),
-       'forcetoc'                => array( 0, '__FORCETOC__' ),
-       'toc'                     => array( 0, '__TOC__' ),
-       'noeditsection'           => array( 0, '__NOEDITSECTION__' ),
-       '!'                       => array( 1, '!' ),
-       'currentmonth'            => array( 1, 'CURRENTMONTH', 'CURRENTMONTH2' ),
-       'currentmonth1'           => array( 1, 'CURRENTMONTH1' ),
-       'currentmonthname'        => array( 1, 'CURRENTMONTHNAME' ),
-       'currentmonthnamegen'     => array( 1, 'CURRENTMONTHNAMEGEN' ),
-       'currentmonthabbrev'      => array( 1, 'CURRENTMONTHABBREV' ),
-       'currentday'              => array( 1, 'CURRENTDAY' ),
-       'currentday2'             => array( 1, 'CURRENTDAY2' ),
-       'currentdayname'          => array( 1, 'CURRENTDAYNAME' ),
-       'currentyear'             => array( 1, 'CURRENTYEAR' ),
-       'currenttime'             => array( 1, 'CURRENTTIME' ),
-       'currenthour'             => array( 1, 'CURRENTHOUR' ),
-       'localmonth'              => array( 1, 'LOCALMONTH', 'LOCALMONTH2' ),
-       'localmonth1'             => array( 1, 'LOCALMONTH1' ),
-       'localmonthname'          => array( 1, 'LOCALMONTHNAME' ),
-       'localmonthnamegen'       => array( 1, 'LOCALMONTHNAMEGEN' ),
-       'localmonthabbrev'        => array( 1, 'LOCALMONTHABBREV' ),
-       'localday'                => array( 1, 'LOCALDAY' ),
-       'localday2'               => array( 1, 'LOCALDAY2' ),
-       'localdayname'            => array( 1, 'LOCALDAYNAME' ),
-       'localyear'               => array( 1, 'LOCALYEAR' ),
-       'localtime'               => array( 1, 'LOCALTIME' ),
-       'localhour'               => array( 1, 'LOCALHOUR' ),
-       'numberofpages'           => array( 1, 'NUMBEROFPAGES' ),
-       'numberofarticles'        => array( 1, 'NUMBEROFARTICLES' ),
-       'numberoffiles'           => array( 1, 'NUMBEROFFILES' ),
-       'numberofusers'           => array( 1, 'NUMBEROFUSERS' ),
-       'numberofactiveusers'     => array( 1, 'NUMBEROFACTIVEUSERS' ),
-       'numberofedits'           => array( 1, 'NUMBEROFEDITS' ),
-       'pagename'                => array( 1, 'PAGENAME' ),
-       'pagenamee'               => array( 1, 'PAGENAMEE' ),
-       'namespace'               => array( 1, 'NAMESPACE' ),
-       'namespacee'              => array( 1, 'NAMESPACEE' ),
-       'namespacenumber'         => array( 1, 'NAMESPACENUMBER' ),
-       'talkspace'               => array( 1, 'TALKSPACE' ),
-       'talkspacee'              => array( 1, 'TALKSPACEE' ),
-       'subjectspace'            => array( 1, 'SUBJECTSPACE', 'ARTICLESPACE' ),
-       'subjectspacee'           => array( 1, 'SUBJECTSPACEE', 'ARTICLESPACEE' ),
-       'fullpagename'            => array( 1, 'FULLPAGENAME' ),
-       'fullpagenamee'           => array( 1, 'FULLPAGENAMEE' ),
-       'subpagename'             => array( 1, 'SUBPAGENAME' ),
-       'subpagenamee'            => array( 1, 'SUBPAGENAMEE' ),
-       'rootpagename'            => array( 1, 'ROOTPAGENAME' ),
-       'rootpagenamee'           => array( 1, 'ROOTPAGENAMEE' ),
-       'basepagename'            => array( 1, 'BASEPAGENAME' ),
-       'basepagenamee'           => array( 1, 'BASEPAGENAMEE' ),
-       'talkpagename'            => array( 1, 'TALKPAGENAME' ),
-       'talkpagenamee'           => array( 1, 'TALKPAGENAMEE' ),
-       'subjectpagename'         => array( 1, 'SUBJECTPAGENAME', 'ARTICLEPAGENAME' ),
-       'subjectpagenamee'        => array( 1, 'SUBJECTPAGENAMEE', 'ARTICLEPAGENAMEE' ),
-       'msg'                     => array( 0, 'MSG:' ),
-       'subst'                   => array( 0, 'SUBST:' ),
-       'safesubst'               => array( 0, 'SAFESUBST:' ),
-       'msgnw'                   => array( 0, 'MSGNW:' ),
-       'img_thumbnail'           => array( 1, 'thumbnail', 'thumb' ),
-       'img_manualthumb'         => array( 1, 'thumbnail=$1', 'thumb=$1' ),
-       'img_right'               => array( 1, 'right' ),
-       'img_left'                => array( 1, 'left' ),
-       'img_none'                => array( 1, 'none' ),
-       'img_width'               => array( 1, '$1px' ),
-       'img_center'              => array( 1, 'center', 'centre' ),
-       'img_framed'              => array( 1, 'framed', 'enframed', 'frame' ),
-       'img_frameless'           => array( 1, 'frameless' ),
-       'img_lang'                => array( 1, 'lang=$1' ),
-       'img_page'                => array( 1, 'page=$1', 'page $1' ),
-       'img_upright'             => array( 1, 'upright', 'upright=$1', 'upright $1' ),
-       'img_border'              => array( 1, 'border' ),
-       'img_baseline'            => array( 1, 'baseline' ),
-       'img_sub'                 => array( 1, 'sub' ),
-       'img_super'               => array( 1, 'super', 'sup' ),
-       'img_top'                 => array( 1, 'top' ),
-       'img_text_top'            => array( 1, 'text-top' ),
-       'img_middle'              => array( 1, 'middle' ),
-       'img_bottom'              => array( 1, 'bottom' ),
-       'img_text_bottom'         => array( 1, 'text-bottom' ),
-       'img_link'                => array( 1, 'link=$1' ),
-       'img_alt'                 => array( 1, 'alt=$1' ),
-       'img_class'               => array( 1, 'class=$1' ),
-       'int'                     => array( 0, 'INT:' ),
-       'sitename'                => array( 1, 'SITENAME' ),
-       'ns'                      => array( 0, 'NS:' ),
-       'nse'                     => array( 0, 'NSE:' ),
-       'localurl'                => array( 0, 'LOCALURL:' ),
-       'localurle'               => array( 0, 'LOCALURLE:' ),
-       'articlepath'             => array( 0, 'ARTICLEPATH' ),
-       'pageid'                  => array( 0, 'PAGEID' ),
-       'server'                  => array( 0, 'SERVER' ),
-       'servername'              => array( 0, 'SERVERNAME' ),
-       'scriptpath'              => array( 0, 'SCRIPTPATH' ),
-       'stylepath'               => array( 0, 'STYLEPATH' ),
-       'grammar'                 => array( 0, 'GRAMMAR:' ),
-       'gender'                  => array( 0, 'GENDER:' ),
-       'bidi'                    => array( 0, 'BIDI:' ),
-       'notitleconvert'          => array( 0, '__NOTITLECONVERT__', '__NOTC__' ),
-       'nocontentconvert'        => array( 0, '__NOCONTENTCONVERT__', '__NOCC__' ),
-       'currentweek'             => array( 1, 'CURRENTWEEK' ),
-       'currentdow'              => array( 1, 'CURRENTDOW' ),
-       'localweek'               => array( 1, 'LOCALWEEK' ),
-       'localdow'                => array( 1, 'LOCALDOW' ),
-       'revisionid'              => array( 1, 'REVISIONID' ),
-       'revisionday'             => array( 1, 'REVISIONDAY' ),
-       'revisionday2'            => array( 1, 'REVISIONDAY2' ),
-       'revisionmonth'           => array( 1, 'REVISIONMONTH' ),
-       'revisionmonth1'          => array( 1, 'REVISIONMONTH1' ),
-       'revisionyear'            => array( 1, 'REVISIONYEAR' ),
-       'revisiontimestamp'       => array( 1, 'REVISIONTIMESTAMP' ),
-       'revisionuser'            => array( 1, 'REVISIONUSER' ),
-       'revisionsize'            => array( 1, 'REVISIONSIZE' ),
-       'plural'                  => array( 0, 'PLURAL:' ),
-       'fullurl'                 => array( 0, 'FULLURL:' ),
-       'fullurle'                => array( 0, 'FULLURLE:' ),
-       'canonicalurl'            => array( 0, 'CANONICALURL:' ),
-       'canonicalurle'           => array( 0, 'CANONICALURLE:' ),
-       'lcfirst'                 => array( 0, 'LCFIRST:' ),
-       'ucfirst'                 => array( 0, 'UCFIRST:' ),
-       'lc'                      => array( 0, 'LC:' ),
-       'uc'                      => array( 0, 'UC:' ),
-       'raw'                     => array( 0, 'RAW:' ),
-       'displaytitle'            => array( 1, 'DISPLAYTITLE' ),
-       'rawsuffix'               => array( 1, 'R' ),
-       'nocommafysuffix'         => array( 0, 'NOSEP' ),
-       'newsectionlink'          => array( 1, '__NEWSECTIONLINK__' ),
-       'nonewsectionlink'        => array( 1, '__NONEWSECTIONLINK__' ),
-       'currentversion'          => array( 1, 'CURRENTVERSION' ),
-       'urlencode'               => array( 0, 'URLENCODE:' ),
-       'anchorencode'            => array( 0, 'ANCHORENCODE' ),
-       'currenttimestamp'        => array( 1, 'CURRENTTIMESTAMP' ),
-       'localtimestamp'          => array( 1, 'LOCALTIMESTAMP' ),
-       'directionmark'           => array( 1, 'DIRECTIONMARK', 'DIRMARK' ),
-       'language'                => array( 0, '#LANGUAGE:' ),
-       'contentlanguage'         => array( 1, 'CONTENTLANGUAGE', 'CONTENTLANG' ),
-       'pagesinnamespace'        => array( 1, 'PAGESINNAMESPACE:', 'PAGESINNS:' ),
-       'numberofadmins'          => array( 1, 'NUMBEROFADMINS' ),
-       'formatnum'               => array( 0, 'FORMATNUM' ),
-       'padleft'                 => array( 0, 'PADLEFT' ),
-       'padright'                => array( 0, 'PADRIGHT' ),
-       'special'                 => array( 0, 'special' ),
-       'speciale'                => array( 0, 'speciale' ),
-       'defaultsort'             => array( 1, 'DEFAULTSORT:', 'DEFAULTSORTKEY:', 'DEFAULTCATEGORYSORT:' ),
-       'filepath'                => array( 0, 'FILEPATH:' ),
-       'tag'                     => array( 0, 'tag' ),
-       'hiddencat'               => array( 1, '__HIDDENCAT__' ),
-       'pagesincategory'         => array( 1, 'PAGESINCATEGORY', 'PAGESINCAT' ),
-       'pagesize'                => array( 1, 'PAGESIZE' ),
-       'index'                   => array( 1, '__INDEX__' ),
-       'noindex'                 => array( 1, '__NOINDEX__' ),
-       'numberingroup'           => array( 1, 'NUMBERINGROUP', 'NUMINGROUP' ),
-       'staticredirect'          => array( 1, '__STATICREDIRECT__' ),
-       'protectionlevel'         => array( 1, 'PROTECTIONLEVEL' ),
-       'protectionexpiry'        => array( 1, 'PROTECTIONEXPIRY' ),
-       'cascadingsources'        => array( 1, 'CASCADINGSOURCES' ),
-       'formatdate'              => array( 0, 'formatdate', 'dateformat' ),
-       'url_path'                => array( 0, 'PATH' ),
-       'url_wiki'                => array( 0, 'WIKI' ),
-       'url_query'               => array( 0, 'QUERY' ),
-       'defaultsort_noerror'     => array( 0, 'noerror' ),
-       'defaultsort_noreplace'   => array( 0, 'noreplace' ),
-       'displaytitle_noerror'    => array( 0, 'noerror' ),
-       'displaytitle_noreplace'  => array( 0, 'noreplace' ),
-       'pagesincategory_all'     => array( 0, 'all' ),
-       'pagesincategory_pages'   => array( 0, 'pages' ),
-       'pagesincategory_subcats' => array( 0, 'subcats' ),
-       'pagesincategory_files'   => array( 0, 'files' ),
-);
+       'redirect'                => [ 0, '#REDIRECT' ],
+       'notoc'                   => [ 0, '__NOTOC__' ],
+       'nogallery'               => [ 0, '__NOGALLERY__' ],
+       'forcetoc'                => [ 0, '__FORCETOC__' ],
+       'toc'                     => [ 0, '__TOC__' ],
+       'noeditsection'           => [ 0, '__NOEDITSECTION__' ],
+       '!'                       => [ 1, '!' ],
+       'currentmonth'            => [ 1, 'CURRENTMONTH', 'CURRENTMONTH2' ],
+       'currentmonth1'           => [ 1, 'CURRENTMONTH1' ],
+       'currentmonthname'        => [ 1, 'CURRENTMONTHNAME' ],
+       'currentmonthnamegen'     => [ 1, 'CURRENTMONTHNAMEGEN' ],
+       'currentmonthabbrev'      => [ 1, 'CURRENTMONTHABBREV' ],
+       'currentday'              => [ 1, 'CURRENTDAY' ],
+       'currentday2'             => [ 1, 'CURRENTDAY2' ],
+       'currentdayname'          => [ 1, 'CURRENTDAYNAME' ],
+       'currentyear'             => [ 1, 'CURRENTYEAR' ],
+       'currenttime'             => [ 1, 'CURRENTTIME' ],
+       'currenthour'             => [ 1, 'CURRENTHOUR' ],
+       'localmonth'              => [ 1, 'LOCALMONTH', 'LOCALMONTH2' ],
+       'localmonth1'             => [ 1, 'LOCALMONTH1' ],
+       'localmonthname'          => [ 1, 'LOCALMONTHNAME' ],
+       'localmonthnamegen'       => [ 1, 'LOCALMONTHNAMEGEN' ],
+       'localmonthabbrev'        => [ 1, 'LOCALMONTHABBREV' ],
+       'localday'                => [ 1, 'LOCALDAY' ],
+       'localday2'               => [ 1, 'LOCALDAY2' ],
+       'localdayname'            => [ 1, 'LOCALDAYNAME' ],
+       'localyear'               => [ 1, 'LOCALYEAR' ],
+       'localtime'               => [ 1, 'LOCALTIME' ],
+       'localhour'               => [ 1, 'LOCALHOUR' ],
+       'numberofpages'           => [ 1, 'NUMBEROFPAGES' ],
+       'numberofarticles'        => [ 1, 'NUMBEROFARTICLES' ],
+       'numberoffiles'           => [ 1, 'NUMBEROFFILES' ],
+       'numberofusers'           => [ 1, 'NUMBEROFUSERS' ],
+       'numberofactiveusers'     => [ 1, 'NUMBEROFACTIVEUSERS' ],
+       'numberofedits'           => [ 1, 'NUMBEROFEDITS' ],
+       'pagename'                => [ 1, 'PAGENAME' ],
+       'pagenamee'               => [ 1, 'PAGENAMEE' ],
+       'namespace'               => [ 1, 'NAMESPACE' ],
+       'namespacee'              => [ 1, 'NAMESPACEE' ],
+       'namespacenumber'         => [ 1, 'NAMESPACENUMBER' ],
+       'talkspace'               => [ 1, 'TALKSPACE' ],
+       'talkspacee'              => [ 1, 'TALKSPACEE' ],
+       'subjectspace'            => [ 1, 'SUBJECTSPACE', 'ARTICLESPACE' ],
+       'subjectspacee'           => [ 1, 'SUBJECTSPACEE', 'ARTICLESPACEE' ],
+       'fullpagename'            => [ 1, 'FULLPAGENAME' ],
+       'fullpagenamee'           => [ 1, 'FULLPAGENAMEE' ],
+       'subpagename'             => [ 1, 'SUBPAGENAME' ],
+       'subpagenamee'            => [ 1, 'SUBPAGENAMEE' ],
+       'rootpagename'            => [ 1, 'ROOTPAGENAME' ],
+       'rootpagenamee'           => [ 1, 'ROOTPAGENAMEE' ],
+       'basepagename'            => [ 1, 'BASEPAGENAME' ],
+       'basepagenamee'           => [ 1, 'BASEPAGENAMEE' ],
+       'talkpagename'            => [ 1, 'TALKPAGENAME' ],
+       'talkpagenamee'           => [ 1, 'TALKPAGENAMEE' ],
+       'subjectpagename'         => [ 1, 'SUBJECTPAGENAME', 'ARTICLEPAGENAME' ],
+       'subjectpagenamee'        => [ 1, 'SUBJECTPAGENAMEE', 'ARTICLEPAGENAMEE' ],
+       'msg'                     => [ 0, 'MSG:' ],
+       'subst'                   => [ 0, 'SUBST:' ],
+       'safesubst'               => [ 0, 'SAFESUBST:' ],
+       'msgnw'                   => [ 0, 'MSGNW:' ],
+       'img_thumbnail'           => [ 1, 'thumb', 'thumbnail' ],
+       'img_manualthumb'         => [ 1, 'thumbnail=$1', 'thumb=$1' ],
+       'img_right'               => [ 1, 'right' ],
+       'img_left'                => [ 1, 'left' ],
+       'img_none'                => [ 1, 'none' ],
+       'img_width'               => [ 1, '$1px' ],
+       'img_center'              => [ 1, 'center', 'centre' ],
+       'img_framed'              => [ 1, 'frame', 'framed', 'enframed' ],
+       'img_frameless'           => [ 1, 'frameless' ],
+       'img_lang'                => [ 1, 'lang=$1' ],
+       'img_page'                => [ 1, 'page=$1', 'page $1' ],
+       'img_upright'             => [ 1, 'upright', 'upright=$1', 'upright $1' ],
+       'img_border'              => [ 1, 'border' ],
+       'img_baseline'            => [ 1, 'baseline' ],
+       'img_sub'                 => [ 1, 'sub' ],
+       'img_super'               => [ 1, 'super', 'sup' ],
+       'img_top'                 => [ 1, 'top' ],
+       'img_text_top'            => [ 1, 'text-top' ],
+       'img_middle'              => [ 1, 'middle' ],
+       'img_bottom'              => [ 1, 'bottom' ],
+       'img_text_bottom'         => [ 1, 'text-bottom' ],
+       'img_link'                => [ 1, 'link=$1' ],
+       'img_alt'                 => [ 1, 'alt=$1' ],
+       'img_class'               => [ 1, 'class=$1' ],
+       'int'                     => [ 0, 'INT:' ],
+       'sitename'                => [ 1, 'SITENAME' ],
+       'ns'                      => [ 0, 'NS:' ],
+       'nse'                     => [ 0, 'NSE:' ],
+       'localurl'                => [ 0, 'LOCALURL:' ],
+       'localurle'               => [ 0, 'LOCALURLE:' ],
+       'articlepath'             => [ 0, 'ARTICLEPATH' ],
+       'pageid'                  => [ 0, 'PAGEID' ],
+       'server'                  => [ 0, 'SERVER' ],
+       'servername'              => [ 0, 'SERVERNAME' ],
+       'scriptpath'              => [ 0, 'SCRIPTPATH' ],
+       'stylepath'               => [ 0, 'STYLEPATH' ],
+       'grammar'                 => [ 0, 'GRAMMAR:' ],
+       'gender'                  => [ 0, 'GENDER:' ],
+       'bidi'                    => [ 0, 'BIDI:' ],
+       'notitleconvert'          => [ 0, '__NOTITLECONVERT__', '__NOTC__' ],
+       'nocontentconvert'        => [ 0, '__NOCONTENTCONVERT__', '__NOCC__' ],
+       'currentweek'             => [ 1, 'CURRENTWEEK' ],
+       'currentdow'              => [ 1, 'CURRENTDOW' ],
+       'localweek'               => [ 1, 'LOCALWEEK' ],
+       'localdow'                => [ 1, 'LOCALDOW' ],
+       'revisionid'              => [ 1, 'REVISIONID' ],
+       'revisionday'             => [ 1, 'REVISIONDAY' ],
+       'revisionday2'            => [ 1, 'REVISIONDAY2' ],
+       'revisionmonth'           => [ 1, 'REVISIONMONTH' ],
+       'revisionmonth1'          => [ 1, 'REVISIONMONTH1' ],
+       'revisionyear'            => [ 1, 'REVISIONYEAR' ],
+       'revisiontimestamp'       => [ 1, 'REVISIONTIMESTAMP' ],
+       'revisionuser'            => [ 1, 'REVISIONUSER' ],
+       'revisionsize'            => [ 1, 'REVISIONSIZE' ],
+       'plural'                  => [ 0, 'PLURAL:' ],
+       'fullurl'                 => [ 0, 'FULLURL:' ],
+       'fullurle'                => [ 0, 'FULLURLE:' ],
+       'canonicalurl'            => [ 0, 'CANONICALURL:' ],
+       'canonicalurle'           => [ 0, 'CANONICALURLE:' ],
+       'lcfirst'                 => [ 0, 'LCFIRST:' ],
+       'ucfirst'                 => [ 0, 'UCFIRST:' ],
+       'lc'                      => [ 0, 'LC:' ],
+       'uc'                      => [ 0, 'UC:' ],
+       'raw'                     => [ 0, 'RAW:' ],
+       'displaytitle'            => [ 1, 'DISPLAYTITLE' ],
+       'rawsuffix'               => [ 1, 'R' ],
+       'nocommafysuffix'         => [ 0, 'NOSEP' ],
+       'newsectionlink'          => [ 1, '__NEWSECTIONLINK__' ],
+       'nonewsectionlink'        => [ 1, '__NONEWSECTIONLINK__' ],
+       'currentversion'          => [ 1, 'CURRENTVERSION' ],
+       'urlencode'               => [ 0, 'URLENCODE:' ],
+       'anchorencode'            => [ 0, 'ANCHORENCODE' ],
+       'currenttimestamp'        => [ 1, 'CURRENTTIMESTAMP' ],
+       'localtimestamp'          => [ 1, 'LOCALTIMESTAMP' ],
+       'directionmark'           => [ 1, 'DIRECTIONMARK', 'DIRMARK' ],
+       'language'                => [ 0, '#LANGUAGE:' ],
+       'contentlanguage'         => [ 1, 'CONTENTLANGUAGE', 'CONTENTLANG' ],
+       'pagesinnamespace'        => [ 1, 'PAGESINNAMESPACE:', 'PAGESINNS:' ],
+       'numberofadmins'          => [ 1, 'NUMBEROFADMINS' ],
+       'formatnum'               => [ 0, 'FORMATNUM' ],
+       'padleft'                 => [ 0, 'PADLEFT' ],
+       'padright'                => [ 0, 'PADRIGHT' ],
+       'special'                 => [ 0, 'special' ],
+       'speciale'                => [ 0, 'speciale' ],
+       'defaultsort'             => [ 1, 'DEFAULTSORT:', 'DEFAULTSORTKEY:', 'DEFAULTCATEGORYSORT:' ],
+       'filepath'                => [ 0, 'FILEPATH:' ],
+       'tag'                     => [ 0, 'tag' ],
+       'hiddencat'               => [ 1, '__HIDDENCAT__' ],
+       'pagesincategory'         => [ 1, 'PAGESINCATEGORY', 'PAGESINCAT' ],
+       'pagesize'                => [ 1, 'PAGESIZE' ],
+       'index'                   => [ 1, '__INDEX__' ],
+       'noindex'                 => [ 1, '__NOINDEX__' ],
+       'numberingroup'           => [ 1, 'NUMBERINGROUP', 'NUMINGROUP' ],
+       'staticredirect'          => [ 1, '__STATICREDIRECT__' ],
+       'protectionlevel'         => [ 1, 'PROTECTIONLEVEL' ],
+       'protectionexpiry'        => [ 1, 'PROTECTIONEXPIRY' ],
+       'cascadingsources'        => [ 1, 'CASCADINGSOURCES' ],
+       'formatdate'              => [ 0, 'formatdate', 'dateformat' ],
+       'url_path'                => [ 0, 'PATH' ],
+       'url_wiki'                => [ 0, 'WIKI' ],
+       'url_query'               => [ 0, 'QUERY' ],
+       'defaultsort_noerror'     => [ 0, 'noerror' ],
+       'defaultsort_noreplace'   => [ 0, 'noreplace' ],
+       'displaytitle_noerror'    => [ 0, 'noerror' ],
+       'displaytitle_noreplace'  => [ 0, 'noreplace' ],
+       'pagesincategory_all'     => [ 0, 'all' ],
+       'pagesincategory_pages'   => [ 0, 'pages' ],
+       'pagesincategory_subcats' => [ 0, 'subcats' ],
+       'pagesincategory_files'   => [ 0, 'files' ],
+];
 
 /**
  * Alternate names of special pages. All names are case-insensitive. The first
@@ -384,122 +391,128 @@ $magicWords = array(
  * This array may be altered at runtime using the LanguageGetSpecialPageAliases
  * hook.
  */
-$specialPageAliases = array(
-       'Activeusers'               => array( 'ActiveUsers' ),
-       'Allmessages'               => array( 'AllMessages' ),
-       'AllMyUploads'              => array( 'AllMyUploads', 'AllMyFiles' ),
-       'Allpages'                  => array( 'AllPages' ),
-       'ApiHelp'                   => array( 'ApiHelp' ),
-       'Ancientpages'              => array( 'AncientPages' ),
-       'Badtitle'                  => array( 'Badtitle' ),
-       'Blankpage'                 => array( 'BlankPage' ),
-       'Block'                     => array( 'Block', 'BlockIP', 'BlockUser' ),
-       'Booksources'               => array( 'BookSources' ),
-       'BrokenRedirects'           => array( 'BrokenRedirects' ),
-       'Categories'                => array( 'Categories' ),
-       'ChangeContentModel'        => array( 'ChangeContentModel' ),
-       'ChangeEmail'               => array( 'ChangeEmail' ),
-       'ChangePassword'            => array( 'ChangePassword', 'ResetPass', 'ResetPassword' ),
-       'ComparePages'              => array( 'ComparePages' ),
-       'Confirmemail'              => array( 'ConfirmEmail' ),
-       'Contributions'             => array( 'Contributions', 'Contribs' ),
-       'CreateAccount'             => array( 'CreateAccount' ),
-       'Deadendpages'              => array( 'DeadendPages' ),
-       'DeletedContributions'      => array( 'DeletedContributions' ),
-       'Diff'                      => array( 'Diff' ),
-       'DoubleRedirects'           => array( 'DoubleRedirects' ),
-       'EditTags'                  => array( 'EditTags' ),
-       'EditWatchlist'             => array( 'EditWatchlist' ),
-       'Emailuser'                 => array( 'EmailUser', 'Email' ),
-       'ExpandTemplates'           => array( 'ExpandTemplates' ),
-       'Export'                    => array( 'Export' ),
-       'Fewestrevisions'           => array( 'FewestRevisions' ),
-       'FileDuplicateSearch'       => array( 'FileDuplicateSearch' ),
-       'Filepath'                  => array( 'FilePath' ),
-       'Import'                    => array( 'Import' ),
-       'Invalidateemail'           => array( 'InvalidateEmail' ),
-       'JavaScriptTest'            => array( 'JavaScriptTest' ),
-       'BlockList'                 => array( 'BlockList', 'ListBlocks', 'IPBlockList' ),
-       'LinkSearch'                => array( 'LinkSearch' ),
-       'Listadmins'                => array( 'ListAdmins' ),
-       'Listbots'                  => array( 'ListBots' ),
-       'Listfiles'                 => array( 'ListFiles', 'FileList', 'ImageList' ),
-       'Listgrouprights'           => array( 'ListGroupRights', 'UserGroupRights' ),
-       'Listgrants'                => array( 'ListGrants' ),
-       'Listredirects'             => array( 'ListRedirects' ),
-       'ListDuplicatedFiles'       => array( 'ListDuplicatedFiles', 'ListFileDuplicates' ),
-       'Listusers'                 => array( 'ListUsers', 'UserList' ),
-       'Lockdb'                    => array( 'LockDB' ),
-       'Log'                       => array( 'Log', 'Logs' ),
-       'Lonelypages'               => array( 'LonelyPages', 'OrphanedPages' ),
-       'Longpages'                 => array( 'LongPages' ),
-       'MediaStatistics'           => array( 'MediaStatistics' ),
-       'MergeHistory'              => array( 'MergeHistory' ),
-       'MIMEsearch'                => array( 'MIMESearch' ),
-       'Mostcategories'            => array( 'MostCategories' ),
-       'Mostimages'                => array( 'MostLinkedFiles', 'MostFiles', 'MostImages' ),
-       'Mostinterwikis'            => array( 'MostInterwikis' ),
-       'Mostlinked'                => array( 'MostLinkedPages', 'MostLinked' ),
-       'Mostlinkedcategories'      => array( 'MostLinkedCategories', 'MostUsedCategories' ),
-       'Mostlinkedtemplates'       => array( 'MostTranscludedPages', 'MostLinkedTemplates', 'MostUsedTemplates' ),
-       'Mostrevisions'             => array( 'MostRevisions' ),
-       'Movepage'                  => array( 'MovePage' ),
-       'Mycontributions'           => array( 'MyContributions' ),
-       'MyLanguage'                => array( 'MyLanguage' ),
-       'Mypage'                    => array( 'MyPage' ),
-       'Mytalk'                    => array( 'MyTalk' ),
-       'Myuploads'                 => array( 'MyUploads', 'MyFiles' ),
-       'Newimages'                 => array( 'NewFiles', 'NewImages' ),
-       'Newpages'                  => array( 'NewPages' ),
-       'PagesWithProp'             => array( 'PagesWithProp', 'Pageswithprop', 'PagesByProp', 'Pagesbyprop' ),
-       'PageLanguage'              => array( 'PageLanguage' ),
-       'PasswordReset'             => array( 'PasswordReset' ),
-       'PermanentLink'             => array( 'PermanentLink', 'PermaLink' ),
-       'Preferences'               => array( 'Preferences' ),
-       'Prefixindex'               => array( 'PrefixIndex' ),
-       'Protectedpages'            => array( 'ProtectedPages' ),
-       'Protectedtitles'           => array( 'ProtectedTitles' ),
-       'Randompage'                => array( 'Random', 'RandomPage' ),
-       'RandomInCategory'          => array( 'RandomInCategory' ),
-       'Randomredirect'            => array( 'RandomRedirect' ),
-       'Randomrootpage'            => array( 'RandomRootpage' ),
-       'Recentchanges'             => array( 'RecentChanges' ),
-       'Recentchangeslinked'       => array( 'RecentChangesLinked', 'RelatedChanges' ),
-       'Redirect'                  => array( 'Redirect' ),
-       'ResetTokens'               => array( 'ResetTokens' ),
-       'Revisiondelete'            => array( 'RevisionDelete' ),
-       'RunJobs'                   => array( 'RunJobs' ),
-       'Search'                    => array( 'Search' ),
-       'Shortpages'                => array( 'ShortPages' ),
-       'Specialpages'              => array( 'SpecialPages' ),
-       'Statistics'                => array( 'Statistics' ),
-       'Tags'                      => array( 'Tags' ),
-       'TrackingCategories'        => array( 'TrackingCategories' ),
-       'Unblock'                   => array( 'Unblock' ),
-       'Uncategorizedcategories'   => array( 'UncategorizedCategories' ),
-       'Uncategorizedimages'       => array( 'UncategorizedFiles', 'UncategorizedImages' ),
-       'Uncategorizedpages'        => array( 'UncategorizedPages' ),
-       'Uncategorizedtemplates'    => array( 'UncategorizedTemplates' ),
-       'Undelete'                  => array( 'Undelete' ),
-       'Unlockdb'                  => array( 'UnlockDB' ),
-       'Unusedcategories'          => array( 'UnusedCategories' ),
-       'Unusedimages'              => array( 'UnusedFiles', 'UnusedImages' ),
-       'Unusedtemplates'           => array( 'UnusedTemplates' ),
-       'Unwatchedpages'            => array( 'UnwatchedPages' ),
-       'Upload'                    => array( 'Upload' ),
-       'UploadStash'               => array( 'UploadStash' ),
-       'Userlogin'                 => array( 'UserLogin', 'Login' ),
-       'Userlogout'                => array( 'UserLogout', 'Logout' ),
-       'Userrights'                => array( 'UserRights', 'MakeSysop', 'MakeBot' ),
-       'Version'                   => array( 'Version' ),
-       'Wantedcategories'          => array( 'WantedCategories' ),
-       'Wantedfiles'               => array( 'WantedFiles' ),
-       'Wantedpages'               => array( 'WantedPages', 'BrokenLinks' ),
-       'Wantedtemplates'           => array( 'WantedTemplates' ),
-       'Watchlist'                 => array( 'Watchlist' ),
-       'Whatlinkshere'             => array( 'WhatLinksHere' ),
-       'Withoutinterwiki'          => array( 'WithoutInterwiki' ),
-);
+$specialPageAliases = [
+       'Activeusers'               => [ 'ActiveUsers' ],
+       'Allmessages'               => [ 'AllMessages' ],
+       'AllMyUploads'              => [ 'AllMyUploads', 'AllMyFiles' ],
+       'Allpages'                  => [ 'AllPages' ],
+       'ApiHelp'                   => [ 'ApiHelp' ],
+       'ApiSandbox'                => [ 'ApiSandbox' ],
+       'Ancientpages'              => [ 'AncientPages' ],
+       'Badtitle'                  => [ 'Badtitle' ],
+       'Blankpage'                 => [ 'BlankPage' ],
+       'Block'                     => [ 'Block', 'BlockIP', 'BlockUser' ],
+       'Booksources'               => [ 'BookSources' ],
+       'BotPasswords'              => [ 'BotPasswords' ],
+       'BrokenRedirects'           => [ 'BrokenRedirects' ],
+       'Categories'                => [ 'Categories' ],
+       'ChangeContentModel'        => [ 'ChangeContentModel' ],
+       'ChangeCredentials'         => [ 'ChangeCredentials' ],
+       'ChangeEmail'               => [ 'ChangeEmail' ],
+       'ChangePassword'            => [ 'ChangePassword', 'ResetPass', 'ResetPassword' ],
+       'ComparePages'              => [ 'ComparePages' ],
+       'Confirmemail'              => [ 'ConfirmEmail' ],
+       'Contributions'             => [ 'Contributions', 'Contribs' ],
+       'CreateAccount'             => [ 'CreateAccount' ],
+       'Deadendpages'              => [ 'DeadendPages' ],
+       'DeletedContributions'      => [ 'DeletedContributions' ],
+       'Diff'                      => [ 'Diff' ],
+       'DoubleRedirects'           => [ 'DoubleRedirects' ],
+       'EditTags'                  => [ 'EditTags' ],
+       'EditWatchlist'             => [ 'EditWatchlist' ],
+       'Emailuser'                 => [ 'EmailUser', 'Email' ],
+       'ExpandTemplates'           => [ 'ExpandTemplates' ],
+       'Export'                    => [ 'Export' ],
+       'Fewestrevisions'           => [ 'FewestRevisions' ],
+       'FileDuplicateSearch'       => [ 'FileDuplicateSearch' ],
+       'Filepath'                  => [ 'FilePath' ],
+       'Import'                    => [ 'Import' ],
+       'Invalidateemail'           => [ 'InvalidateEmail' ],
+       'JavaScriptTest'            => [ 'JavaScriptTest' ],
+       'BlockList'                 => [ 'BlockList', 'ListBlocks', 'IPBlockList' ],
+       'LinkSearch'                => [ 'LinkSearch' ],
+       'LinkAccounts'              => [ 'LinkAccounts' ],
+       'Listadmins'                => [ 'ListAdmins' ],
+       'Listbots'                  => [ 'ListBots' ],
+       'Listfiles'                 => [ 'ListFiles', 'FileList', 'ImageList' ],
+       'Listgrouprights'           => [ 'ListGroupRights', 'UserGroupRights' ],
+       'Listgrants'                => [ 'ListGrants' ],
+       'Listredirects'             => [ 'ListRedirects' ],
+       'ListDuplicatedFiles'       => [ 'ListDuplicatedFiles', 'ListFileDuplicates' ],
+       'Listusers'                 => [ 'ListUsers', 'UserList' ],
+       'Lockdb'                    => [ 'LockDB' ],
+       'Log'                       => [ 'Log', 'Logs' ],
+       'Lonelypages'               => [ 'LonelyPages', 'OrphanedPages' ],
+       'Longpages'                 => [ 'LongPages' ],
+       'MediaStatistics'           => [ 'MediaStatistics' ],
+       'MergeHistory'              => [ 'MergeHistory' ],
+       'MIMEsearch'                => [ 'MIMESearch' ],
+       'Mostcategories'            => [ 'MostCategories' ],
+       'Mostimages'                => [ 'MostLinkedFiles', 'MostFiles', 'MostImages' ],
+       'Mostinterwikis'            => [ 'MostInterwikis' ],
+       'Mostlinked'                => [ 'MostLinkedPages', 'MostLinked' ],
+       'Mostlinkedcategories'      => [ 'MostLinkedCategories', 'MostUsedCategories' ],
+       'Mostlinkedtemplates'       => [ 'MostTranscludedPages', 'MostLinkedTemplates', 'MostUsedTemplates' ],
+       'Mostrevisions'             => [ 'MostRevisions' ],
+       'Movepage'                  => [ 'MovePage' ],
+       'Mycontributions'           => [ 'MyContributions' ],
+       'MyLanguage'                => [ 'MyLanguage' ],
+       'Mypage'                    => [ 'MyPage' ],
+       'Mytalk'                    => [ 'MyTalk' ],
+       'Myuploads'                 => [ 'MyUploads', 'MyFiles' ],
+       'Newimages'                 => [ 'NewFiles', 'NewImages' ],
+       'Newpages'                  => [ 'NewPages' ],
+       'PagesWithProp'             => [ 'PagesWithProp', 'Pageswithprop', 'PagesByProp', 'Pagesbyprop' ],
+       'PageLanguage'              => [ 'PageLanguage' ],
+       'PasswordReset'             => [ 'PasswordReset' ],
+       'PermanentLink'             => [ 'PermanentLink', 'PermaLink' ],
+       'Preferences'               => [ 'Preferences' ],
+       'Prefixindex'               => [ 'PrefixIndex' ],
+       'Protectedpages'            => [ 'ProtectedPages' ],
+       'Protectedtitles'           => [ 'ProtectedTitles' ],
+       'Randompage'                => [ 'Random', 'RandomPage' ],
+       'RandomInCategory'          => [ 'RandomInCategory' ],
+       'Randomredirect'            => [ 'RandomRedirect' ],
+       'Randomrootpage'            => [ 'RandomRootpage' ],
+       'Recentchanges'             => [ 'RecentChanges' ],
+       'Recentchangeslinked'       => [ 'RecentChangesLinked', 'RelatedChanges' ],
+       'Redirect'                  => [ 'Redirect' ],
+       'RemoveCredentials'         => [ 'RemoveCredentials' ],
+       'ResetTokens'               => [ 'ResetTokens' ],
+       'Revisiondelete'            => [ 'RevisionDelete' ],
+       'RunJobs'                   => [ 'RunJobs' ],
+       'Search'                    => [ 'Search' ],
+       'Shortpages'                => [ 'ShortPages' ],
+       'Specialpages'              => [ 'SpecialPages' ],
+       'Statistics'                => [ 'Statistics' ],
+       'Tags'                      => [ 'Tags' ],
+       'TrackingCategories'        => [ 'TrackingCategories' ],
+       'Unblock'                   => [ 'Unblock' ],
+       'Uncategorizedcategories'   => [ 'UncategorizedCategories' ],
+       'Uncategorizedimages'       => [ 'UncategorizedFiles', 'UncategorizedImages' ],
+       'Uncategorizedpages'        => [ 'UncategorizedPages' ],
+       'Uncategorizedtemplates'    => [ 'UncategorizedTemplates' ],
+       'Undelete'                  => [ 'Undelete' ],
+       'UnlinkAccounts'            => [ 'UnlinkAccounts' ],
+       'Unlockdb'                  => [ 'UnlockDB' ],
+       'Unusedcategories'          => [ 'UnusedCategories' ],
+       'Unusedimages'              => [ 'UnusedFiles', 'UnusedImages' ],
+       'Unusedtemplates'           => [ 'UnusedTemplates' ],
+       'Unwatchedpages'            => [ 'UnwatchedPages' ],
+       'Upload'                    => [ 'Upload' ],
+       'UploadStash'               => [ 'UploadStash' ],
+       'Userlogin'                 => [ 'UserLogin', 'Login' ],
+       'Userlogout'                => [ 'UserLogout', 'Logout' ],
+       'Userrights'                => [ 'UserRights', 'MakeSysop', 'MakeBot' ],
+       'Version'                   => [ 'Version' ],
+       'Wantedcategories'          => [ 'WantedCategories' ],
+       'Wantedfiles'               => [ 'WantedFiles' ],
+       'Wantedpages'               => [ 'WantedPages', 'BrokenLinks' ],
+       'Wantedtemplates'           => [ 'WantedTemplates' ],
+       'Watchlist'                 => [ 'Watchlist' ],
+       'Whatlinkshere'             => [ 'WhatLinksHere' ],
+       'Withoutinterwiki'          => [ 'WithoutInterwiki' ],
+];
 
 /**
  * Regular expression matching the "link trail", e.g. "ed" in [[Toast]]ed, as
@@ -517,7 +530,7 @@ $linkPrefixCharset = 'a-zA-Z\\x{80}-\\x{10ffff}';
  * List of filenames for some ui images that can be overridden per language
  * basis if needed.
  */
-$imageFiles = array(
+$imageFiles = [
        'button-bold'     => 'en/button_bold.png',
        'button-italic'   => 'en/button_italic.png',
        'button-link'     => 'en/button_link.png',
@@ -528,13 +541,13 @@ $imageFiles = array(
        'button-nowiki'   => 'en/button_nowiki.png',
        'button-sig'      => 'en/button_sig.png',
        'button-hr'       => 'en/button_hr.png',
-);
+];
 
 /**
  * A list of messages to preload for each request.
  * Here we add messages that are needed for a typical anonymous parser cache hit.
  */
-$preloadedMessages = array(
+$preloadedMessages = [
        'aboutpage',
        'aboutsite',
        'accesskey-ca-edit',
@@ -646,4 +659,4 @@ $preloadedMessages = array(
        'views',
        'whatlinkshere',
        'word-separator',
-);
+];