Manual:$wgNamespacesToBeSearchedHelp/zh

Category:MediaWiki configuration settings/zh#NamespacesToBeSearchedHelpCategory:MediaWiki configuration settings introduced in version 1.16.0/zh#NamespacesToBeSearchedHelpCategory:MediaWiki configuration settings removed in version 1.24.0/zh#NamespacesToBeSearchedHelpCategory:MediaWiki deprecated or obsolete features/zh#NamespacesToBeSearchedHelpCategory:Namespace variables/zh#NamespacesToBeSearchedHelp
: $wgNamespacesToBeSearchedHelp
Namespaces to be searched when user clicks the "Help" tab on Special:Search
引进版本:1.16.0 (r50207)
移除版本:1.24.0 (Gerrit change 132965; git #1cb1ac62)
允许的值:(参见下方)
(参见下方)

详情

Namespaces to be searched when user clicks the "Help" tab on Special:Search with the new search interface ($wgUseOldSearchUI = false;).

$wgNamespacesToBeSearchedDefault的格式相同。

To have a working search header you have to take care of a few things:

  • Namespaces you set in $wgNamespacesToBeSearchedHelp should not be set in $wgNamespacesToBeSearchedDefault.
    • Otherwise it will display the NS Selector under "Content pages"
  • The order of the set namespaces in the array is important! Be sure to set them in the order of the namespace number.

所以举个例子:帮助不在项目前面。

    • Otherwise clicking "Help and Project pages" takes you to "Advanced"

默认值

$wgNamespacesToBeSearchedHelp = [
	NS_PROJECT        => true,	
	NS_HELP           => true,
];
Category:MediaWiki configuration settings/zh Category:MediaWiki configuration settings introduced in version 1.16.0/zh Category:MediaWiki configuration settings removed in version 1.24.0/zh Category:MediaWiki deprecated or obsolete features/zh Category:Namespace variables/zh