Extension default namespaces

From MediaWiki.org
Jump to: navigation, search

To prevent conflicts in new namespaces added by extensions, please list your extension's namespace here. If a constant for the custom namespace exists, you can list it here too.

Note that these are only default namespaces. All extensions defining new namespaces should take care to provide the installer with a method of configuring the extension to use a different range of namespaces for its custom namespaces.

Naturally some namespaces listed on this page will overlap, and violate the recommendations listed here. The recommendations are good practices new extensions should try to adhere to to avoid conflicts; for legacy reasons, old extensions that have already created conflicts and bad practice can't simply be changed but are listed here to help avoid even more conflicts.

Negative IDs[edit | edit source]

Warning Warning: Do not use negative IDs for extensions. Ever.

MediaWiki Core
ID Name Constant Remark
Note Note:2 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

ID 0-99[edit | edit source]

MediaWiki Core[edit | edit source]

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
Note Note:If core is to define any new default namespace it will likely continue on from here with 16-17, please take care to avoid this area.

LiquidThreads[edit | edit source]

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

ID 100-199[edit | edit source]

Reserved for site admins[edit | edit source]

Warning Warning: The namespaces in 100-199 are reserved for site-specific namespaces, and should not be used by extensions. A few extensions have apparently used this area, so be careful using them. If you're writing a new extension you should never hardcode any namespaces inside the 100-199 range.

Semantic MediaWiki & Semantic Forms[edit | edit source]

Semantic MediaWiki & Semantic Forms
ID Name Constant Remark
100 Relation: SMW_NS_RELATION No longer used, as of version 1.0 (support dropped with 1.5.0).
101 Relation_talk: SMW_NS_RELATION_TALK No longer used, as of version 1.0 (support dropped with 1.5.0).
102 Property: SMW_NS_PROPERTY
103 Property_talk: SMW_NS_PROPERTY_TALK
104 Type: SMW_NS_TYPE No longer used, as of version 1.6.0 (still supported).
105 Type_talk: SMW_NS_TYPE_TALK No longer used, as of version 1.6.0 (still supported).
106 Form: SF_NS_FORM
107 Form_talk: SF_NS_FORM_TALK
108 Concept: SMW_NS_CONCEPT
109 Concept_talk: SMW_NS_CONCEPT_TALK

DPLforum[edit | edit source]

DPLforum
ID Name Constant Remark
110 Forum: NS_FORUM
111 Forum_talk: NS_FORUM_TALK

RefHelper[edit | edit source]

RefHelper
ID Name Constant Remark
120 Cite: NS_CITE
121 Cite_talk: NS_CITE_TALK

Semantic Access Control[edit | edit source]

Semantic Access Control
ID Name Constant Remark
160 UserGroup: ACL_NS_USERGROUP
162 ACL: ACL_NS_ACL

Semantic Drilldown[edit | edit source]

Semantic Drilldown
ID Name Constant Remark
170 Filter: SD_NS_FILTER
171 Filter_talk: SD_NS_FILTER_TALK

ID 200-299[edit | edit source]

SocialProfile[edit | edit source]

SocialProfile
ID Name Constant Remark
200 UserWiki: NS_USER_WIKI
201 UserWiki_talk: NS_USER_WIKI_TALK Since r93317.
202 User_profile: NS_USER_PROFILE
203 User_profile_talk: NS_USER_PROFILE_TALK Since r93317.

Proofread Page[edit | edit source]

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

TrustedMath[edit | edit source]

TrustedMath
ID Name Constant Remark
262 Math: NS_TRUSTEDMATH
263 Math_talk: NS_TRUSTEDMATH_TALK

Widgets[edit | edit source]

Widgets
ID Name Constant Remark
274 Widget: NS_WIDGET
275 Widget_talk: NS_WIDGET_TALK

ID 300-399[edit | edit source]

PollNY[edit | edit source]

