mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 01:39:30 +02:00
@ -287,10 +287,9 @@ dummy pages for variants of page titles with different cases.
|
|||||||
Smart mode is enabled by default. You can disable it to increase performance of
|
Smart mode is enabled by default. You can disable it to increase performance of
|
||||||
the extension.
|
the extension.
|
||||||
|
|
||||||
|
|
||||||
### Dealing with custom namespaces
|
### Dealing with custom namespaces
|
||||||
|
|
||||||
$wgLinkTitlesSourceNamespace = [];
|
$wgLinkTitlesSourceNamespaces = [];
|
||||||
|
|
||||||
Specifies additional namespaces for pages that should be processed by the
|
Specifies additional namespaces for pages that should be processed by the
|
||||||
LinkTitles extension. If this is an empty array (or anything else that PHP
|
LinkTitles extension. If this is an empty array (or anything else that PHP
|
||||||
@ -316,7 +315,7 @@ no links at all because there are no target namespaces at all.
|
|||||||
|
|
||||||
#### Example: Default configuration
|
#### Example: Default configuration
|
||||||
|
|
||||||
$wgLinkTitlesSourceNamespace = [];
|
$wgLinkTitlesSourceNamespaces = [];
|
||||||
$wgLinkTitlesTargetNamespaces = [];
|
$wgLinkTitlesTargetNamespaces = [];
|
||||||
$wgLinkTitlesSamenamespace = true;
|
$wgLinkTitlesSamenamespace = true;
|
||||||
|
|
||||||
@ -325,7 +324,7 @@ namespace only (i.e., the same namespace that the source page is in).
|
|||||||
|
|
||||||
#### Example: Custom namespace only
|
#### Example: Custom namespace only
|
||||||
|
|
||||||
$wgLinkTitlesSourceNamespace = [ NS_MY_NAMESPACE];
|
$wgLinkTitlesSourceNamespaces = [ NS_MY_NAMESPACE];
|
||||||
$wgLinkTitlesTargetNamespaces = [];
|
$wgLinkTitlesTargetNamespaces = [];
|
||||||
$wgLinkTitlesSamenamespace = true;
|
$wgLinkTitlesSamenamespace = true;
|
||||||
|
|
||||||
@ -335,7 +334,7 @@ is in).
|
|||||||
|
|
||||||
#### Example: Link to `NS_MAIN` only
|
#### Example: Link to `NS_MAIN` only
|
||||||
|
|
||||||
$wgLinkTitlesSourceNamespace = [ NS_MY_NAMESPACE];
|
$wgLinkTitlesSourceNamespaces = [ NS_MY_NAMESPACE];
|
||||||
$wgLinkTitlesTargetNamespaces = [ NS_MAIN ];
|
$wgLinkTitlesTargetNamespaces = [ NS_MAIN ];
|
||||||
$wgLinkTitlesSamenamespace = false;
|
$wgLinkTitlesSamenamespace = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user