User:Reversedragon/LocalSettings.php
Appearance
Info on namespace configuration. Not the entire LocalSettings.php, only the interesting parts.
Wikibase.example.php (unchanged)
call_user_func( function() {
$baseNs = 120;
define( 'WB_NS_ITEM', $baseNs );
define( 'WB_NS_ITEM_TALK', $baseNs + 1 );
define( 'WB_NS_PROPERTY', $baseNs + 2 );
define( 'WB_NS_PROPERTY_TALK', $baseNs + 3 );
} );
LocalSettings.php
// Define constants for my additional namespaces.
define("NS_ITEM", 0);
define("NS_PROPERTY", WB_NS_PROPERTY);
define("NS_ONTOLOGY", 270); // This MUST be even.
define("NS_ONTOLOGY_TALK", 271); // This MUST be the following odd integer.
// Combine talk pages
define("NS_ITEM_TALK", NS_ONTOLOGY_TALK);
define("NS_PROPERTY_TALK", NS_ONTOLOGY_TALK);
define("NS_LEXEME_TALK", NS_ONTOLOGY_TALK);
// define("NS_FILE_TALK", NS_HELP_TALK);
// define("NS_TEMPLATE_TALK", NS_HELP_TALK);
// Add namespaces.
$wgExtraNamespaces[NS_ONTOLOGY] = "Ontology";
$wgExtraNamespaces[NS_ONTOLOGY_TALK] = "Ontology_talk";
$wgNamespacesWithSubpages[NS_ONTOLOGY] = false;
$wgNamespacesWithSubpages[NS_ONTOLOGY_TALK] = true;
// $wgNamespaceContentModels[NS_ITEM] = "wikibase-item";
// $wgNamespaceContentModels[NS_LEXEME] = "wikibase-lexeme";
$wgContentNamespaces = [ NS_ITEM, NS_PROJECT, 12, NS_LEXEME, NS_ONTOLOGY ]; // Main, Philosophical Research, Help, Lexeme, Ontology