Manual:$wgNamespacesToBeSearchedDefault
Namespaces: $wgNamespacesToBeSearchedDefault | |
---|---|
Which namespaces should be searched? | |
導入されたバージョン: | pre 1.1.0 |
除去されたバージョン: | 使用中 |
可能な値: | 下記参照 |
既定値: | 下記参照 |
他の設定: アルファベット順 | 機能順 |
詳細
The variable holds an array of namespaces, indicating which namespaces are enabled for searching by default. The array is indexed by the namespace constant. Namespaces not added will not be searched by default.
既定値
$wgNamespacesToBeSearchedDefault = [
NS_MAIN => true,
];
名前空間の追加
To add other namespaces you just add this to your "LocalSettings.php" file, e. g. for the project namespace:
$wgNamespacesToBeSearchedDefault[NS_PROJECT] = true;
Changing options for existing users
MediaWiki バージョン: | ≥ 1.16 |
In MediaWiki 1.16 and later, you do not have to change options for existing users.