PollNY
ID Name Constant Remark
300 Poll: NS_POLL
301 Poll_talk: NS_POLL_TALK

Semantic MediaWiki, Semantic Forms, and Semantic Drilldown[edit | edit source]

Warning Warning: Not completely documented yet.

Semantic MediaWiki, Semantic Forms, and Semantic Drilldown
ID Name Constant Remark
302 Property:
303 Property_talk:
304 Type:
305 Type_talk:
306 Form:
307 Form_talk:
308 Concept:
309 Concept_talk:
370 Filter:
371 Filter_talk:
Note Note:As used on several Wikia sites.

Semantic Image Annotator[edit | edit source]

Semantic Image Annotator
ID Name Constant Remark
380 ImageAnnotation: NS_IMAGEANNOTATION

Wikia[edit | edit source]

300 - 399. Wikia has been seen using namespaces in this range for its custom extensions and configurations. To avoid conflicts in case Wikia extensions are ported to work outside of Wikia it would be best to avoid defining new extensions that use this range. Wikia alters the namespaces for some extensions used on its own wikis. Please also take these into account while coming up with new namespace numbers to use in new extensions.

ID 400-499[edit | edit source]

Wiki2LaTeX[edit | edit source]

Wiki2LaTeX
ID Name Constant Remark
400 Wiki2LaTeX: NS_WIKI2LATEX
401 Wiki2LaTeX_talk: NS_WIKI2LATEX_TALK

Workflow[edit | edit source]

Workflow
ID Name Constant Remark
410 Workflow: NS_WORKFLOW Schemas for process modeling
411 Workflow_talk: NS_WORKFLOW_TALK

Maps[edit | edit source]

Maps
ID Name Constant Remark
420 Layer: Maps_NS_LAYER These can be overridden.
421 Layer_talk: Maps_NS_LAYER_TALK These can be overridden.

QuizTabulate[edit | edit source]

QuizTabulate
ID Name Constant Remark
430 Quiz: QuizTabulate_NS_QUIZ
431 Quiz_talk: QuizTabulate_NS_QUIZ_TALK

Education Program[edit | edit source]

Education Program
ID Name Constant Remark
446 Education_Program: EP_NS
447 Education_Program_talk: EP_NS_TALK

BoilerRoom[edit | edit source]

BoilerRoom
ID Name Constant Remark
450 Boilerplate: NS_BOILERPLATE
451 Boilerplate_talk: NS_BOILERPLATE_TALK

UploadWizard[edit | edit source]

UploadWizard
ID Name Constant Remark
460 Campaign: NS_CAMPAIGN JSON describing metadata for an Upload Campaign
461 Campaign_talk: NS_CAMPAIGN_TALK

EventLogging[edit | edit source]

EventLogging
ID Name Constant Remark
470 Schema: NS_SCHEMA JSON schemas describing data models
471 Schema_talk: NS_SCHEMA_TALK

ZeroRatedMobileAccess[edit | edit source]

ZeroRatedMobileAccess
ID Name Constant Remark
480 Zero: NS_ZERO JSON configuration describing Zero site behavior for this carrier
481 Zero_talk: NS_ZERO_TALK

JsonConfig[edit | edit source]

JsonConfig
ID Name Constant Remark
482 Config: NS_CONFIG JSON Configuration blob used by multiple systems
483 Config_talk: NS_CONFIG_TALK

OpenStackManager[edit | edit source]

OpenStackManager
ID Name Constant Remark
488 Nova_Resource: NS_NOVA_RESOURCE
489 Nova_Resource_talk: NS_NOVA_RESOURCE_TALK

GWToolset[edit | edit source]

GWToolset
ID Name Constant Remark
490 GWToolset: NS_GWTOOLSET
491 GWToolset_talk: NS_GWTOOLSET_TALK

ID 500-599[edit | edit source]

