CINXE.COM

Manual:Using custom namespaces - MediaWiki

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref--excluded vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Manual:Using custom namespaces - MediaWiki</title> <script>(function(){var className="client-js vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref--excluded vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )mediawikiwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"1ddc0dfa-a4c9-43ed-9f32-2dc27bccc008","wgCanonicalNamespace":"Manual","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":100,"wgPageName":"Manual:Using_custom_namespaces","wgTitle":"Using custom namespaces","wgCurRevisionId":6800497,"wgRevisionId":6800497,"wgArticleId":7266,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["MediaWiki configuration","Namespace"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Manual:Using_custom_namespaces","wgRelevantArticleId":7266,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"mediawiki","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true, "wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":20000,"wgInternalRedirectTargetUrl":"/wiki/Manual:Using_custom_namespaces","wgTranslatePageTranslation":"source","wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.translate.tag.languages":"ready","ext.pygments":"ready", "skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.translate.edit.documentation.styles":"ready","ext.translate":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["mediawiki.action.view.redirect","ext.pygments.view","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.translate.pagetranslation.uls","ext.urlShortener.toolbar","ext.centralauth.centralautologin","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","ext.checkUser.clientHints"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.pygments%2Ctranslate%2CwikimediaBadges%7Cext.translate.edit.documentation.styles%7Cext.translate.tag.languages%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:site_name" content="MediaWiki"> <meta property="og:title" content="Manual:Using custom namespaces - MediaWiki"> <meta property="og:type" content="website"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//m.mediawiki.org/wiki/Manual:Using_custom_namespaces"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/mediawiki.png"> <link rel="icon" href="/static/favicon/mediawiki.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="MediaWiki (en)"> <link rel="EditURI" type="application/rsd+xml" href="//www.mediawiki.org/w/api.php?action=rsd"> <link rel="canonical" href="https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="MediaWiki Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-100 ns-subject mw-editable page-Manual_Using_custom_namespaces rootpage-Manual_Using_custom_namespaces skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/MediaWiki" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-mw-download" class="mw-list-item"><a href="/wiki/Download"><span>Get MediaWiki</span></a></li><li id="n-mw-extensions" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Category:Extensions"><span>Get extensions</span></a></li><li id="n-blog-text" class="mw-list-item"><a href="https://techblog.wikimedia.org/"><span>Tech blog</span></a></li><li id="n-mw-contribute" class="mw-list-item"><a href="/wiki/Special:MyLanguage/How_to_contribute"><span>Contribute</span></a></li> </ul> </div> </div> <div id="p-support" class="vector-menu mw-portlet mw-portlet-support" > <div class="vector-menu-heading"> Support </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Contents" title="The place to find out"><span>User help</span></a></li><li id="n-mw-faq" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:FAQ"><span>FAQ</span></a></li><li id="n-mw-manual" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:Contents"><span>Technical manual</span></a></li><li id="n-mw-supportdesk" class="mw-list-item"><a href="/wiki/Project:Support_desk"><span>Support desk</span></a></li><li id="n-mw-communication" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Communication"><span>Communication</span></a></li> </ul> </div> </div> <div id="p-development" class="vector-menu mw-portlet mw-portlet-development" > <div class="vector-menu-heading"> Development </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mw-developerportal" class="mw-list-item"><a href="https://developer.wikimedia.org/"><span>Developer portal</span></a></li><li id="n-svn-statistics" class="mw-list-item"><a href="/wiki/Development_statistics"><span>Code statistics</span></a></li> </ul> </div> </div> <div id="p-mediawiki.org" class="vector-menu mw-portlet mw-portlet-mediawiki_org" > <div class="vector-menu-heading"> mediawiki.org </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-portal" class="mw-list-item"><a href="/wiki/Project:Help" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-mw-translate" class="mw-list-item"><a href="/wiki/Special:LanguageStats"><span>Translate content</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Load a random page [x]" accesskey="x"><span>Random page</span></a></li><li id="n-mw-discussion" class="mw-list-item"><a href="/wiki/Project:Village_Pump"><span>Village pump</span></a></li><li id="n-Sandboxlink-portlet-label" class="mw-list-item"><a href="/wiki/Project:Sandbox"><span>Sandbox</span></a></li> </ul> </div> </div> <div id="p-lang" class="vector-menu mw-portlet mw-portlet-lang" > <div class="vector-menu-heading"> In other languages </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:NewItem?site=mediawikiwiki&amp;page=Manual%3AUsing+custom+namespaces" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/MediaWiki" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/mediawikiwiki.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="MediaWiki" src="/static/images/mobile/copyright/mediawikiwiki-wordmark.svg" style="width: 7.5em; height: 1.125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search MediaWiki [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search MediaWiki" aria-label="Search MediaWiki" autocapitalize="sentences" title="Search MediaWiki [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-uls" class="mw-list-item active user-links-collapsible-item"><a data-mw="interface" href="#" class="uls-trigger cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>English</span></a> </li> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=spontaneous&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=Manual%3AUsing+custom+namespaces" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=Manual%3AUsing+custom+namespaces" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="More options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=spontaneous&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Manual%3AUsing+custom+namespaces" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Manual%3AUsing+custom+namespaces" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Beginning</div> </a> </li> <li id="toc-Creating_a_custom_namespace" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Creating_a_custom_namespace"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Creating a custom namespace</span> </div> </a> <button aria-controls="toc-Creating_a_custom_namespace-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Creating a custom namespace subsection</span> </button> <ul id="toc-Creating_a_custom_namespace-sublist" class="vector-toc-list"> <li id="toc-In_extensions" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#In_extensions"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>In extensions</span> </div> </a> <ul id="toc-In_extensions-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Content_namespaces" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Content_namespaces"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Content namespaces</span> </div> </a> <button aria-controls="toc-Content_namespaces-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Content namespaces subsection</span> </button> <ul id="toc-Content_namespaces-sublist" class="vector-toc-list"> <li id="toc-Running_maintenance_scripts" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Running_maintenance_scripts"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Running maintenance scripts</span> </div> </a> <ul id="toc-Running_maintenance_scripts-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Why_you_would_want_a_custom_namespace" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Why_you_would_want_a_custom_namespace"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Why you would want a custom namespace</span> </div> </a> <ul id="toc-Why_you_would_want_a_custom_namespace-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Dealing_with_existing_pages" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Dealing_with_existing_pages"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Dealing with existing pages</span> </div> </a> <button aria-controls="toc-Dealing_with_existing_pages-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Dealing with existing pages subsection</span> </button> <ul id="toc-Dealing_with_existing_pages-sublist" class="vector-toc-list"> <li id="toc-Move_conflicting_pages" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Move_conflicting_pages"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1</span> <span>Move conflicting pages</span> </div> </a> <ul id="toc-Move_conflicting_pages-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Use_a_maintenance_script" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Use_a_maintenance_script"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.2</span> <span>Use a maintenance script</span> </div> </a> <ul id="toc-Use_a_maintenance_script-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Use_a_database_query" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Use_a_database_query"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.3</span> <span>Use a database query</span> </div> </a> <ul id="toc-Use_a_database_query-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Removing_custom_namespaces" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Removing_custom_namespaces"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Removing custom namespaces</span> </div> </a> <ul id="toc-Removing_custom_namespaces-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Renaming_custom_namespaces" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Renaming_custom_namespaces"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Renaming custom namespaces</span> </div> </a> <ul id="toc-Renaming_custom_namespaces-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Avoid_namespace_conflicts" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Avoid_namespace_conflicts"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Avoid namespace conflicts</span> </div> </a> <ul id="toc-Avoid_namespace_conflicts-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Styling_namespaces" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Styling_namespaces"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>Styling namespaces</span> </div> </a> <ul id="toc-Styling_namespaces-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>See also</span> </div> </a> <button aria-controls="toc-See_also-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle See also subsection</span> </button> <ul id="toc-See_also-sublist" class="vector-toc-list"> <li id="toc-Site_administration" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Site_administration"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.1</span> <span>Site administration</span> </div> </a> <ul id="toc-Site_administration-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Extensions" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Extensions"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.2</span> <span>Extensions</span> </div> </a> <ul id="toc-Extensions-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-For_extension_developers" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#For_extension_developers"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.3</span> <span>For extension developers</span> </div> </a> <ul id="toc-For_extension_developers-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Manual</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Using custom namespaces</span></h1> <div class="mw-indicators"> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-manual" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Manual:Using_custom_namespaces" title="View the subject page [c]" accesskey="c"><span>Manual</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Manual_talk:Using_custom_namespaces" rel="discussion" title="Discussion about the content page [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Manual:Using_custom_namespaces"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit" title="Edit the source code of this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Manual:Using_custom_namespaces"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit" title="Edit the source code of this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Manual:Using_custom_namespaces" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Manual:Using_custom_namespaces" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;oldid=6800497" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=Manual%3AUsing_custom_namespaces&amp;id=6800497&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FManual%3AUsing_custom_namespaces"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FManual%3AUsing_custom_namespaces"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Book&amp;bookcmd=book_creator&amp;referer=Manual%3AUsing+custom+namespaces"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=Manual%3AUsing_custom_namespaces&amp;action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects emptyPortlet" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div id="siteSub" class="noprint">From mediawiki.org</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-pt-translate-header noprint nomobile" dir="ltr" lang="en"><a href="/w/index.php?title=Special:Translate&amp;group=page-Manual%3AUsing+custom+namespaces&amp;action=page&amp;filter=&amp;action_source=translate_page" title="Special:Translate">Translate this page</a></div><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="mw-pt-languages noprint navigation-not-searchable" lang="en" dir="ltr"><div class="mw-pt-languages-label">Languages:</div><ul class="mw-pt-languages-list"><li><a href="/wiki/Manual:Using_custom_namespaces/id" class="mw-pt-progress mw-pt-progress--med" title="Manual:Menggunakan ruang nama buatan sendiri (31% translated)" lang="id" dir="ltr">Bahasa Indonesia</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/de" class="mw-pt-progress mw-pt-progress--high" title="Handbuch:Verwendung von benutzerdefinierten Namensräumen (95% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><span class="mw-pt-languages-ui mw-pt-languages-selected mw-pt-progress mw-pt-progress--complete" lang="en" dir="ltr">English</span></li> <li><a href="/wiki/Manual:Using_custom_namespaces/vi" class="mw-pt-progress mw-pt-progress--low" title="Manual:Sử dụng không gian tuỳ chọn (1% translated)" lang="vi" dir="ltr">Tiếng Việt</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/es" class="mw-pt-progress mw-pt-progress--high" title="Manual:Cómo usar espacios de nombres personalizados (79% translated)" lang="es" dir="ltr">español</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/fr" class="mw-pt-progress mw-pt-progress--complete" title="Manuel:Utiliser des espaces de noms personnalisés (100% translated)" lang="fr" dir="ltr">français</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/gl" class="mw-pt-progress mw-pt-progress--low" title="Manual:Usando espazos de nomes personalizados (1% translated)" lang="gl" dir="ltr">galego</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/pl" class="mw-pt-progress mw-pt-progress--med" title="Podręcznik:Korzystanie z własnych przestrzeni nazw (17% translated)" lang="pl" dir="ltr">polski</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/pt" class="mw-pt-progress mw-pt-progress--low" title="Manual:Utilização dos espaços nominais personalizados (1% translated)" lang="pt" dir="ltr">português</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/pt-br" class="mw-pt-progress mw-pt-progress--low" title="Manual:Using custom namespaces/pt-br (7% translated)" lang="pt-BR" dir="ltr">português do Brasil</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/cs" class="mw-pt-progress mw-pt-progress--high" title="Příručka:Použití vlastních jmenných prostorů (95% translated)" lang="cs" dir="ltr">čeština</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/ru" class="mw-pt-progress mw-pt-progress--med" title="Руководство:Использование собственных пространств имён (26% translated)" lang="ru" dir="ltr">русский</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/th" class="mw-pt-progress mw-pt-progress--low" title="คู่มือ:Using custom namespaces (1% translated)" lang="th" dir="ltr">ไทย</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/zh" class="mw-pt-progress mw-pt-progress--high" title="手册:使用自定义命名空间 (75% translated)" lang="zh" dir="ltr">中文</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/ja" class="mw-pt-progress mw-pt-progress--high" title="Manual:カスタム名前空間の使用方法 (96% translated)" lang="ja" dir="ltr">日本語</a></li> <li><a href="/wiki/Manual:Using_custom_namespaces/ko" class="mw-pt-progress mw-pt-progress--med" title="매뉴얼:사용자 지정 이름 공간 (33% translated)" lang="ko" dir="ltr">한국어</a></li></ul></div> <p>In addition to the built-in <a href="/wiki/Special:MyLanguage/Manual:Namespace" title="Special:MyLanguage/Manual:Namespace">namespaces</a>, it is possible to add custom namespaces to a MediaWiki installation, to further separate content and allow more logical organization. </p><p>Custom namespaces are simple to manage using the <code><a href="/wiki/Special:MyLanguage/Manual:$wgExtraNamespaces" title="Special:MyLanguage/Manual:$wgExtraNamespaces">$wgExtraNamespaces</a><span style="display:none"><a href="/wiki/Manual:$wgExtraNamespaces" title="Manual:$wgExtraNamespaces"> </a></span></code> configuration directive. It is also possible to define alias names for custom (and also predefined) namespaces, using the <code><a href="/wiki/Special:MyLanguage/Manual:$wgNamespaceAliases" title="Special:MyLanguage/Manual:$wgNamespaceAliases">$wgNamespaceAliases</a><span style="display:none"><a href="/wiki/Manual:$wgNamespaceAliases" title="Manual:$wgNamespaceAliases"> </a></span></code> configuration directive. Some extensions make it easy for you to create custom namespaces. Examples include <a href="/wiki/Special:MyLanguage/Extension:NamespaceManager" title="Special:MyLanguage/Extension:NamespaceManager">NamespaceManager</a><span style="display:none"><a href="/wiki/Extension:NamespaceManager" title="Extension:NamespaceManager"> </a></span> and <a href="/wiki/Special:MyLanguage/Extension:BlueSpiceNamespaceManager" title="Special:MyLanguage/Extension:BlueSpiceNamespaceManager">BlueSpiceNamespaceManager</a><span style="display:none"><a href="/wiki/Extension:BlueSpiceNamespaceManager" title="Extension:BlueSpiceNamespaceManager"> </a></span>. </p> <style data-mw-deduplicate="TemplateStyles:r6651107">.mw-parser-output .note{background-position:left 7px top 50%;padding:0.5em 0.5em 0.5em 40px;margin:0.5em 0;overflow:hidden;background-color:#f8f9fa;color:#333;background-repeat:no-repeat;border:1px solid #ddd}.mw-parser-output .note-inline{display:inline-block;vertical-align:middle}.mw-parser-output .note-info{background-color:#eaf3ff;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/e/ec/OOjs_UI_icon_information-progressive.svg");background-size:25px;border-color:#a3caff;padding-left:40px;min-height:25px}.mw-parser-output .note-reminder{background-color:#fff9ea;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/a/a8/OOjs_UI_icon_lightbulb-yellow.svg");background-size:25px;border-color:#fc3;min-height:25px}.mw-parser-output .note-warn{background-color:#fff9ea;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/3/3b/OOjs_UI_icon_alert-warning.svg");background-size:25px;border-color:#fc3;min-height:25px}.mw-parser-output .note-error{background-color:#fee7e6;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/b/bf/OOjs_UI_icon_notice-destructive.svg");background-size:25px;border-color:#c33;min-height:25px}@media screen{html.skin-theme-clientpref-night .mw-parser-output .note{background-color:transparent;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .note{background-color:transparent;color:inherit}}</style><div role="note" class="note note-info">It is recommended to ensure there are no pending jobs in the <a href="/wiki/Special:MyLanguage/Manual:Job_queue" title="Special:MyLanguage/Manual:Job queue">job queue</a> before manipulating namespaces, to avoid such jobs from failing if they target pages from namespaces you are about to delete or rename. Use <a href="/wiki/Special:MyLanguage/Manual:RunJobs.php" title="Special:MyLanguage/Manual:RunJobs.php">runJobs.php</a><span style="display:none"><a href="/wiki/Manual:RunJobs.php" title="Manual:RunJobs.php"> </a></span> to run all pending jobs and clear the queue before manipulating namespace configuration.</div> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Creating_a_custom_namespace">Creating a custom namespace</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=1" title="Edit section: Creating a custom namespace"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>You register additional namespaces by adding them to the <code><a href="/wiki/Special:MyLanguage/Manual:$wgExtraNamespaces" title="Special:MyLanguage/Manual:$wgExtraNamespaces">$wgExtraNamespaces</a><span style="display:none"><a href="/wiki/Manual:$wgExtraNamespaces" title="Manual:$wgExtraNamespaces"> </a></span></code> global variable to your <a href="/wiki/Special:MyLanguage/Manual:LocalSettings.php" title="Special:MyLanguage/Manual:LocalSettings.php">"LocalSettings.php"</a><span style="display:none"><a href="/wiki/Manual:LocalSettings.php" title="Manual:LocalSettings.php"> </a></span> file. All namespaces require a unique numerical index in this array. As an example of simple custom namespace creation, adding the following lines to the <a href="/wiki/Special:MyLanguage/Manual:LocalSettings.php" title="Special:MyLanguage/Manual:LocalSettings.php">"LocalSettings.php"</a><span style="display:none"><a href="/wiki/Manual:LocalSettings.php" title="Manual:LocalSettings.php"> </a></span> file defines a "Foo" namespace 3000 and its associated "Foo_talk" namespace. Note that having a talk namespace associated with your custom namespace is currently a <b>hard</b> requirement. </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="c1">// Define constants for my additional namespaces.</span> <span class="nb">define</span><span class="p">(</span><span class="s2">&quot;NS_FOO&quot;</span><span class="p">,</span> <span class="mi">3000</span><span class="p">);</span> <span class="c1">// This MUST be even.</span> <span class="nb">define</span><span class="p">(</span><span class="s2">&quot;NS_FOO_TALK&quot;</span><span class="p">,</span> <span class="mi">3001</span><span class="p">);</span> <span class="c1">// This MUST be the following odd integer.</span> <span class="c1">// Add namespaces.</span> <span class="nv">$wgExtraNamespaces</span><span class="p">[</span><span class="nx">NS_FOO</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;Foo&quot;</span><span class="p">;</span> <span class="nv">$wgExtraNamespaces</span><span class="p">[</span><span class="nx">NS_FOO_TALK</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;Foo_talk&quot;</span><span class="p">;</span> <span class="c1">// Note underscores in the namespace name.</span> </pre></div> <dl><dt>Pick an unused number</dt> <dd>As a convention, the namespaces numbered 100-199 are reserved for site-specific namespaces, although there are <a href="/wiki/Special:MyLanguage/Extension_default_namespaces#ID_100–199" title="Special:MyLanguage/Extension default namespaces">some extensions</a> 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 <a href="/wiki/Special:MyLanguage/extension_default_namespaces" title="Special:MyLanguage/extension default namespaces">Extension default namespaces</a><span style="display:none"><a href="/wiki/Extension_default_namespaces" title="Extension default namespaces"> </a></span>, since you might want to install that extension later. <a href="/wiki/Special:MyLanguage/Extension_default_namespaces#ID_3000+" title="Special:MyLanguage/Extension default namespaces">Numbers from 3000 to 4999</a> are reserved for system administrators to define their custom namespaces. (Also, you’ll want to avoid any namespace <b>name</b> that’s already in <a href="/wiki/Special:MyLanguage/Extension_default_namespaces" title="Special:MyLanguage/Extension default namespaces">Extension default namespaces</a>.)</dd></dl> <dl><dt>Even then odd</dt> <dd>Note the namespace array index is 3000 in the above example. <ul><li>an <b>even</b> namespace index denotes a <a href="/wiki/Special:MyLanguage/Manual:Namespace#Subject_and_talk_namespaces" title="Special:MyLanguage/Manual:Namespace">subject namespace</a>.</li> <li>the <b>odd</b> index immediately following that number denotes its associated <a href="/wiki/Special:MyLanguage/Manual:Namespace#Subject_and_talk_namespaces" title="Special:MyLanguage/Manual:Namespace">discussion ("talk") namespace</a></li></ul></dd></dl> <dl><dt>Create the talk namespace too</dt> <dd>You typically create a discussion "Talk" namespace along with each custom namespace. With this example, if you <a href="/wiki/Special:MyLanguage/Help:Moving_a_page" title="Special:MyLanguage/Help:Moving a page">move a page</a> into the "Foo" namespace, you will be prompted to move its associated talk page, if any, and if you choose to do so, MediaWiki will place the talk page in "Foo talk".</dd></dl> <dl><dt>No spaces</dt> <dd>Use underscores instead of spaces when registering namespace names. "My&#160;Namespace" is invalid here; use "My_Namespace" instead.</dd></dl> <dl><dt>No hyphens</dt></dl> <p>The uppercase part does not permit hyphens but they can still be safely added to the prefix title. Example: </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgExtraNamespaces</span><span class="p">[</span><span class="nx">NS_FOOFOO</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;Foo-Foo&quot;</span><span class="p">;</span> </pre></div> <dl><dt>Name the numbers you pick</dt> <dd>The example defines <a rel="nofollow" class="external text" href="https://php.net/language.constants">constants</a> for the namespace IDs, so that you can refer to these namespaces later on in the configuration, for example in <code><a href="/wiki/Special:MyLanguage/Manual:$wgNamespaceProtection" title="Special:MyLanguage/Manual:$wgNamespaceProtection">$wgNamespaceProtection</a><span style="display:none"><a href="/wiki/Manual:$wgNamespaceProtection" title="Manual:$wgNamespaceProtection"> </a></span></code>, <code><a href="/wiki/Special:MyLanguage/Manual:$wgNamespacesWithSubpages" title="Special:MyLanguage/Manual:$wgNamespacesWithSubpages">$wgNamespacesWithSubpages</a><span style="display:none"><a href="/wiki/Manual:$wgNamespacesWithSubpages" title="Manual:$wgNamespacesWithSubpages"> </a></span></code>, or <code><a href="/wiki/Special:MyLanguage/Manual:$wgExtraGenderNamespaces" title="Special:MyLanguage/Manual:$wgExtraGenderNamespaces">$wgExtraGenderNamespaces</a><span style="display:none"><a href="/wiki/Manual:$wgExtraGenderNamespaces" title="Manual:$wgExtraGenderNamespaces"> </a></span></code>.</dd></dl> <p>You could go on to configure additional settings for your new namespace. </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgNamespaceProtection</span><span class="p">[</span><span class="nx">NS_FOO</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span> <span class="s1">&#39;editfoo&#39;</span> <span class="p">];</span> <span class="c1">// permission &quot;editfoo&quot; required to edit the foo namespace</span> <span class="nv">$wgNamespacesWithSubpages</span><span class="p">[</span><span class="nx">NS_FOO</span><span class="p">]</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span> <span class="c1">// subpages enabled for the foo namespace</span> <span class="nv">$wgGroupPermissions</span><span class="p">[</span><span class="s1">&#39;sysop&#39;</span><span class="p">][</span><span class="s1">&#39;editfoo&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span> <span class="c1">// permission &quot;editfoo&quot; granted to users in the &quot;sysop&quot; group</span> </pre></div> <dl><dt>Do it early</dt> <dd>Manipulation of <code>$wgExtraNamespaces</code> must be completed during MediaWiki initialization, i.e. in case an extension etc. should work with the newly created custom namespace, make sure that you define and name them prior to invoking the respective extension. For instance it cannot be manipulated in a post-initialization hook like <code><a href="/wiki/Special:MyLanguage/Manual:$wgExtensionFunctions" title="Special:MyLanguage/Manual:$wgExtensionFunctions">$wgExtensionFunctions</a><span style="display:none"><a href="/wiki/Manual:$wgExtensionFunctions" title="Manual:$wgExtensionFunctions"> </a></span></code>.</dd></dl> <dl><dt>Watch out for collisions with URL protocols</dt> <dd>MediaWiki's linking code knows about a number of URL protocols, defined in the <code><a href="/wiki/Special:MyLanguage/Manual:$wgUrlProtocols" title="Special:MyLanguage/Manual:$wgUrlProtocols">$wgUrlProtocols</a><span style="display:none"><a href="/wiki/Manual:$wgUrlProtocols" title="Manual:$wgUrlProtocols"> </a></span></code> variable. If your namespace name is identical to one of these protocols, you're going to have trouble creating [[wikilinks]] to pages in your custom namespace. This most commonly arises when someone tries to create a "News" namespace, because <code>news:</code> is a URL protocol for NNTP newsgroups.</dd> <dd>To avoid this issue, you can deregister the relevant URL protocol by adding the following code to the "LocalSettings.php" file (replacing <code>news</code> by the lowercased name of the protocol you wish to remove):</dd></dl> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgUrlProtocols</span> <span class="o">=</span> <span class="nb">array_diff</span><span class="p">(</span> <span class="nv">$wgUrlProtocols</span><span class="p">,</span> <span class="k">array</span><span class="p">(</span> <span class="s1">&#39;news:&#39;</span> <span class="p">)</span> <span class="p">);</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="In_extensions">In extensions</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=2" title="Edit section: In extensions"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r4199130">.mw-parser-output .mw-version{border:1px solid #72777d;font-size:80%;line-height:1.2;border-collapse:collapse}.mw-parser-output .mw-version-ltr{float:right;margin:0 0 .5em .5em;text-align:right}.mw-parser-output .mw-version-rtl{float:left;margin:0 .5em .5em 0;text-align:left}.mw-parser-output .mw-version td{padding:.1em .3em}.mw-parser-output .mw-version-versionbox{border:5px solid #00af89;text-align:center}.mw-parser-output .mw-version-versionnumber{font-weight:bold;font-size:180%}.mw-parser-output .mw-version-version .mw-version-versionbox{border-color:#c8ccd1}.mw-parser-output .mw-version.mw-version-version2 .mw-version-versionbox{border-top-color:#c8ccd1;border-right-color:#c8ccd1;border-left-color:#c8ccd1}.mw-parser-output .mw-version-version-unsupported .mw-version-versionbox{border-color:#d33}.mw-parser-output .mw-version.mw-version-version2-unsupported .mw-version-versionbox{border-top-color:#d33;border-right-color:#d33;border-left-color:#d33}.mw-parser-output .mw-version-version-legacy .mw-version-versionbox{border-color:#f93}.mw-parser-output .mw-version.mw-version-version2-legacy .mw-version-versionbox{border-top-color:#f93;border-right-color:#f93;border-left-color:#f93}.mw-parser-output .mw-version-version-stable .mw-version-versionbox,.mw-parser-output .mw-version.mw-version.mw-version-and-later .mw-version-versionbox{border-color:#00af89}.mw-parser-output .mw-version.mw-version-version2-stable .mw-version-versionbox{border-top-color:#00af89;border-right-color:#00af89;border-left-color:#00af89}.mw-parser-output .mw-version-version-future .mw-version-versionbox{border-color:#8080c0}.mw-parser-output .mw-version.mw-version-version2-future .mw-version-versionbox{border-top-color:#8080c0;border-right-color:#8080c0;border-left-color:#8080c0}.mw-parser-output .mw-version-version-alpha .mw-version-versionbox{border-style:dotted}</style> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-unsupported mw-version-and-later"><tbody><tr> <td>MediaWiki version:</td> <td class="mw-version-versionbox" title="The latest stable version is 1.42"><div class="mw-version-versionnumber"><small>&#8805;</small> 1.25</div><small><a href="https://gerrit.wikimedia.org/r/166705" class="extiw" title="gerrit:166705">Gerrit change 166705</a></small></td> </tr></tbody></table> <p>Extensions often add their own namespaces, such as the <a href="/wiki/Special:MyLanguage/Extension:Flow" title="Special:MyLanguage/Extension:Flow">Flow</a><span style="display:none"><a href="/wiki/Extension:Flow" class="mw-redirect" title="Extension:Flow"> </a></span> extension's "Topic" namespace. The <a href="/wiki/Special:MyLanguage/extension.json" title="Special:MyLanguage/extension.json">extension.json</a><span style="display:none"><a href="/wiki/Extension.json" class="mw-redirect" title="Extension.json"> </a></span> registration system has a <code>namespaces</code> key for an extension to list its namespaces. From the <a href="/wiki/Special:MyLanguage/Extension:Gadgets" title="Special:MyLanguage/Extension:Gadgets">Gadgets</a><span style="display:none"><a href="/wiki/Extension:Gadgets" title="Extension:Gadgets"> </a></span> extension: </p> <div class="mw-highlight mw-highlight-lang-json mw-content-ltr" dir="ltr"><pre><span></span><span class="nt">&quot;namespaces&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">2300</span><span class="p">,</span> <span class="w"> </span><span class="nt">&quot;constant&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;NS_GADGET&quot;</span><span class="p">,</span> <span class="w"> </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Gadget&quot;</span><span class="p">,</span> <span class="w"> </span><span class="nt">&quot;protection&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;gadgets-edit&quot;</span> <span class="w"> </span><span class="p">},</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="nt">&quot;id&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">2301</span><span class="p">,</span> <span class="w"> </span><span class="nt">&quot;constant&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;NS_GADGET_TALK&quot;</span><span class="p">,</span> <span class="w"> </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Gadget_talk&quot;</span> <span class="w"> </span><span class="p">},</span> <span class="p">]</span> </pre></div> <p>You can also set other namespace-related settings here, such as whether it should be a content namespace or not; see <a href="/wiki/Special:MyLanguage/Manual:Extension.json/Schema#namespaces" title="Special:MyLanguage/Manual:Extension.json/Schema">Manual:Extension.json/Schema</a><span style="display:none"><a href="/wiki/Manual:Extension.json/Schema#namespaces" title="Manual:Extension.json/Schema"> </a></span> for the available properties. </p><p>If namespace registration is conditional (for example <a href="/wiki/Special:MyLanguage/Extension:EventLogging" title="Special:MyLanguage/Extension:EventLogging">EventLogging</a><span style="display:none"><a href="/wiki/Extension:EventLogging" title="Extension:EventLogging"> </a></span> only defines its "Schema" namespace on the wiki where it stores schemas), the extension should add <code>"conditional": true</code> to the namespace definition in <code>extension.json</code>, and also register a handler for the <a href="/wiki/Special:MyLanguage/Manual:Hooks/CanonicalNamespaces" title="Special:MyLanguage/Manual:Hooks/CanonicalNamespaces">CanonicalNamespaces</a><span style="display:none"><a href="/wiki/Manual:Hooks/CanonicalNamespaces" title="Manual:Hooks/CanonicalNamespaces"> </a></span> hook there which decides whether to register the namespace or not. The hook handler should only change the <code>$namespaces</code> with which it is called; all other settings of the namespace should still be registered in the <code>extension.json</code>. If those settings should also be dynamic, do not change <code><a href="/wiki/Special:MyLanguage/Manual:$wgContentNamespaces" title="Special:MyLanguage/Manual:$wgContentNamespaces">$wgContentNamespaces</a><span style="display:none"><a href="/wiki/Manual:$wgContentNamespaces" title="Manual:$wgContentNamespaces"> </a></span></code>, <code><a href="/wiki/Special:MyLanguage/Manual:$wgNamespaceContentModels" title="Special:MyLanguage/Manual:$wgNamespaceContentModels">$wgNamespaceContentModels</a><span style="display:none"><a href="/wiki/Manual:$wgNamespaceContentModels" title="Manual:$wgNamespaceContentModels"> </a></span></code> etc. in the CanonicalNamespaces hook handler (it will have no effect – <a href="https://phabricator.wikimedia.org/T288819" class="extiw" title="phab:T288819">T288819</a>); instead, you will have to set them earlier, such as in a <a href="/wiki/Special:MyLanguage/Manual:Extension.json/Schema#callback" title="Special:MyLanguage/Manual:Extension.json/Schema">callback</a><span style="display:none"><a href="/wiki/Manual:Extension.json/Schema#callback" title="Manual:Extension.json/Schema"> </a></span> (<b>not</b> in <code><a href="/wiki/Special:MyLanguage/Manual:$wgExtensionFunctions" title="Special:MyLanguage/Manual:$wgExtensionFunctions">$wgExtensionFunctions</a><span style="display:none"><a href="/wiki/Manual:$wgExtensionFunctions" title="Manual:$wgExtensionFunctions"> </a></span></code>). </p><p>Note that adding an extension to LocalSettings.php does not necessarily make relevant namespace constants available as globals for other extensions. </p><p><span class="anchor" id="content-ns"></span> </p> <div class="mw-heading mw-heading2"><h2 id="Content_namespaces">Content namespaces</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=3" title="Edit section: Content namespaces"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>When building the site statistics page (see <a href="/wiki/Special:Statistics" title="Special:Statistics">Special:Statistics</a>), MediaWiki uses values stored in the database to calculate certain totals. One particular total is the "number of articles" or "number of content pages" figure. </p><p>For a page to be considered an article, or proper content, it must: </p> <ul><li>Be in the main namespace, or a defined <b><a href="/wiki/Special:MyLanguage/Manual:$wgContentNamespaces" title="Special:MyLanguage/Manual:$wgContentNamespaces">content namespace</a></b></li> <li>Not be a <a href="/wiki/Special:MyLanguage/Help:Redirects" title="Special:MyLanguage/Help:Redirects">redirect</a> page</li> <li>Contain at least one <a href="/wiki/Special:MyLanguage/Help:Links#Internal_links" title="Special:MyLanguage/Help:Links">internal link</a>, as configured by <code><a href="/wiki/Special:MyLanguage/Manual:$wgArticleCountMethod" title="Special:MyLanguage/Manual:$wgArticleCountMethod">$wgArticleCountMethod</a><span style="display:none"><a href="/wiki/Manual:$wgArticleCountMethod" title="Manual:$wgArticleCountMethod"> </a></span></code>.</li></ul> <p>When creating custom namespaces to hold additional content, it is a good idea to indicate this in the configuration. This is done via the <a href="/wiki/Special:MyLanguage/Manual:$wgContentNamespaces" title="Special:MyLanguage/Manual:$wgContentNamespaces">$wgContentNamespaces</a><span style="display:none"><a href="/wiki/Manual:$wgContentNamespaces" title="Manual:$wgContentNamespaces"> </a></span> configuration directive. </p><p>To extend the example above, one might add the following to the "LocalSettings.php" file: </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgContentNamespaces</span><span class="p">[]</span> <span class="o">=</span> <span class="mi">3000</span><span class="p">;</span> </pre></div> <dl><dd><dl><dd>or</dd></dl></dd></dl> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgContentNamespaces</span><span class="p">[]</span> <span class="o">=</span> <span class="nx">NS_FOO</span><span class="p">;</span> </pre></div> <p>MediaWiki will now consider pages in the "Foo" namespace to be articles, if they meet the remaining criteria, and will include them when updating the site statistics counters. </p> <div class="mw-heading mw-heading3"><h3 id="Running_maintenance_scripts">Running maintenance scripts</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=4" title="Edit section: Running maintenance scripts"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>When adjusting the value of configuration parameter <code>$wgContentNamespaces</code>, it is a good idea to run either the "path/to/maintenance/updateArticleCount.php or "path/to/maintenance/initSiteStats.php" script to update the internal statistics cache (see <a href="/wiki/Special:MyLanguage/Manual:Maintenance_scripts" title="Special:MyLanguage/Manual:Maintenance scripts">Manual:Maintenance scripts</a><span style="display:none"><a href="/wiki/Manual:Maintenance_scripts" title="Manual:Maintenance scripts"> </a></span>).</li></ul> <div class="mw-heading mw-heading2"><h2 id="Why_you_would_want_a_custom_namespace">Why you would want a custom namespace</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=5" title="Edit section: Why you would want a custom namespace"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>There are several reasons you might want this: </p> <ul><li>A custom namespace can be used to hold content that should not be shown on the search results page, for example pages that are used only for <a href="/wiki/Special:MyLanguage/transclusion" title="Special:MyLanguage/transclusion">transclusion</a>.</li> <li>Certain namespaces require additional privilege(s) for editing.</li> <li>You want certain namespaces not to be subjected to certain limitations or default settings (<a href="/wiki/Special:MyLanguage/Manual:$wgNoFollowNsExceptions" title="Special:MyLanguage/Manual:$wgNoFollowNsExceptions">$wgNoFollowNsExceptions</a><span style="display:none"><a href="/wiki/Manual:$wgNoFollowNsExceptions" title="Manual:$wgNoFollowNsExceptions"> </a></span> for example)</li> <li>A uniform prefix for specific content(s), which is searchable for that namespace only</li> <li>If you're a MW developer, sometimes you need to have a custom <a href="/wiki/Special:MyLanguage/Extension_default_namespaces" title="Special:MyLanguage/Extension default namespaces">namespace for your extension(s)</a></li></ul> <div class="mw-heading mw-heading2"><h2 id="Dealing_with_existing_pages">Dealing with existing pages</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=6" title="Edit section: Dealing with existing pages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>When storing page records, MediaWiki uses a namespace's numerical index, along with the remaining title text. Thus, when a page is created in a namespace that doesn't exist, e.g. "Bar:Some page", it is treated as being in the main namespace. </p><p>This can cause problems if adding a custom namespace definition for "Bar" at a later date, as MediaWiki will look for a page indexed via the proper namespace, but won't be able to find it, thus making the content inaccessible. </p><p>To correct this problem, there are three main approaches. </p> <div class="mw-heading mw-heading3"><h3 id="Move_conflicting_pages">Move conflicting pages</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=7" title="Edit section: Move conflicting pages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>If the number of pages affected is small (e.g. "Bar" held five pages created before the namespace was defined in the site configuration), then the following approach might be suitable: </p> <ol><li>Comment out the namespace definition in the configuration file</li> <li>Access each affected page, and move it out of the pseudo-namespace, e.g. move "Bar:Some page" to "Bar2:Some page"</li> <li>Un-comment the namespace definition</li> <li>Move the affected pages back into the new namespace</li></ol> <div class="mw-heading mw-heading3"><h3 id="Use_a_maintenance_script">Use a maintenance script</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=8" title="Edit section: Use a maintenance script"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Within the <b>maintenance</b> directory, there is a maintenance script which performs the above operation more effectively for a large number of pages: <b><a href="/wiki/Special:MyLanguage/Manual:NamespaceDupes.php" title="Special:MyLanguage/Manual:NamespaceDupes.php">NamespaceDupes.php</a><span style="display:none"><a href="/wiki/Manual:NamespaceDupes.php" title="Manual:NamespaceDupes.php"> </a></span></b> It is simple to use, but as with all MediaWiki maintenance scripts, consult the available usage information first (use <code>--help</code> as an option). </p> <div class="mw-heading mw-heading3"><h3 id="Use_a_database_query">Use a database query</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=9" title="Edit section: Use a database query"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>To move all pages "Bar:Some page" into namespace 3000, make the following database query: </p> <div class="mw-highlight mw-highlight-lang-sql mw-content-ltr" dir="ltr"><pre><span></span><span class="k">UPDATE</span><span class="w"> </span><span class="n">page</span><span class="w"> </span><span class="k">SET</span> <span class="n">page_title</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">REPLACE</span><span class="p">(</span><span class="n">page_title</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;Bar:&#39;</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;&#39;</span><span class="p">),</span> <span class="n">page_namespace</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">3000</span> <span class="k">WHERE</span><span class="w"> </span><span class="n">page_title</span><span class="w"> </span><span class="k">LIKE</span><span class="w"> </span><span class="s1">&#39;Bar:%&#39;</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="n">page_namespace</span><span class="o">=</span><span class="mi">0</span> </pre></div> <p>To handle discussion pages: </p> <div class="mw-highlight mw-highlight-lang-sql mw-content-ltr" dir="ltr"><pre><span></span><span class="k">UPDATE</span><span class="w"> </span><span class="n">page</span><span class="w"> </span><span class="k">SET</span> <span class="n">page_title</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">REPLACE</span><span class="p">(</span><span class="n">page_title</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;Bar_talk:&#39;</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;&#39;</span><span class="p">),</span> <span class="n">page_namespace</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">3001</span> <span class="k">WHERE</span><span class="w"> </span><span class="n">page_title</span><span class="w"> </span><span class="k">LIKE</span><span class="w"> </span><span class="s1">&#39;Bar_talk:%&#39;</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="n">page_namespace</span><span class="o">=</span><span class="mi">1</span> </pre></div> <p>After such fiddling, run the <a href="/wiki/Special:MyLanguage/Manual:refreshLinks.php" title="Special:MyLanguage/Manual:refreshLinks.php">refreshLinks.php</a><span style="display:none"><a href="/wiki/Manual:RefreshLinks.php" title="Manual:RefreshLinks.php"> </a></span> script and the <a href="/wiki/Special:MyLanguage/Manual:updateSearchIndex.php" title="Special:MyLanguage/Manual:updateSearchIndex.php">updateSearchIndex.php</a><span style="display:none"><a href="/wiki/Manual:UpdateSearchIndex.php" title="Manual:UpdateSearchIndex.php"> </a></span> script to update internal links and search results in your wiki. Note that <i>external</i> search engines like Google will take some time to update their index. </p> <div class="mw-heading mw-heading2"><h2 id="Removing_custom_namespaces">Removing custom namespaces</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=10" title="Edit section: Removing custom namespaces"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The problem addressed above also occurs when a custom namespace definition is removed; MediaWiki is no longer aware of the numerical index for the namespace, and attempts to search the main namespace for the desired pages, leading to inaccessible content. This is a rare occurrence, since most sites will not need namespaces <i>removed</i>, but it is a problem. (See <a class="external text" href="https://lists.wikimedia.org/pipermail/mediawiki-l/2011-January/036525.html">mailing list discussion</a>). </p><p>Example on how to remove <a href="/wiki/Special:MyLanguage/Extension:Flow" title="Special:MyLanguage/Extension:Flow">Flow</a><span style="display:none"><a href="/wiki/Extension:Flow" class="mw-redirect" title="Extension:Flow"> </a></span> and the Topic namespace: </p> <ul><li>Uninstall Flow</li> <li>Temporarily add $wgExtraNamespaces[2600] = 'Topic'; to the config</li> <li>Use deleteBatch.php to delete all pages in the Topic namespace</li> <li>Remove the $wgExtraNamespaces config</li></ul> <div class="mw-heading mw-heading2"><h2 id="Renaming_custom_namespaces">Renaming custom namespaces</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=11" title="Edit section: Renaming custom namespaces"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Suppose that you need to rename custom namespace "Foo" to "New" without performing a mass move of pages. The easiest way to achieve this is to preserve the namespace ID (here "<code>3000</code>") as well as the namespace constant (here "<code>NS_FOO</code>"), modify the (visible) namespace title and add the old one as an alias. </p><p> change </p><div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nb">define</span><span class="p">(</span><span class="s2">&quot;NS_FOO&quot;</span><span class="p">,</span> <span class="mi">3000</span><span class="p">);</span> <span class="nv">$wgExtraNamespaces</span><span class="p">[</span><span class="nx">NS_FOO</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;Foo&quot;</span><span class="p">;</span> </pre></div><p> to </p><div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nb">define</span><span class="p">(</span><span class="s2">&quot;NS_FOO&quot;</span><span class="p">,</span> <span class="mi">3000</span><span class="p">);</span> <span class="nv">$wgExtraNamespaces</span><span class="p">[</span><span class="nx">NS_FOO</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;New&quot;</span><span class="p">;</span> <span class="nv">$wgNamespaceAliases</span><span class="p">[</span><span class="s1">&#39;Foo&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="nx">NS_FOO</span><span class="p">;</span> </pre></div> <div class="mw-heading mw-heading2"><h2 id="Avoid_namespace_conflicts">Avoid namespace conflicts</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=12" title="Edit section: Avoid namespace conflicts"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In order for you to avoid namespace conflicts e.g. your namespace has the same number as a namespace defined by an <a href="/wiki/Special:MyLanguage/Category:Extensions" title="Special:MyLanguage/Category:Extensions">extension</a>, the <a href="/wiki/Special:MyLanguage/Extension_namespace_registration" title="Special:MyLanguage/Extension namespace registration">extension namespace</a> list shows you which numbers to avoid to prevent conflicts. </p><p>Defining <a href="/wiki/Special:MyLanguage/Manual:$wgNamespacesToBeSearchedDefault" title="Special:MyLanguage/Manual:$wgNamespacesToBeSearchedDefault">$wgNamespacesToBeSearchedDefault</a><span style="display:none"><a href="/wiki/Manual:$wgNamespacesToBeSearchedDefault" title="Manual:$wgNamespacesToBeSearchedDefault"> </a></span>, <a href="/wiki/Special:MyLanguage/Manual:$wgNamespacesWithSubpages" title="Special:MyLanguage/Manual:$wgNamespacesWithSubpages">$wgNamespacesWithSubpages</a><span style="display:none"><a href="/wiki/Manual:$wgNamespacesWithSubpages" title="Manual:$wgNamespacesWithSubpages"> </a></span>, $wgContentNamespaces or <a href="/wiki/Special:MyLanguage/Manual:$wgNamespaceAliases" title="Special:MyLanguage/Manual:$wgNamespaceAliases">$wgNamespaceAliases</a><span style="display:none"><a href="/wiki/Manual:$wgNamespaceAliases" title="Manual:$wgNamespaceAliases"> </a></span> for an ID not associated to any existing namespace in $wgExtraNamespaces doesn't break the wiki; MediaWiki gracefully ignores such configurations. </p> <div class="mw-heading mw-heading2"><h2 id="Styling_namespaces">Styling namespaces</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=13" title="Edit section: Styling namespaces"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>For example, to set the background color of pages in a particular namespace (and its associated talk namespace) you can add the following code to your <a href="/wiki/MediaWiki:Common.css" title="MediaWiki:Common.css">common.css</a>: </p> <div class="mw-highlight mw-highlight-lang-css mw-content-ltr" dir="ltr"><pre><span></span><span class="p">.</span><span class="nc">ns-3000</span><span class="w"> </span><span class="p">#</span><span class="nn">content</span><span class="o">,</span><span class="w"> </span><span class="p">.</span><span class="nc">ns-3001</span><span class="w"> </span><span class="p">#</span><span class="nn">content</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">background-color</span><span class="p">:</span><span class="w"> </span><span class="mh">#f3f3ff</span><span class="p">;</span><span class="w"> </span><span class="p">}</span> <span class="p">.</span><span class="nc">ns-3000</span><span class="w"> </span><span class="nt">div</span><span class="p">.</span><span class="nc">thumb</span><span class="o">,</span><span class="w"> </span><span class="p">.</span><span class="nc">ns-3001</span><span class="w"> </span><span class="nt">div</span><span class="p">.</span><span class="nc">thumb</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">border-color</span><span class="p">:</span><span class="w"> </span><span class="mh">#f3f3ff</span><span class="p">;</span><span class="w"> </span><span class="p">}</span> </pre></div> <p>where <code>3000</code> is the namespace's index and <code>#f3f3ff</code> is <span style="background-color: #f3f3ff">the color you want as its background color</span>. </p><p>You might also want to change the name of the tab from its default (the namespace's name). This is located in your system messages at MediaWiki:nstab-<i>namespace</i>. </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=14" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Special:MyLanguage/Manual:Namespace" title="Special:MyLanguage/Manual:Namespace">Manual:Namespace</a><span style="display:none"><a href="/wiki/Manual:Namespace" title="Manual:Namespace"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Namespace_manager" title="Special:MyLanguage/Namespace manager">Namespace manager</a><span style="display:none"><a href="/wiki/Namespace_manager" title="Namespace manager"> </a></span> - as originally proposed for MW1.6-wikidata and its successors. Currently in use by the OmegaWiki project.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Site_administration">Site administration</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=15" title="Edit section: Site administration"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Special:MyLanguage/Manual:Configuration_settings" title="Special:MyLanguage/Manual:Configuration settings">Manual:Configuration settings</a><span style="display:none"><a href="/wiki/Manual:Configuration_settings" title="Manual:Configuration settings"> </a></span> <ul><li><a href="/wiki/Special:MyLanguage/Manual:Configuration_settings#Namespaces" title="Special:MyLanguage/Manual:Configuration settings">Manual:Configuration settings#Namespaces</a><span style="display:none"><a href="/wiki/Manual:Configuration_settings#Namespaces" title="Manual:Configuration settings"> </a></span></li> <li><code><a href="/wiki/Special:MyLanguage/Manual:$wgNamespacesToBeSearchedDefault" title="Special:MyLanguage/Manual:$wgNamespacesToBeSearchedDefault">$wgNamespacesToBeSearchedDefault</a><span style="display:none"><a href="/wiki/Manual:$wgNamespacesToBeSearchedDefault" title="Manual:$wgNamespacesToBeSearchedDefault"> </a></span></code></li></ul></li> <li><a href="/wiki/Special:MyLanguage/Manual:Maintenance_scripts" title="Special:MyLanguage/Manual:Maintenance scripts">Maintenance scripts</a><span style="display:none"><a href="/wiki/Manual:Maintenance_scripts" title="Manual:Maintenance scripts"> </a></span></li></ul> <div class="mw-heading mw-heading3"><h3 id="Extensions">Extensions</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=16" title="Edit section: Extensions"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Special:MyLanguage/Category:Namespace_extensions" title="Special:MyLanguage/Category:Namespace extensions">Category:Namespace extensions</a><span style="display:none"><a href="/wiki/Category:Namespace_extensions" title="Category:Namespace extensions"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Extension:NamespaceManager" title="Special:MyLanguage/Extension:NamespaceManager">Extension:NamespaceManager</a><span style="display:none"><a href="/wiki/Extension:NamespaceManager" title="Extension:NamespaceManager"> </a></span> - for management of namespaces</li> <li><a href="/wiki/Special:MyLanguage/Extension:BlueSpiceNamespaceManager" title="Special:MyLanguage/Extension:BlueSpiceNamespaceManager">Extension:BlueSpiceNamespaceManager</a><span style="display:none"><a href="/wiki/Extension:BlueSpiceNamespaceManager" title="Extension:BlueSpiceNamespaceManager"> </a></span> - lets you create custom namespaces</li> <li><a href="/wiki/Special:MyLanguage/Extension:SpecialNamespaces" title="Special:MyLanguage/Extension:SpecialNamespaces">Extension:SpecialNamespaces</a><span style="display:none"><a href="/wiki/Extension:SpecialNamespaces" title="Extension:SpecialNamespaces"> </a></span> - a modified version of the <a href="/wiki/Special:MyLanguage/Extension:Interwiki" title="Special:MyLanguage/Extension:Interwiki">Extension:Interwiki</a><span style="display:none"><a href="/wiki/Extension:Interwiki" title="Extension:Interwiki"> </a></span> which changes it to provide a namespace manager as a special page.</li> <li><a href="/wiki/Special:MyLanguage/Extension:Lockdown" title="Special:MyLanguage/Extension:Lockdown">Extension:Lockdown</a><span style="display:none"><a href="/wiki/Extension:Lockdown" title="Extension:Lockdown"> </a></span> - to control access to namespaces</li></ul> <div class="mw-heading mw-heading3"><h3 id="For_extension_developers">For extension developers</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Manual:Using_custom_namespaces&amp;action=edit&amp;section=17" title="Edit section: For extension developers"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Special:MyLanguage/Extension_namespace_registration" title="Special:MyLanguage/Extension namespace registration">Extension namespace registration</a><span style="display:none"><a href="/wiki/Extension_namespace_registration" class="mw-redirect" title="Extension namespace registration"> </a></span> - List of custom namespaces registered by extensions. If you define a constant for a custom namespace, list it here, too.</li></ul> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐568dbbbfd9‐cgl59 Cached time: 20241111060530 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.421 seconds Real time usage: 0.542 seconds Preprocessor visited node count: 3429/1000000 Post‐expand include size: 27895/2097152 bytes Template argument size: 13204/2097152 bytes Highest expansion depth: 14/100 Expensive parser function count: 42/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 17648/5000000 bytes Lua time usage: 0.084/10.000 seconds Lua memory usage: 1612232/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 317.192 1 -total 67.88% 215.313 48 Template:Ll 38.93% 123.473 96 Template:Translatable 33.67% 106.810 48 Template:Pagelang 16.78% 53.236 1 Template:MW_version 15.57% 49.387 1 Template:MW_version/layout 9.69% 30.737 10 Template:Wg 7.03% 22.286 8 Template:TNTN 5.91% 18.747 1 Template:Note 5.71% 18.118 1 Template:Dir --> <!-- Saved in parser cache with key mediawikiwiki:pcache:idhash:7266-0!canonical and timestamp 20241111060530 and revision id 6800497. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://www.mediawiki.org/w/index.php?title=Manual:Using_custom_namespaces&amp;oldid=6800497">https://www.mediawiki.org/w/index.php?title=Manual:Using_custom_namespaces&amp;oldid=6800497</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/wiki/Category:MediaWiki_configuration" title="Category:MediaWiki configuration">MediaWiki configuration</a></li><li><a href="/wiki/Category:Namespace" title="Category:Namespace">Namespace</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 16 October 2024, at 17:04.</li> <li id="footer-info-copyright">Text is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. Text in <a class="external text" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents">the Help: namespace</a> is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 License</a>. By using this site, you agree to the <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> and <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy Policy</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Project:About">About mediawiki.org</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Project:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/www.mediawiki.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//m.mediawiki.org/w/index.php?title=Manual:Using_custom_namespaces&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-gqt92","wgBackendResponseTime":160,"wgPageParseReport":{"limitreport":{"cputime":"0.421","walltime":"0.542","ppvisitednodes":{"value":3429,"limit":1000000},"postexpandincludesize":{"value":27895,"limit":2097152},"templateargumentsize":{"value":13204,"limit":2097152},"expansiondepth":{"value":14,"limit":100},"expensivefunctioncount":{"value":42,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":17648,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 317.192 1 -total"," 67.88% 215.313 48 Template:Ll"," 38.93% 123.473 96 Template:Translatable"," 33.67% 106.810 48 Template:Pagelang"," 16.78% 53.236 1 Template:MW_version"," 15.57% 49.387 1 Template:MW_version/layout"," 9.69% 30.737 10 Template:Wg"," 7.03% 22.286 8 Template:TNTN"," 5.91% 18.747 1 Template:Note"," 5.71% 18.118 1 Template:Dir"]},"scribunto":{"limitreport-timeusage":{"value":"0.084","limit":"10.000"},"limitreport-memusage":{"value":1612232,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-568dbbbfd9-cgl59","timestamp":"20241111060530","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10