To prevent conflicts in new namespaces added by extensions, please list your extension's custom namespaces here on the list of extension default namespaces .
If you define a constant for a custom namespace, list it here, too.
Note that these are only default namespaces.
All extensions defining new namespaces should provide the installer with a method of configuring the extension to use a different range of namespaces for its custom namespaces.
In general, extensions should reserve namespace numbers in blocks of 10, where no known namespaces are already added by MediaWiki core or any known extensions (see discussion ).
Each block is intended for an extension to use sequentially; in particular, extensions that add more than one custom namespace should not reserve an additional block for each additional namespace unless the extension has exhausted its current block.
Namespace numbers between 3000 and 4999 should not be used; these numbers are reserved for wikis to define their custom namespaces.
Furthermore, care should be taken when selecting numbers under 1000 since this range has historically been quite heavily used by extensions and sites alike (numbers under 200 should probably be avoided altogether).
Naturally, some namespaces listed on this page will overlap and violate the recommendations.
The recommendations are good practices new extensions should adhere to avoid conflicts; for legacy reasons, old extensions that have already created conflicts and bad practices can't simply be changed but are listed here to help avoid even more conflicts.
This page in a nutshell:
MediaWiki core uses namespace numbers under 100 . These must never be used by extensions or sites.
Avoid namespace numbers 100–199 . These were historically used by both extensions and sites.
Custom namespaces on sites should use namespace numbers 3,000–4,999 . These should not be used by extensions.
Extensions should use namespace numbers between 200 and 2,999 , or between 5,000–9,999 .
Avoid namespace numbers above 10,000. These are reserved for future use.
Warning Warning: Do not use negative IDs for extensions. Ever.
MediaWiki Core
ID
Name
Constant
Remark
Two namespaces have negative indexes and have special purposes. You cannot create or delete pages in these namespaces, and there are no corresponding discussion namespaces.
-2
Media:
NS_MEDIA
Alias for direct links to media files
-1
Special:
NS_SPECIAL
Holds special pages
MediaWiki Core
ID
Name
Constant
Remark
0
:
NS_MAIN
1
Talk:
NS_TALK
2
User:
NS_USER
3
User_talk:
NS_USER_TALK
4
Project:
NS_PROJECT
5
Project_talk:
NS_PROJECT_TALK
6
File:
NS_FILE
7
File_talk:
NS_FILE_TALK
8
MediaWiki:
NS_MEDIAWIKI
9
MediaWiki_talk:
NS_MEDIAWIKI_TALK
10
Template:
NS_TEMPLATE
11
Template_talk:
NS_TEMPLATE_TALK
12
Help:
NS_HELP
13
Help_talk:
NS_HELP_TALK
14
Category:
NS_CATEGORY
15
Category_talk:
NS_CATEGORY_TALK
If the core is to define any new default namespace, it will likely continue from here with 16–17; please take care to avoid this area.
LiquidThreads
ID
Name
Constant
Remark
90
Thread:
NS_LQT_THREAD
91
Thread_talk:
NS_LQT_THREAD_TALK
92
Summary:
NS_LQT_SUMMARY
93
Summary_talk:
NS_LQT_SUMMARY_TALK
Warning Warning: The namespaces in the range 100–199 have historically been heavily used by both extensions and individual wikis for their custom namespaces. Because of this, it is generally recommended to avoid this range for new namespaces.
Many Wikimedia Foundation wikis have site-specific namespaces in this range.
Including the Portal namespace (100) on most Wikipedia projects, Creator namespace (100) on Wikimedia Commons, the Extension namespace (102) on mediawiki.org, the Subject namespace (112) on English Wikibooks, and many others.
Semantic MediaWiki
ID
Name
Constant
Remark
100
Relation:
SMW_NS_RELATION
No longer used as of version 1.0 and removed completely in 1.5.0.
101
Relation_talk:
SMW_NS_RELATION_TALK
No longer used as of version 1.0 and removed completely in 1.5.0.
102
Property:
SMW_NS_PROPERTY
Note Note: Namespace name also used by Wikibase
103
Property_talk:
SMW_NS_PROPERTY_TALK
Note Note: Namespace name also used by Wikibase
104
Type:
SMW_NS_TYPE
No longer used, as of version 1.6.0 and removed in 3.0.0.
105
Type_talk:
SMW_NS_TYPE_TALK
No longer used, as of version 1.6.0 and removed in 3.0.0.
108
Concept:
SMW_NS_CONCEPT
109
Concept_talk:
SMW_NS_CONCEPT_TALK
112
Rule:
SMW_NS_RULE
Introduced in version 3.0.0, though not yet used.
113
Rule_talk:
SMW_NS_RULE_TALK
Introduced in version 3.0.0, though not yet used.
114
smw/schema:
SMW_NS_SCHEMA
Introduced in version 3.0.0.
115
smw/schema_talk:
SMW_NS_SCHEMA_TALK
Introduced in version 3.0.0.
Page Forms
ID
Name
Constant
Remark
106
Form:
PF_NS_FORM
Before the extension was renamed, this namespace's constant name was SF_NS_FORM
.
107
Form_talk:
PF_NS_FORM_TALK
Before the extension was renamed, this namespace's constant name was SF_NS_FORM_TALK
.
DPLforum
ID
Name
Constant
Remark
110
Forum:
NS_FORUM
Before r93293 , this namespace number was not hardcoded, and a number of wikis previously used other numbers, with 110 used for unrelated namespaces.
111
Forum_talk:
NS_FORUM_TALK
Before r93293 , this namespace number was not hard coded, and several wikis previously used other numbers, with 111 used for unrelated namespaces.
Semantic Drilldown
ID
Name
Constant
Remark
170
Filter:
SD_NS_FILTER
Stopped being used in version 2.0; removed entirely in version 2.1
171
Filter_talk:
SD_NS_FILTER_TALK
Stopped being used in version 2.0; removed entirely in version 2.1
Meta-Wiki (meta.wikimedia.org) has custom namespaces in this range:
SocialProfile
ID
Name
Constant
Remark
200
UserWiki:
NS_USER_WIKI
201
UserWiki_talk:
NS_USER_WIKI_TALK
Since rev:93317 .
202
User_profile:
NS_USER_PROFILE
203
User_profile_talk:
NS_USER_PROFILE_TALK
Since rev:93317 .
examples
ID
Name
Constant
Remark
234
XML:
NS_XML
235
XML_talk:
NS_XML_TALK
Proofread Page
ID
Name
Constant
Remark
250
Page:
$wgProofreadPageNamespaceIds['page']
251
Page_talk:
ID is $wgProofreadPageNamespaceIds['page'] + 1
252
Index:
$wgProofreadPageNamespaceIds['index']
253
Index_talk:
ID is $wgProofreadPageNamespaceIds['index'] + 1
Widgets
ID
Name
Constant
Remark
274
Widget:
NS_WIDGET
275
Widget_talk:
NS_WIDGET_TALK
PollNY
ID
Name
Constant
Remark
300
Poll:
NS_POLL
301
Poll_talk:
NS_POLL_TALK
CETEIcean
ID
Name
Constant
Remark
350
Cetei:
NS_CETEI
XML (main) and wikitext (/doc subpage)
351
Cetei_talk:
NS_CETEI_TALK
Video
ID
Name
Constant
Remark
400
Video:
NS_VIDEO
401
Video_talk:
NS_VIDEO_TALK
Maps
ID
Name
Constant
Remark
420
GeoJson:
NS_GEO_JSON
Formerly named "Layer" (Maps_NS_LAYER
).
421
GeoJson_talk:
NS_GEO_JSON_TALK
Formerly named "Layer_talk" (Maps_NS_LAYER_TALK
)
MediaUploader is a fork/replacement of UploadWizard. These two extensions cannot operate on a wiki at the same time.
UploadWizard and MediaUploader
ID
Name
Constant
Remark
460
Campaign:
NS_CAMPAIGN
JSON describing metadata for an Upload Campaign
461
Campaign_talk:
NS_CAMPAIGN_TALK
JsonConfig
ID
Name
Constant
Remark
482
Config:
NS_CONFIG
JSON Configuration blob used by multiple systems
483
Config_talk:
NS_CONFIG_TALK
486
Data:
NS_DATA
Additional JSON data. As of 2015 you can store arbitrary valid JSON in the subnamespace Data:Json, e.g., Data:Json:MyDataset . This is a developing convention on Wikimedia projects that use JsonConfig and Graph. Note Note: Namespace and constant name also used by LinkedWiki
487
Data_talk:
NS_DATA_TALK
Graph
ID
Name
Constant
Remark
484
Graph:
Graph data. This is a convention on Wikimedia projects that use the extension, the extension doesn't define a particular namespace.
485
Graph_talk:
NotebookViewer
ID
Name
Constant
Remark
486
Notebook:
NS_NOTEBOOK
Jupyter Notebook data
FileAnnotations
ID
Name
Constant
Remark
492
File_annotations:
NS_FILE_ANNOTATIONS
493
File_annotations_talk:
NS_FILE_ANNOTATIONS_TALK
SimpleBlogPage
ID
Name
Constant
Remark
502
User_blog:
NS_USER_BLOG
503
User_blog_talk:
NS_USER_BLOG_TALK
FanBoxes
ID
Name
Constant
Remark
600
UserBox:
NS_FANTAG
601
UserBox_talk:
NS_FANTAG_TALK
MintyDocs
ID
Name
Constant
Remark
620
Draft:
MD_NS_DRAFT
The PageTriage extension also makes use of a "Draft" namespace, although it does not define one; the administrator must define one themselves.
621
Draft_talk:
MD_NS_DRAFT_TALK
EntitySchema
ID
Name
Constant
Remark
640
EntitySchema:
NS_ENTITYSCHEMA_JSON
Note Note: Before gerrit:506471 , this namespace was named "Schema" with the constant NS_WBSCHEMA_JSON
.
641
EntitySchema_talk:
NS_ENTITYSCHEMA_JSON_TALK
Note Note: Before gerrit:506471 this namespace was named "Schema talk" with the constant NS_WBSCHEMA_JSON_TALK
.
SemanticActions
ID
Name
Constant
Remark
690
Action:
NS_ACTION
691
Action_Talk:
NS_ACTION_TALK
692
Label:
NS_LABEL
693
Label_Talk:
NS_LABEL_TALK
LinkFilter
ID
Name
Constant
Remark
700
Link:
NS_LINK
701
Link_talk:
NS_LINK_TALK
TimedMediaHandler
ID
Name
Constant
Remark
710
TimedText:
NS_TIMEDTEXT
ID can be changed with $wgTimedTextNS
. Namespace number was formerly 700.
711
TimedText_talk:
NS_TIMEDTEXT_TALK
ID can be changed with $wgTimedTextNS
. Namespace number was formerly 701.
While this extension does not currently reserve a namespace in its code, it highly recommends creating a custom one for storing access control lists. Therefore, this has been reserved for sysadmins to choose a namespace easily should they not want the pressure to choose a random namespace.
AccessControl
ID
Name
Constant
Remark
730
AccessControlGroup:
NS_ACCESSCONTROLGROUP
731
AccessControlGroup_talk:
NS_ACCESSCONTROLGROUP_TALK
Flex Diagrams
ID
Name
Constant
Remark
740
BPMN:
FD_NS_BPMN
741
BPMN talk:
FD_NS_BPMN_TALK
742
Gantt:
FD_NS_GANTT
743
Gantt talk:
FD_NS_GANTT_TALK
744
Mermaid:
FD_NS_MERMAID
745
Mermaid talk:
FD_NS_MERMAID_TALK
746
Drawio:
FD_NS_DRAWIO
747
Drawio talk:
FD_NS_DRAWIO_TALK
Scribunto
ID
Name
Constant
Remark
828
Module:
NS_MODULE
829
Module_talk:
NS_MODULE_TALK
SecurePoll
ID
Name
Constant
Remark
830
SecurePoll:
NS_SECUREPOLL
Set $wgSecurePollUseNamespace true to enable.
831
SecurePoll_talk:
NS_SECUREPOLL_TALK
Set $wgSecurePollUseNamespace true to enable.
CommentStreams
ID
Name
Constant
Remark
844
CommentStreams:
NS_COMMENTSTREAMS
may be overridden by $wgCommentStreamsNamespaceIndex
845
CommentStreams_talk:
NS_COMMENTSTREAMS_TALK
Presently unused.
CentralNotice
ID
Name
Constant
Remark
866
CNBanner:
NS_CN_BANNER
Staging area for pending banner translations.
867
CNBanner_talk:
NS_CN_BANNER_TALK
Presently unused.
Piwo
ID
Name
Constant
Remark
1024
Gram:
NS_GRAM
1025
Gram_talk:
NS_GRAM_TALK
IIIF
ID
Name
Constant
Remark
1230
IIIF:
NS_IIIF
Holds JSON for IIIF / IIIF-related content.
1231
IIIF_talk:
NS_IIIF_TALK
Reconciliation API (forthcoming extension)
ID
Name
Constant
Remark
1240
Recon:
NS_RECON
Holds JSON for profiling schemas.
1241
Recon talk:
NS_RECON_TALK
Wikistories
ID
Name
Constant
Remark
1704
Story:
NS_STORY
1705
Story_talk:
NS_STORY_TALK
CampaignEvents
ID
Name
Constant
Remark
1728
Event:
NS_EVENT
1729
Event_talk:
NS_EVENT_TALK
VisualData
ID
Name
Constant
Remark
2220
Data:
NS_DATA
Note Note: optional manual config Extension:VisualData#Example_configuration
2228
VisualDataSchema:
NS_VISUALDATASCHEMA
2229
VisualDataSchema talk:
NS_VISUALDATASCHEMA_TALK
2230
VisualDataQuery:
NS_VISUALDATAQUERY
2231
VisualDataQuery talk:
NS_VISUALDATAQUERY_TALK
ContactManager
ID
Name
Constant
Remark
2260
ContactManager:
NS_CONTACTMANAGER
2261
ContactManagerTalk talk:
NS_CONTACTMANAGER
Semantic_Genealogy
ID
Name
Constant
Remark
2700
Genealogy:
NS_SGENEALOGY
2701
Genealogy_talk:
NS_SGENEALOGY_TALK
2702
Genealogy_template:
NS_SGENEALOGY_TEMPLATE
2703
Genealogy_template_talk:
NS_SGENEALOGY_TEMPLATE_TALK
2704
Genealogy_form:
NS_SGENEALOGY_FORM
2705
Genealogy_form_talk:
NS_SGENEALOGY_FORM_TALK
DataMaps
ID
Name
Constant
Remark
2900
Map:
NS_MAP
Allows users to create maps that can later be included on other pages. Only enabled if $wgDataMapsNamespaceId
is set to managed
(default).
2901
Map_talk:
NS_MAP_TALK
ID 3000+: Reserved for sites' custom namespaces[ edit ]
The range of 3000–4999 is reserved for sites to define their custom namespaces without fear of conflict. No known extensions define namespaces in this range; new extensions should also avoid it.
In accordance with this, the NamespaceManager , BlueSpice NamespaceManager , and ManageWiki extensions create custom namespaces using the range from 3000 to 4999.
Newsletter
ID
Name
Constant
Remark
5500
Newsletter:
NS_NEWSLETTER
5501
Newsletter_talk:
NS_NEWSLETTER_TALK
MWUnit
ID
Name
Constant
Remark
5750
Test:
NS_TEST
5751
Test_talk:
NS_TEST_TALK
OpenSemanticLab
ID
Name
Constant
Remark
7010
Material:
NS_MATERIAL
7011
Material_Talk:
NS_MATERIAL_TALK
7020
Device:
NS_DEVICE
7021
Device_Talk:
NS_DEVICE_TALK
7022
Software:
NS_SOFTWARE
7023
Software_Talk:
NS_SOFTWARE_TALK
7030
Location:
NS_LOCATION
7031
Location_Talk:
NS_LOCATION_TALK
7040
FileType:
NS_FILETYPE
7041
FileType_Talk:
NS_FILETYPE_TALK
7042
DataType:
NS_DATATYPE
7043
DataType_Talk:
NS_DATATYPE_TALK
7050
OU:
NS_OU
7051
OU_Talk:
NS_OU_TALK
7060
Project:
NS_OSL_PROJECT
7061
Project_Talk:
NS_OSL_PROJECT_TALK
7070
Person:
NS_PERSON
7071
Person_Talk:
NS_PERSON_TALK
7080
Model:
NS_MODEL
7081
Model_Talk:
NS_MODEL_TALK
7100
LabNote:
NS_LABNOTE
7101
LabNote_Talk:
NS_LABNOTE_TALK
7110
LabProcess:
NS_LABPROCESS
7111
LabProcess_Talk:
NS_LABPROCESS_TALK
7120
LabObject:
NS_LABOBJECT
7121
LabObject_Talk:
NS_LABOBJECT_TALK
7200
OslTemplate:
NS_OSLTEMPLATE
7201
OslTemplate_Talk:
NS_OSLTEMPLATE_TALK
7210
OslForm:
NS_OSLFORM
7211
OslForm_Talk:
NS_OSLFORM_TALK
7300
Field:
NS_FIELD
7301
Field_Talk:
NS_FIELD_TALK
7310
Term:
NS_TERM
7311
Term_Talk:
NS_TERM_TALK
7320
Statement:
NS_STATEMENT
7321
Statement_Talk:
NS_STATEMENT_TALK
7330
CR:
NS_CR
7331
CR_Talk:
NS_CR_TALK
LinkedWiki
ID
Name
Constant
Remark
10000
Data:
NS_DATA
Note Note: Constant name also used by JsonConfig
10002
UserData:
NS_USER_DATA
10010
Schema:
NS_SCHEMA
Note Note: Namespace name also used by EventLogging and (formerly) EntitySchema Note Note: Constant name also used by EventLogging
10011
Schema_talk:
NS_SCHEMA_TALK
Note Note: Namespace name also used by EventLogging and (formerly) EntitySchema Note Note: Constant name also used by EventLogging
10030
Datatype:
NS_DATATYPE
10031
Datatype_talk:
NS_DATATYPE_TALK
The WSSpaces extension uses namespace constants >50000 to allow users to define custom namespaces.
Archived extensions and removed namespaces[ edit ]
Several extensions that added new namespaces have since been archived, and some namespaces that were added by an extension were later removed; these are listed here since these namespaces may appear in old database dumps from wikis which used these extensions, and some old wikis may continue to use the extensions.
It is very strongly recommended to avoid reusing these namespace numbers, as wikis that previously used the old extensions will have log entries etc. related to those pages; however, these numbers can be reserved by new extensions if desired.
Extensions are listed here ordered by the first namespace number they added.
WikiLexicalData
ID
Name
Constant
Remark
16
Expression:
NS_EXPRESSION
17
Expression_talk:
24
DefinedMeaning:
NS_DEFINEDMEANING
25
DefinedMeaning_talk:
RefHelper
ID
Name
Constant
Remark
120
Cite:
NS_CITE
121
Cite_talk:
NS_CITE_TALK
DeleteQueue
ID
Name
Constant
Remark
140
Deletion:
NS_DELETION
200
Deletion discussion:
TrustedMath
ID
Name
Constant
Remark
262
Math:
NS_TRUSTEDMATH
263
Math_talk:
NS_TRUSTEDMATH_TALK
Extension:EmbedScript
ID
Name
Constant
Remark
280
JSApplet:
NS_JSAPPLET
281
JSApplet_talk:
NS_JSAPPLET_TALK
MOOC
ID
Name
Constant
Remark
350
Mooc:
NS_MOOC
351
Mooc_talk:
NS_MOOC_TALK
Wiki2LaTeX
ID
Name
Constant
Remark
400
Wiki2LaTeX:
NS_WIKI2LATEX
401
Wiki2LaTeX_talk:
NS_WIKI2LATEX_TALK
QuizTabulate
ID
Name
Constant
Remark
430
Quiz:
QuizTabulate_NS_QUIZ
431
Quiz_talk:
QuizTabulate_NS_QUIZ_TALK
Education Program
ID
Name
Constant
Remark
446
Education_Program:
EP_NS
447
Education_Program_talk:
EP_NS_TALK
BoilerRoom
ID
Name
Constant
Remark
450
Boilerplate:
NS_BOILERPLATE
Can be customized via $wgbrNamespaceIndex
. Used the number 300 prior to version 0.92.
451
Boilerplate_talk:
NS_BOILERPLATE_TALK
Can be customized via $wgbrNamespaceIndex
. Used the number 301 prior to version 0.92.
ZeroBanner
ID
Name
Constant
Remark
480
Zero:
NS_ZERO
JSON configuration (outdated) describing Zero site behavior for this carrier These namespaces are also defined in a test file for Extension:JsonConfig .
481
Zero_talk:
NS_ZERO_TALK
GWToolset
ID
Name
Constant
Remark
490
GWToolset:
NS_GWTOOLSET
491
GWToolset_talk:
NS_GWTOOLSET_TALK
OpenStackManager
ID
Name
Constant
Remark
498
Nova_Resource:
NS_NOVA_RESOURCE
Formerly used the number 488.
499
Nova_Resource_Talk:
NS_NOVA_RESOURCE_TALK
Formerly used the number 489.
666
Heira:
NS_HEIRA
667
Heira_Talk:
NS_HEIRA_TALK
XMLContent
ID
Name
Constant
Remark
580
XML:
NS_XML
581
XML_talk:
NS_XML_TALK
582
Schema:
NS_SCHEMA
583
Schema_talk:
NS_SCHEMA_TALK
584
XSLT:
NS_XSLT
585
XSLT_talk:
NS_XSLT_TALK
586
Editor:
NS_EDITOR
587
Editor_talk:
NS_EDITOR_TALK
588
PLML:
NS_PLML
The documentation of this extension's namespaces on this page was changed several times ; it is not known if these changes were correcting wrong information, or if the namespace data was repeatedly changed in the extension itself.
NagiosConfig
ID
Name
Constant
Remark
600
NagiosTemplate:
NS_NAGIOS_TEMPLATE
601
NagiosTemplate talk:
NS_NAGIOS_TEMPLATE_TALK
602
NagiosHostType:
NS_NAGIOS_HOSTTYPE
603
NagiosHostType talk:
NS_NAGIOS_HOSTTYPE_TALK
604
NagiosCommand:
NS_NAGIOS_COMMAND
605
NagiosCommand talk:
NS_NAGIOS_COMMAND_TALK
606
NagiosResource:
NS_NAGIOS_RESOURCE
607
NagiosResource talk:
NS_NAGIOS_RESOURCE_TALK
608
NagiosServiceCommand:
NS_NAGIOS_SERVICECOMMAND
609
NagiosServiceCommand talk:
NS_NAGIOS_SERVICECOMMAND_TALK
GitAccess
ID
Name
Constant
Remark
730
GitAccess_root:
NS_GITACCESS_ROOT
731
GitAccess_root_talk:
NS_GITACCESS_ROOT_TALK
QPoll
ID
Name
Constant
Remark
800
Interpretation:
NS_QP_INTERPRETATION
801
Interpretation_talk:
NS_QP_INTERPRETATION_TALK
QPoll reserves namespaces for interpretation scripts.
SemanticMustacheFormat
ID
Name
Constant
Remark
806
Mustache:
SRFM_NS_MUSTACHE
807
Mustache_talk:
SRFM_NS_MUSTACHE_TALK
Jade
ID
Name
Constant
Remark
810
Jade:
NS_JADE
811
Jade_talk:
NS_JADE_TALK
R
ID
Name
Constant
Remark
814
R:
NS_EXTR
Used for help pages and (interactive) examples.
815
R_talk:
NS_EXTR_TALK
Hidden pages require custom namespaces to be added manually, and it is recommended that namespace numbers start at 1000.
PackageForce
ID
Name
Constant
Remark
1300
PackageForce:
NS_PACKAGEFORCE
1301
PackageForce_talk:
NS_PACKAGEFORCE_TALK
Gadgets
ID
Name
Constant
Remark
2300
Gadget:
NS_GADGET
2301
Gadget_talk:
NS_GADGET_TALK
2302
Gadget_definition:
NS_GADGET_DEFINITION
2303
Gadget_definition_talk:
NS_GADGET_DEFINITION_TALK
CourseEditor
ID
Name
Constant
Remark
2800
Course:
NS_COURSE
2801
Course_talk:
NS_COURSE_TALK