diff options
author | Yaco <franco@reevo.org> | 2023-04-27 17:37:04 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2023-04-27 17:37:04 -0300 |
commit | c5ba0332b765acd3af26f8019e8ff4b7d93d1d9a (patch) | |
tree | 247c7c3d54b1b99a9dba9e263c6c4a0f9fabf11c /LocalSettings.php | |
parent | edf647d232acba64f2e584ec2d07bf58fa19fc80 (diff) |
add new namespaces
Diffstat (limited to 'LocalSettings.php')
-rw-r--r-- | LocalSettings.php | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/LocalSettings.php b/LocalSettings.php index 57d6e8e..b9d4779 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -116,6 +116,23 @@ $wgContentNamespaces[] = NS_ENDORSER; $smwgNamespacesWithSemanticLinks[NS_ENDORSER] = true; $wgNamespacesWithSubpages[NS_ENDORSER] = true; +define("NS_CASE", 3006); // Este número DEBE ser par. +define("NS_CASE_TALK", 3007); // Éste DEBE ser el siguiente entero impar. +$wgExtraNamespaces[NS_CASE] = "Case"; +$wgExtraNamespaces[NS_CASE_TALK] = "Case_talk"; +$wgContentNamespaces[] = NS_CASE; +$smwgNamespacesWithSemanticLinks[NS_CASE] = true; +$wgNamespacesWithSubpages[NS_CASE] = true; + +define("NS_REPORT", 3008); // Este número DEBE ser par. +define("NS_REPORT_TALK", 3009); // Éste DEBE ser el siguiente entero impar. +$wgExtraNamespaces[NS_REPORT] = "Report"; +$wgExtraNamespaces[NS_REPORT_TALK] = "Report_talk"; +$wgContentNamespaces[] = NS_REPORT; +$smwgNamespacesWithSemanticLinks[NS_REPORT] = true; +$wgNamespacesWithSubpages[NS_REPORT] = true; + + // define("NS_REVISAR", 3006); // Este número DEBE ser par. // define("NS_REVISAR_TALK", 3007); // Éste DEBE ser el siguiente entero impar. // $wgExtraNamespaces[NS_REVISAR] = "Revisar"; @@ -140,6 +157,7 @@ $wgNamespacesWithSubpages[NS_ENDORSER] = true; // $wgNamespaceProtection[NS_EVENTO] = // $wgNamespaceProtection[NS_PRENSA] = array( 'autoconfirmed' ); +$wgNamespaceProtection[NS_CASE] = $wgNamespaceProtection[NS_REPORT] = $wgNamespaceProtection[NS_ENDORSER] = array( 'autoconfirmed' ); // $wgGroupPermissions['*']['revisar-edit'] = true; @@ -148,8 +166,9 @@ $wgNamespaceProtection[NS_ENDORSER] = array( 'autoconfirmed' ); $wgNamespacesToBeSearchedDefault = [ // NS_MAIN => true, // NS_CATEGORY => true, - // NS_USER => true, - NS_ENDORSER => true + NS_REPORT => true, + NS_ENDORSER => true, + NS_CASE => true // NS_PRENSA => true, // NS_AUDIOVISUAL => true, // NS_EVENTO => true @@ -157,7 +176,9 @@ $wgNamespacesToBeSearchedDefault = [ $wgNamespaceAliases = array( // 'U' => NS_USER, - 'E' => NS_ENDORSER, + 'C' => NS_CASE, + 'R' => NS_REPORT, + 'E' => NS_ENDORSER // 'P' => NS_PRENSA, // 'A' => NS_AUDIOVISUAL, // 'V' => NS_EVENTO @@ -318,12 +339,10 @@ $wgEnableMetaDescriptionFunctions = true; ## HideNamespace require_once "$IP/extensions/HideNamespace/HideNamespace.php"; $wgHidensNamespaces = array( - // NS_PRENSA, - // NS_AUDIOVISUAL, + NS_REPORT, NS_CATEGORY, NS_ENDORSER, - // NS_EVENTO, - // NS_REVISAR, + NS_CASE, ); ## CSS |