Manual:$wgNamespaceAliases/pl
<translate> Namespaces</translate>: $wgNamespaceAliases | |
---|---|
Ustawia alternatywne nazwy przestrzeni nazw |
|
<translate> Introduced in version:</translate> | 1.10.0 (r21720) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (tablica z ciągami znaków) |
<translate> Default value:</translate> | [] |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Szczegóły
These are alternate names for the primary localized namespace names, which are defined by $wgExtraNamespaces
and the language file.
If a page is requested with such a prefix, the request will be redirected to the primary name.
Set this to a map from namespace names to IDs. Przykład:
$wgNamespaceAliases = [
'Wikipedian' => NS_USER,
'Help' => 100
];
Aby dodać pojedynczy alias:
$wgNamespaceAliases['WP'] = NS_PROJECT;
If you need an alias for the project you probably need a similar alias for its talk page and you should add an array as above or two lines:
$wgNamespaceAliases['WP'] = NS_PROJECT;
$wgNamespaceAliases['WP_talk'] = NS_PROJECT_TALK;
If this setting is set to a namespace that does not exist (e.g. the namespace has not been added to $wgExtraNamespaces
but a constant has been defined) the alias will redirect to the main space.
Nie używaj spacji
Używaj znaków podkreślenia zamiast spacji w nazwach przestrzeni nazw. 'My Namespace' jest nieprawidłową nazwą; użyj w zamian 'My_Namespace'.