Some sites try to make use of the 500-599 range for site namespaces. To avoid conflicting with those sites it would be a good idea to avoid this range while creating new extensions.

BlogPage[edit | edit source]

BlogPage
ID Name Constant Remark
500 Blog: NS_BLOG
501 Blog_talk: NS_BLOG_TALK

ID 600-699[edit | edit source]

FanBoxes[edit | edit source]

FanBoxes
ID Name Constant Remark
600 UserBox: NS_FANTAG
601 UserBox_talk: NS_FANTAG_TALK

ID 700-799[edit | edit source]

LinkFilter[edit | edit source]

LinkFilter
ID Name Constant Remark
700 Link: NS_LINK Note Note: Also used by: Collaboration extension
701 Link_talk: NS_LINK_TALK Note Note: Also used by: Collaboration extension

TimedMediaHandler[edit | edit source]

TimedMediaHandler
ID Name Constant Remark
710 TimedText: NS_TIMEDTEXT
711 TimedText_talk: NS_TIMEDTEXT_TALK
Note Note:TimedMediaHandler reserves namespaces for timed text tracks.

ID 800-899[edit | edit source]

QPoll[edit | edit source]

QPoll
ID Name Constant Remark
800 Interpretation: NS_QP_INTERPRETATION
801 Interpretation_talk: NS_QP_INTERPRETATION_TALK
Note Note:QPoll reserves namespaces for interpretation scripts.

SemanticMustacheFormat[edit | edit source]

SemanticMustacheFormat
ID Name Constant Remark
806 Mustache: SRFM_NS_MUSTACHE
807 Mustache_talk: SRFM_NS_MUSTACHE_TALK

Scribunto[edit | edit source]

Scribunto
ID Name Constant Remark
828 Module: NS_MODULE
829 Module_talk: NS_MODULE_TALK

CentralNotice[edit | edit source]

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.

ID 1000+[edit | edit source]

The 1000+ range starts to get fairly high and is a range some sites may attempt to use to avoid conflicts with extensions. So be wary of defining new namespaces within this range, especially near 1000.

Hidden pages[edit | edit source]

HiddenPages requires custom namespaces to be added manually. Thus, a specific sequence cannot be registered. Nonetheless, the extension recommends using namespace numbers 1000 and up.

Translate[edit | edit source]

Translate
ID Name Constant Remark
1198 Translations: NS_TRANSLATIONS
1199 Translations_talk: NS_TRANSLATIONS_TALK
Note Note:Translate extension uses these namespaces by default, but they can be overridden. FYI translatewiki.net uses namespaces from 1200 onward to hold product translations.

PackageForce[edit | edit source]

PackageForce
ID Name Constant Remark
1300 PackageForce: NS_PACKAGEFORCE
1301 PackageForce_talk: NS_PACKAGEFORCE_TALK

BlueSpice[edit | edit source]

BlueSpice
ID Name Constant Remark
1502 Blog: NS_BLOG Note Note: Constant name also used by: BlogPage
1503 Blog_talk: NS_BLOG_TALK Note Note: Constant name also used by: BlogPage
1504 Book: NS_BOOK
1505 Book_talk: NS_BOOK_TALK
Note Note:The BlueSpiceExtensions bundle contains only two extensions with a namespace at the moment. This may change in the near future. Therefore the Hallo Welt! team would appreciate it if the range of 1500-1599 could be reserved for this package.

Gadgets[edit | edit source]

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

VisualEditor[edit | edit source]

VisualEditor
ID Name Constant Remark
2500 VisualEditor: NS_VISUALEDITOR
2501 VisualEditor_talk: NS_VISUALEDITOR_TALK

ID 3000+[edit | edit source]

So far, no known extensions have defined default namespaces in the 3000+ range. For now, it would be best to avoid using this range to give sites room to define their custom namespaces without fear of conflict.

See also[edit | edit source]

  • bug 31063 - MediaWiki should use a reservation system for namespaces