Login Login
MORE

WIDGETS

Widgets

Wanted articles
Who is online?
Article tools

Wiki:Namespace

From Aino Wiki

Jump to: navigation, search

Doc

Doc ufficiali:

Come fare per

Cambiare namespace

Le pagine possono essere spostate da un NameSpace ad un altro semplicemente cambiando il prefisso del titolo della pagina.

Inserire Namespace custom

Si salvano Namespace addizionali aggiungendoli alla variabile globale $wgExtraNamespaces che è nel file:
/LocalSettings.php
Segue esmpio di aggiunta di 2 Namespace: "Foo" e relativo talk (blog di discussione) "Foo_talk".

// Define constants for my additional namespaces.
define("NS_FOO", 3000); // This MUST be even.
define("NS_FOO_TALK", 3001); // This MUST be the following odd integer.
 
// Add namespaces.
$wgExtraNamespaces[NS_FOO] = "Foo";
$wgExtraNamespaces[NS_FOO_TALK] = "Foo_talk"; // Note underscores in the namespace name.

Nell'esempio precedente s'è usato un ID numerico per "Foo" uguale a 3000 ebbene è necessario che questo sia un numero univoco e non precedentemente usato.
As a convention, the namespaces numbered 100-199 are reserved for site-specific namespaces, although there are some extensions that don't follow this convention. Extension writers use higher numbers, up to 32767. When choosing your index, you should avoid any number already in extension default namespaces, since you might want to install that extension later. Thus numbers from 3000 and higher are a good pick for system administrators to define their custom namespaces.
Doc: Using_custom_namespaces

Impostazioni dal sito

Ogni modifica influenza quel che è censito nel file:
/extensions/BlueSpiceFoundation/config/nm-settings.php

Mappa e Link


wiki

Parole chiave: Index, ottimizzazione, ottimizzazioni, PAD

Author