Manual:$wgNamespacesWithSubpages/it
From Linux Web Expert
<translate> Namespaces</translate>: $wgNamespacesWithSubpages | |
---|---|
Quali namespace dovrebbero supportare le sotto-pagine? |
|
<translate> Introduced in version:</translate> | pre 1.1.0 |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | see below |
<translate> Default value:</translate> | see below |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Dettagli
La variabile salva un array indicante quali namespace concedano sotto-pagine. L'array è indicizzato con l'ID numerico del namespace, e ogni valore può essere 0 (nessuna sotto-pagina concessa) oppure 1 (sotto-pagine concesse). A categoryspace (namespace 14) subpage will work like any other category.
See Aiuto:Sottopagine .
Abilitazione per un namespace
- Vedi anche Manual:Namespace constants per una lista completa dei codici dei
NS_...
.
The normal way to enable subpages for a given namespace is to edit the LocalSettings.php
and insert the following:
# Enable subpages in the main namespace
$wgNamespacesWithSubpages[NS_MAIN] = true;
# Enable subpages in the template namespace
$wgNamespacesWithSubpages[NS_TEMPLATE] = true;
# etc.
Disabling for a namespace
Disable subpages in a namespace (where it is enabled by default).
For example NS_TALK
has subpages enabled by default in MediaWiki.
To disable them, set false
:
$wgNamespacesWithSubpages[NS_TALK] = false;
Default value
The default of this setting has changed over the years. To be sure which one applies to your wiki check this setting in "DefaultSettings.php".
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> ≥</translate> 1.29
<translate> MediaWiki version:</translate> |
$wgNamespacesWithSubpages = [
NS_TALK => true,
NS_USER => true,
NS_USER_TALK => true,
NS_PROJECT => true,
NS_PROJECT_TALK => true,
NS_FILE_TALK => true,
NS_MEDIAWIKI => true,
NS_MEDIAWIKI_TALK => true,
NS_TEMPLATE => true,
NS_TEMPLATE_TALK => true,
NS_HELP => true,
NS_HELP_TALK => true,
NS_CATEGORY_TALK => true
];
1.21 – 1.28
<translate> MediaWiki versions:</translate> |
$wgNamespacesWithSubpages = [
NS_TALK => true,
NS_USER => true,
NS_USER_TALK => true,
NS_PROJECT => true,
NS_PROJECT_TALK => true,
NS_FILE_TALK => true,
NS_MEDIAWIKI => true,
NS_MEDIAWIKI_TALK => true,
NS_TEMPLATE_TALK => true,
NS_HELP => true,
NS_HELP_TALK => true,
NS_CATEGORY_TALK => true
];
1.16 – 1.20
<translate> MediaWiki versions:</translate> |
$wgNamespacesWithSubpages = array(
NS_TALK => true,
NS_USER => true,
NS_USER_TALK => true,
NS_PROJECT_TALK => true,
NS_FILE_TALK => true,
NS_MEDIAWIKI => true,
NS_MEDIAWIKI_TALK => true,
NS_TEMPLATE_TALK => true,
NS_HELP_TALK => true,
NS_CATEGORY_TALK => true
);
1.14 – 1.15
<translate> MediaWiki versions:</translate> |
$wgNamespacesWithSubpages = array(
NS_TALK => true,
NS_USER => true,
NS_USER_TALK => true,
NS_PROJECT_TALK => true,
NS_FILE_TALK => true,
NS_MEDIAWIKI_TALK => true,
NS_TEMPLATE_TALK => true,
NS_HELP_TALK => true,
NS_CATEGORY_TALK => true
);
1.5 – 1.13
<translate> MediaWiki versions:</translate> |
$wgNamespacesWithSubpages = array(
NS_TALK => true,
NS_USER => true,
NS_USER_TALK => true,
NS_PROJECT_TALK => true,
NS_IMAGE_TALK => true,
NS_MEDIAWIKI_TALK => true,
NS_TEMPLATE_TALK => true,
NS_HELP_TALK => true,
NS_CATEGORY_TALK => true
);