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 it's 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

[edit] 0-99

Namespaces 0-99 are reserved for MediaWiki core; extensions must avoid defining default namespaces in this range.

[edit] MediaWiki Core

  • 0 : (constant: NS_MAIN)
  • 1 Talk: (constant: NS_TALK)
  • 2 User: (constant: NS_USER)
  • 3 User_talk: (constant: NS_USER_TALK)
  • 4 Project: (constant: NS_PROJECT)
  • 5 Project_talk: (constant: NS_PROJECT_TALK)
  • 6 File: (constant: NS_FILE)
  • 7 File_talk: (constant: NS_FILE_TALK)
  • 8 MediaWiki: (constant: NS_MEDIAWIKI)
  • 9 MediaWiki_talk: (constant: NS_MEDIAWIKI_TALK)
  • 10 Template: (constant: NS_TEMPLATE)
  • 11 Template_talk: (constant: NS_TEMPLATE_TALK)
  • 12 Help: (constant: NS_HELP)
  • 13 Help_talk: (constant: NS_HELP_TALK)
  • 14 Category: (constant: NS_CATEGORY)
  • 15 Category_talk: (constant: NS_CATEGORY_TALK)
  • ... 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.

[edit] LiquidThreads

  • 90 Thread: (constant: NS_LQT_THREAD)
  • 91 Thread_talk: (constant: NS_LQT_THREAD_TALK)
  • 92 Summary: (constant: NS_LQT_SUMMARY)
  • 93 Summary_talk: (constant: NS_LQT_SUMMARY_TALK)

[edit] 100-199

[edit] Reserved for site admins

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.

[edit] Semantic MediaWiki & Semantic Forms

  • 100 Relation: (constant: SMW_NS_RELATION; no longer used, as of version 1.0; support dropped with 1.5.0)
  • 101 Relation_talk: (constant: SMW_NS_RELATION_TALK; no longer used, as of version 1.0; support dropped with 1.5.0)
  • 102 Property: (constant: SMW_NS_PROPERTY)
  • 103 Property_talk: (constant: SMW_NS_PROPERTY_TALK)
  • 104 Type: (constant: SMW_NS_TYPE; no longer used, as of version 1.6.0; still supported)
  • 105 Type_talk: (constant: SMW_NS_TYPE_TALK; no longer used, as of version 1.6.0; still supported)
  • 106 Form: (constant: SF_NS_FORM)
  • 107 Form_talk: (constant: SF_NS_FORM_TALK)
  • 108 Concept: (constant: SMW_NS_CONCEPT)
  • 109 Concept_talk: (constant: SMW_NS_CONCEPT_TALK)

[edit] DPLforum

  • 110 Forum (constant: NS_FORUM)
  • 111 Forum_talk (constant: NS_FORUM_TALK)

[edit] RefHelper

  • 120 Cite (constant: NS_CITE)
  • 121 Cite_talk (constant: NS_CITE_TALK)

[edit] Rich Media

  • 120 Document: (constant: NS_DOCUMENT )
  • 121 Document_talk: (constant: NS_DOCUMENT_TALK )
  • 122 Audio: (constant: NS_AUDIO )
  • 123 Audio_talk: (constant: NS_AUDIO_TALK )
  • 124 Video: (constant: NS_VIDEO )
  • 125 Video_talk: (constant: NS_VIDEO_TALK )
  • 126 Pdf: (constant: NS_PDF )
  • 127 Pdf_talk: (constant: NS_PDF_TALK )
  • 128 ICalendar: (constant: NS_ICAL )
  • 129 ICalendar_talk: (constant: NS_ICAL_TALK )
  • 130 VCard: (constant: NS_VCARD )
  • 131 VCard_talk: (constant: NS_VCARD_TALK )

[edit] Semantic Access Control

  • 160 UserGroup: (constant: ACL_NS_USERGROUP)
  • 162 ACL: (constant: ACL_NS_ACL)

[edit] Semantic Drilldown

  • 170 Filter: (constant: SD_NS_FILTER)
  • 171 Filter_talk: (constant: SD_NS_FILTER_TALK)

[edit] 200-299

[edit] SocialProfile

  • 200 UserWiki: (constant: NS_USER_WIKI)
  • 201 UserWiki_talk: (constant: NS_USER_WIKI_TALK since r93317)
  • 202 User_profile: (constant: NS_USER_PROFILE)
  • 203 User_profile_talk: (constant: NS_USER_PROFILE_TALK since r93317)

[edit] Data Import

  • 200 WebService: (constant: SMW_NS_WEB_SERVICE)
  • 201 WebService_talk: (constant: SMW_NS_WEB_SERVICE_TALK)
  • 202 TermImport: (constant: SMW_NS_TERM_IMPORT)
  • 203 TermImport_talk: (constant: SMW_NS_TERM_IMPORT_TALK )
  • 220 E-mail: (constant: NS_TI_EMAIL )
  • 221 E-mail_talk: (constant: NS_TI_EMAIL_TALK )

[edit] TrustedMath

  • 262 Math: (constant: NS_TRUSTEDMATH)
  • 263 Math_talk: (constant: NS_TRUSTEDMATH_TALK)

