Manual:$wgNamespacesToBeSearchedDefault/ru

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgNamespacesToBeSearchedDefault and the translation is 0% complete.

Other languages:
English • ‎español • ‎français • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎日本語
Namespaces: $wgNamespacesToBeSearchedDefault
Which namespaces should be searched?
Появилось, начиная с версии:pre 1.1.0
Удалено в версии:все еще используется
Допустимые значения:see below
Значение по умолчанию:see below
Другие настройки: По алфавиту | По функциональности

Details

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.

Default value

$wgNamespacesToBeSearchedDefault = [
	NS_MAIN => true,
];

Adding namespaces

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.