Manual:$wgNamespacesToBeSearchedDefault/pl

Category:MediaWiki configuration settings/pl#NamespacesToBeSearchedByDefaultCategory:MediaWiki configuration settings introduced before version 1.1.0/pl#NamespacesToBeSearchedByDefaultCategory:MediaWiki configuration settings still in use/pl#NamespacesToBeSearchedByDefaultCategory:Search variables/pl#NamespacesToBeSearchedByDefault
Wyszukiwanie: $wgNamespacesToBeSearchedDefault
Które przestrzenie nazw należy przeszukać?
Wprowadzono w wersji:Before 1.1.0
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:zobacz niżej
Domyślna wartość:zobacz niżej

Szczegóły

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.

Domyślna wartość

Wersja MediaWiki:
1.5
$wgNamespacesToBeSearchedDefault = [
	NS_MAIN => true,
];
Wersja MediaWiki:
1.4
$wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
  2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 0, 10 => 0, 11 => 0 );
Wersja MediaWiki:
1.3
$wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
  2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
Wersje MediaWiki:
1.1 1.2
$wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
  2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0 );

Dodawanie przestrzeni nazw

To add other namespaces you just add this to your LocalSettings.php file, e.g. for the project namespace:

$wgNamespacesToBeSearchedDefault[NS_PROJECT] = true;

Effect of adding/removing namespace

Wersja MediaWiki:
1.16

In MediaWiki 1.16 and later, adding or removing namespace will apply to all users.

Wersja MediaWiki:
1.15

In MediaWiki 1.15 and prior, adding or removing namespace will only affect anonymous users and accounts created after the change.

Category:Namespace variables/pl
Category:MediaWiki configuration settings/pl Category:MediaWiki configuration settings introduced before version 1.1.0/pl Category:MediaWiki configuration settings still in use/pl Category:Namespace variables/pl Category:Search variables/pl