[edit] Widgets

  • 274 Widget: (constant: NS_WIDGET)
  • 275 Widget_talk: (constant: NS_WIDGET_TALK)


[edit] 300-399

[edit] PollNY

  • 300 Poll (constant: NS_POLL)
  • 301 Poll_talk (constant: NS_POLL_TALK)

[edit] Access Control List

  • 300 ACL: (constant: HACL_NS_ACL)
  • 301 ACL_talk: (constant: HACL_NS_ACL_TALK)

[edit] Wikia

  • 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.

[edit] 400-499

[edit] Wiki2LaTeX

  • 400 Wiki2LaTeX: (constant: NS_WIKI2LATEX)
  • 401 Wiki2LaTeX_talk: (constant: NS_WIKI2LATEX_TALK)

[edit] Maps

These can be overridden.

  • 420 Layer: (constant: Maps_NS_LAYER)
  • 421 Layer_talk: (constant: Maps_NS_LAYER_TALK)

[edit] BoilerRoom

  • 450 Boilerplate: (constant: NS_BOILERPLATE)
  • 451 Boilerplate_talk: (constant: NS_BOILERPLATE_TALK)

[edit] OpenStackManager

  • 488 Nova_Resource: (constant: NS_NOVA_RESOURCE)
  • 489 Nova_Resource_talk: (constant: NS_NOVA_RESOURCE_TALK)

[edit] 500-599

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.

[edit] BlogPage

  • 500 Blog (constant: NS_BLOG)
  • 501 Blog_talk (constant: NS_BLOG_TALK)

[edit] Linked Data

  • 500 LOD: (constant: LOD_NS_LOD)
  • 501 LOD_talk: (constant: LOD_NS_LOD_TALK)
  • 502 Mapping: (constant: LOD_NS_MAPPING)
  • 503 Mapping_talk: (constant: LOD_NS_MAPPING_TALK)

[edit] 600-699

[edit] FanBoxes

  • 600 UserBox (constant: NS_FANTAG)
  • 601 UserBox_talk (constant: NS_FANTAG_TALK)

[edit] NagiosConfig

  • 600 NagiosTemplate: (constant: NS_NAGIOS_TEMPLATE)
  • 601 NagiosTemplate_talk: (constant: NS_NAGIOS_TEMPLATE_TALK)
  • 602 NagiosHostType: (constant: NS_NAGIOS_HOSTTYPE)
  • 603 NagiosHostType_talk: (constant: NS_NAGIOS_HOSTTYPE_TALK)
  • 604 NagiosCommand: (constant: NS_NAGIOS_COMMAND)
  • 605 NagiosCommand_talk: (constant: NS_NAGIOS_COMMAND_TALK)
  • 606 NagiosResource: (constant: NS_NAGIOS_RESOURCE)
  • 607 NagiosResource_talk: (constant: NS_NAGIOS_RESOURCE_TALK)
  • 608 NagiosServiceCommand: (constant: NS_NAGIOS_SERVICECOMMAND)
  • 609 NagiosServiceCommand_talk: (constant: NS_NAGIOS_SERVICECOMMAND_TALK)

[edit] 700-799

[edit] LinkFilter

  • 700 Link (contant: NS_LINK)
  • 701 Link_talk (contant: NS_LINK_TALK)

[edit] TimedMediaHandler

TimedMediaHandler reserves namespaces for timed text tracks:

  • 710 TimedText (constant: NS_TIMEDTEXT)
  • 711 TimedText_talk (constant: NS_TIMEDTEXT_TALK)

[edit] Collaboration extension

  • 700 Comment: (constant: CE_COMMENT_NS )
  • 701 Comment_talk: (constant: CE_COMMENT_TALK_NS )

[edit] 800-899

[edit] QPoll

QPoll reserves namespaces for interpretation scripts:

  • 800 Interpretation (constant: NS_QP_INTERPRETATION)
  • 801 Interpretation_talk (constant: NS_QP_INTERPRETATION_TALK)

[edit] 1000+

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

[edit] Hidden pages

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.

  • 1000 and up

[edit] Translate

Translate extension uses these namespaces by default, but it can be overridden.

  • 1198 Translations (constant NS_TRANSLATIONS )
  • 1199 Translations_talk (constant NS_TRANSLATIONS_TALK )

And FYI translatewiki.net uses namespaces from 1200 onward to hold product translations.

[edit] PackageForce

  • 1300 PackageForce: (constant: NS_PACKAGEFORCE)
  • 1301 PackageForce_talk: (constant: NS_PACKAGEFORCE_TALK)

[edit] Gadgets

  • 2300 Gadget: (constant: NS_GADGET)
  • 2301 Gadget_talk: (constant: NS_GADGET_TALK)
  • 2302 Gadget_definition: (constant: NS_GADGET_DEFINITION)
  • 2303 Gadget_definition_talk: (constant: NS_GADGET_DEFINITION_TALK)

[edit] 3000+

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.

[edit] Wikia

Wikia alters the namespaces for some extensions used on it's own wikis. Please also take these into account while coming up with new namespace numbers to use in new extensions.

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

As used on several Wikia sites

  • 302 Property:
  • 304 Type:
  • 306 Form:
  • 308 Concept:
  • 370 Filter:
and associated Talk pages #+1
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox