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.

Contents

Negative IDs [edit]

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]

MediaWiki Core [edit]

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]

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]

Reserved for site admins [edit]

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]

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]

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

RefHelper [edit]

RefHelper
ID Name Constant Remark
120 Cite: NS_CITE Note Note: Also used by: Rich Media
121 Cite_talk: NS_CITE_TALK Note Note: Also used by: Rich Media

Rich Media [edit]

Rich Media
ID Name Constant Remark
120 Document: NS_DOCUMENT Note Note: Also used by: RefHelper
121 Document_talk: NS_DOCUMENT_TALK Note Note: Also used by: RefHelper
122 Audio: NS_AUDIO
123 Audio_talk: NS_AUDIO_TALK
124 Video: NS_VIDEO
125 Video_talk: NS_VIDEO_TALK
126 Pdf: NS_PDF
127 Pdf_talk: NS_PDF_TALK
128 ICalendar: NS_ICAL
129 ICalendar_talk: NS_ICAL_TALK
130 VCard: NS_VCARD
131 VCard_talk: NS_VCARD_TALK

Nyan [edit]

Nyan
ID Name Constant Remark
150 Nyan_Cat: NS_NYAN_CAT
151 Nyan_Cat_Talk: NS_NYAN_CAT_TALK

Semantic Access Control [edit]

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

Semantic Drilldown [edit]

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

ID 200-299 [edit]

SocialProfile [edit]

SocialProfile
ID Name Constant Remark
200 UserWiki: NS_USER_WIKI Note Note: Also used by: Data Import
201 UserWiki_talk: NS_USER_WIKI_TALK Since r93317. Note Note: Also used by: Data Import
202 User_profile: NS_USER_PROFILE Note Note: Also used by: Data Import
203 User_profile_talk: NS_USER_PROFILE_TALK Since r93317. Note Note: Also used by: Data Import

Data Import [edit]

Data Import
ID Name Constant Remark
200 WebService: SMW_NS_WEB_SERVICE Note Note: Also used by: SocialProfile
201 WebService_talk: SMW_NS_WEB_SERVICE_TALK Note Note: Also used by: SocialProfile
202 TermImport: SMW_NS_TERM_IMPORT Note Note: Also used by: SocialProfile
203 TermImport_talk: SMW_NS_TERM_IMPORT_TALK Note Note: Also used by: SocialProfile
220 E-mail: NS_TI_EMAIL
221 E-mail_talk: NS_TI_EMAIL_TALK

Proofread Page [edit]

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]

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

Widgets [edit]

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

ID 300-399 [edit]

PollNY [edit]

PollNY
ID Name Constant Remark
300 Poll: NS_POLL Note Note: Also used by: Access Control List
301 Poll_talk: NS_POLL_TALK Note Note: Also used by: Access Control List

Access Control List [edit]

Access Control List
ID Name Constant Remark
300 ACL: HACL_NS_ACL Note Note: Also used by: PollNY
301 ACL_talk: HACL_NS_ACL_TALK Note Note: Also used by: PollNY

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

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]

Semantic Image Annotator
ID Name Constant Remark
380 ImageAnnotation: NS_IMAGEANNOTATION

Wikia [edit]

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]

Wiki2LaTeX [edit]

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

Maps [edit]

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.

BoilerRoom [edit]

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

EventLogging [edit]

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

ZeroRatedMobileAccess [edit]

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

OpenStackManager [edit]

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

ID 500-599 [edit]

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]

BlogPage
ID Name Constant Remark
500 Blog: NS_BLOG Note Note: Also used by: Linked Data
501 Blog_talk: NS_BLOG_TALK Note Note: Also used by: Linked Data

Linked Data [edit]

Linked Data
ID Name Constant Remark
500 LOD: LOD_NS_LOD Note Note: Also used by: BlogPage
501 LOD_talk: LOD_NS_LOD_TALK Note Note: Also used by: BlogPage
502 Mapping: LOD_NS_MAPPING
503 Mapping_talk: LOD_NS_MAPPING_TALK

ID 600-699 [edit]

FanBoxes [edit]

FanBoxes
ID Name Constant Remark
600 UserBox: NS_FANTAG Note Note: Also used by: NagiosConfig
601 UserBox_talk: NS_FANTAG_TALK Note Note: Also used by: NagiosConfig

NagiosConfig [edit]

NagiosConfig
ID Name Constant Remark
600 NagiosTemplate: NS_NAGIOS_TEMPLATE Note Note: Also used by: FanBoxes
601 NagiosTemplate_talk: NS_NAGIOS_TEMPLATE_TALK Note Note: Also used by: FanBoxes
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

ID 700-799 [edit]

LinkFilter [edit]

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

Collaboration extension [edit]

Collaboration extension
ID Name Constant Remark
700 Comment: CE_COMMENT_NS Note Note: Also used by: LinkFilter
701 Comment_talk: CE_COMMENT_TALK_NS Note Note: Also used by: LinkFilter

TimedMediaHandler [edit]

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

PreloadContent [edit]

PreloadContent
ID Name Constant Remark
770 Preload: NS_PRELOAD
701 Preload_talk: NS_PRELOAD_TALK

ID 800-899 [edit]

QPoll [edit]

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.

Scribunto [edit]

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

CentralNotice [edit]

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]

The 1000+ range starts to get fairly high, and it's a possible spot sites may attempt to use, too.

Hidden pages [edit]

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]

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]

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

Gadgets [edit]

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]

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

ID 3000+ [edit]

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]

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