Manual:$wgNamespacesToBeSearchedDefault/ja

詳細
変数は名前空間の配列を保持し、-1 (Special:) から番号付けされており、-2 (direct-linked media) を含めず、どの名前空間がデフォルトで検索される事が有効であるか示しています. 配列は数値の名前空間IDによってインデックス化され、それぞれのインデックスは0 (検索しない) もしくは1(この名前空間を検索)のどちらかを保持します.

既定値 (1.5.0以降)
Change "false" to "true" to set the namespaces new users will search.

既存の利用者のオプションの変更
In MediaWiki 1.16 and later, you do not have to change options for existing users.

MediaWiki メンテナンス スクリプト userOptions.php
Use the userOptions.php script provided with MediaWiki to change the default namespaces for existing users (or see how many are differing from your new defaults). For example, to search user pages (Ns2): php userOptions.php --nowarn searchNs2 --old 0 --new 1

If you just did create new namespaces, the searchNsX fields are not yet defined. Use the following syntax instead: php userOptions.php --nowarn searchNs2 --old "" --new 1

For other namespaces, just replace # (# = 名前空間番号) in searchNs# with the namespace number like one of those listed on the Manual:Namespace page.


 * 1) php userOptions.php

This script pass through all users and change one of their options. The new option is NOT validated.

使用法: php userOptions.php --list php userOptions.php --usage php userOptions.php [options]Â --old --new

スイッチ: --list : list available user options and their default value

--usage : report statistics about an option

--old : the value to look for --new : new value to update users with

オプション: --nowarn: hides the 5 seconds warning --quiet : do not print what is happening --dry  : do not save user settings back to database

旧バージョン
The variable holds an array of namespaces, numbered from -1 (Special:) and not including -2 (direct-linked media), indicating which namespaces are enabled for searching by default. The array is indexed by the numeric namespace ID, and each index holds either 0 (don't search) or 1 (search this namespace).

既定値 (1.5.0 の前のバージョンまで)
The NS_ constants weren't used (possibly because they weren't defined) so numeric values were used instead:

既定値 (1.4.5 の前のバージョンまで)
Prior to 1.4.5, namespaces 9 and 11 were also searched.

別の手法
This is an example of what to edit if nothing else works.