Manual:$wgNamespacesToBeSearchedHelp

From mediawiki.org
This page is a translated version of the page Manual:$wgNamespacesToBeSearchedHelp and the translation is 57% complete.
名前空間: $wgNamespacesToBeSearchedHelp
利用者が Special:Search で「ヘルプ」タブをクリックした際に検索対象とする名前空間
導入されたバージョン:1.16.0 (r50207)
除去されたバージョン:1.24.0 (Gerrit change 132965; git #1cb1ac62)
許容される値:(下記参照)
既定値:(下記参照)

詳細

新しい検索インターフェイスを有効 ($wgUseOldSearchUI = false;) にした Special:Search で、利用者が「ヘルプ」タブをクリックした際に検索対象とする名前空間です。

$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.

So e.g. not Help before Project.

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

既定値

$wgNamespacesToBeSearchedHelp = [
	NS_PROJECT        => true,	
	NS_HELP           => true,
];