This message is shown when no title matches the searchterm and when the user is not allowed to create pages either.
The message is empty be default and balances r61555 from bug 19600.
See also the related bug 20976
which causes Vector to render the variants drop-down menu with a label
showing the current variant name. This is off by default, pending further
research into its user experience implications.
+* (bug 20976) "searchmenu-new-nocreate" message now displayed when when there
+ is no title match in search and the user has no rights to create pages.
=== Bug fixes in 1.17 ===
* (bug 17560) Half-broken deletion moved image files to deletion archive
$messageName = 'searchmenu-exists';
} elseif( $t->userCan( 'create' ) ) {
$messageName = 'searchmenu-new';
+ } else {
+ $messageName = 'searchmenu-new-nocreate';
}
}
if( $messageName ) {
'searchmenu-legend' => 'Search options',
'searchmenu-exists' => "'''There is a page named \"[[:\$1]]\" on this wiki'''",
'searchmenu-new' => "'''Create the page \"[[:\$1]]\" on this wiki!'''",
+'searchmenu-new-nocreate' => '', # do not translate or duplicate this message to other languages
'searchhelp-url' => 'Help:Contents',
'searchmenu-prefix' => '[[Special:PrefixIndex/$1|Browse pages with this prefix]]',
'searchmenu-help' => '[[{{MediaWiki:Searchhelp-url}}|{{int:help}}]]?', # do not translate or duplicate this message to other languages
'searchmenu-legend' => '{{Identical|Search options}}',
'searchmenu-exists' => 'An option shown in a menu beside search form offering a link to the existing page having the specified title (when using the default MediaWiki search engine).',
'searchmenu-new' => 'An option shown in a menu beside search form offering a red link to the not yet existing page having the specified title (when using the default MediaWiki search engine).',
+'searchmenu-new-nocreate' => 'An option shown in a menu beside search form when users are not allowed to create new pages (when using the default MediaWiki search engine).',
'searchhelp-url' => '{{Identical|HelpContent}}
Description: The URL of the search help page.
{{doc-important|Do not change "Help:" part.}}',
'searchmenu-legend',
'searchmenu-exists',
'searchmenu-new',
+ 'searchmenu-new-nocreate',
'searchhelp-url',
'searchmenu-prefix',
'searchmenu-help',