为避免扩展添加的新命名空间 发生冲突,请在扩展默认命名空间 列表中列出扩展的自定义命名空间 。
如果您为自定义命名空间定义了常量,也请在此处列出。
请注意,这些只是默认命名空间。
所有定义新命名空间的扩展都应为安装程序提供一种方法来配置扩展,以便为其自定义命名空间使用不同范围的命名空间。
一般来说,扩展应以10个ID为一块来保留命名空间ID,且不能是已由MediaWiki核心或任何已知扩展添加的命名空间(详见讨论 )。
每个块均供扩展按顺序使用;具体而言,添加多个自定义命名空间的扩展不应为每个附加命名空间保留额外的块,除非扩展已用尽其当前块。
介于3000和4999之间的命名空间ID不应 使用;这些ID被保留于wiki定义其自身的自定义命名空间。
此外,选择1000以下的ID时应小心,因为这个范围在历史上被扩展和网站广泛使用(应该完全避免使用200以下的ID)。
当然,此页面列出的一些命名空间将会重叠,并违反此处列出的建议。
这些建议是新扩展应该尽量遵循的良好做法,以避免冲突;由于遗留原因,已经产生冲突和不良做法的旧扩展无法简单地改变,但在这里列出以帮助避免更多的冲突。
负数ID
警告: 绝对不要 为扩展使用负数ID。
MediaWiki核心
ID
名称
常量
备注
两个命名空间有负数索引,且有特殊用途。 您无法在这些命名空间中创建或删除页面,并且没有相应的讨论命名空间。
-2
Media:
NS_MEDIA
直接链接到媒体文件的别名
-1
Special:
NS_SPECIAL
保留特殊页面
ID 0–99
MediaWiki核心
ID
名称
常量
备注
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
如果核心需要定义新的默认命名空间,其最有可能从此接续使用16–17,请小心避开这个区域。
LiquidThreads
ID
名称
常量
备注
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
警告: 由于历史原因,100–199范围内的命名空间ID已同时由扩展和各wiki的自定义命名空间广泛使用。 因此,通常建议避免将新命名空间置于此范围。
維基媒體基金會
许多维基媒体基金会的wiki都在此范围内有特定站点的命名空间。
其中包括了大多数维基百科项目都有的主题(Portal)命名空间(100)、维基共享资源的创作者(Creator)命名空间 (100)、mediawiki.org的扩展(Extension)命名空间 (102)、英语维基教科书的Subject命名空间 (112)等等。
100–119
Semantic MediaWiki
ID
名称
常量
备注
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
注意: Namespace name also used by Wikibase
103
Property_talk:
SMW_NS_PROPERTY_TALK
注意: 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
名称
常量
备注
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
名称
常量
备注
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
名称
常量
备注
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
ID 200–299
Meta-Wiki (meta.wikimedia.org) has custom namespaces in this range:
SocialProfile
ID
名称
常量
备注
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
名称
常量
备注
234
XML:
NS_XML
235
XML_talk:
NS_XML_TALK
Proofread Page
ID
名称
常量
备注
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
名称
常量
备注
274
Widget:
NS_WIDGET
275
Widget_talk:
NS_WIDGET_TALK
ID 300–399
PollNY
ID
名称
常量
备注
300
Poll:
NS_POLL
301
Poll_talk:
NS_POLL_TALK
CETEIcean
ID
名称
常量
备注
350
Cetei:
NS_CETEI
XML (main) and wikitext (/doc subpage)
351
Cetei_talk:
NS_CETEI_TALK
ID 400–499
Video
ID
名称
常量
备注
400
Video:
NS_VIDEO
401
Video_talk:
NS_VIDEO_TALK
Maps
ID
名称
常量
备注
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
名称
常量
备注
460
Campaign:
NS_CAMPAIGN
JSON describing metadata for an Upload Campaign
461
Campaign_talk:
NS_CAMPAIGN_TALK
480–489
JsonConfig
ID
名称
常量
备注
482
Config:
NS_CONFIG
JSON Configuration blob used by multiple systems
483
Config_talk:
NS_CONFIG_TALK
486
Data:
NS_DATA
Additional JSON data. 截至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. 注意: Namespace and constant name also used by LinkedWiki
487
Data_talk:
NS_DATA_TALK
Graph
ID
名称
常量
备注
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
名称
常量
备注
486
Notebook:
NS_NOTEBOOK
Jupyter Notebook data
490–499
FileAnnotations
ID
名称
常量
备注
492
File_annotations:
NS_FILE_ANNOTATIONS
493
File_annotations_talk:
NS_FILE_ANNOTATIONS_TALK
ID 500–599
500–509
SimpleBlogPage
ID
名称
常量
备注
502
User_blog:
NS_USER_BLOG
503
User_blog_talk:
NS_USER_BLOG_TALK
ID 600–699
FanBoxes
ID
名称
常量
备注
600
UserBox:
NS_FANTAG
601
UserBox_talk:
NS_FANTAG_TALK
MintyDocs
ID
名称
常量
备注
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
名称
常量
备注
640
EntitySchema:
NS_ENTITYSCHEMA_JSON
注意: Before gerrit:506471 , this namespace was named "Schema" with the constant NS_WBSCHEMA_JSON
.
641
EntitySchema_talk:
NS_ENTITYSCHEMA_JSON_TALK
注意: Before gerrit:506471 this namespace was named "Schema talk" with the constant NS_WBSCHEMA_JSON_TALK
.
SemanticActions
ID
名称
常量
备注
690
Action:
NS_ACTION
691
Action_Talk:
NS_ACTION_TALK
692
Label:
NS_LABEL
693
Label_Talk:
NS_LABEL_TALK
ID 700–799
LinkFilter
ID
名称
常量
备注
700
Link:
NS_LINK
701
Link_talk:
NS_LINK_TALK
TimedMediaHandler
ID
名称
常量
备注
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
名称
常量
备注
730
AccessControlGroup:
NS_ACCESSCONTROLGROUP
731
AccessControlGroup_talk:
NS_ACCESSCONTROLGROUP_TALK
Flex Diagrams
ID
名称
常量
备注
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
ID 800–899
Scribunto
ID
名称
常量
备注
828
Module:
NS_MODULE
829
Module_talk:
NS_MODULE_TALK
SecurePoll
ID
名称
常量
备注
830
SecurePoll:
NS_SECUREPOLL
Set $wgSecurePollUseNamespace true to enable.
831
SecurePoll_talk:
NS_SECUREPOLL_TALK
Set $wgSecurePollUseNamespace true to enable.
CommentStreams
ID
名称
常量
备注
844
CommentStreams:
NS_COMMENTSTREAMS
may be overridden by $wgCommentStreamsNamespaceIndex
845
CommentStreams_talk:
NS_COMMENTSTREAMS_TALK
Presently unused.
CentralNotice
ID
名称
常量
备注
866
CNBanner:
NS_CN_BANNER
Staging area for pending banner translations.
867
CNBanner_talk:
NS_CN_BANNER_TALK
Presently unused.
ID 1000+
Piwo
ID
名称
常量
备注
1024
Gram:
NS_GRAM
1025
Gram_talk:
NS_GRAM_TALK
IIIF
ID
名称
常量
备注
1230
IIIF:
NS_IIIF
Holds JSON for IIIF / IIIF-related content.
1231
IIIF_talk:
NS_IIIF_TALK
Wikistories
ID
名称
常量
备注
1704
Story:
NS_STORY
1705
Story_talk:
NS_STORY_TALK
CampaignEvents
ID
名称
常量
备注
1728
Event:
NS_EVENT
1729
Event_talk:
NS_EVENT_TALK
ID 2000+
VisualData
ID
名称
常量
备注
2228
VisualDataSchema:
NS_VISUALDATASCHEMA
2229
VisualDataSchema talk:
NS_VISUALDATASCHEMA_TALK
2230
VisualDataQuery:
NS_VISUALDATAQUERY
2231
VisualDataQuery talk:
NS_VISUALDATAQUERY_TALK
ContactManager
ID
名称
常量
备注
2260
ContactManager:
NS_CONTACTMANAGER
2261
ContactManagerTalk talk:
NS_CONTACTMANAGER
Semantic_Genealogy
ID
名称
常量
备注
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
名称
常量
备注
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
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 and BlueSpice NamespaceManager extensions create custom namespaces using the range from 3000 to 4999.
ID 5000+
Newsletter
ID
名称
常量
备注
5500
Newsletter:
NS_NEWSLETTER
5501
Newsletter_talk:
NS_NEWSLETTER_TALK
MWUnit
ID
名称
常量
备注
5750
Test:
NS_TEST
5751
Test_talk:
NS_TEST_TALK
ID 7000+
OpenSemanticLab
ID
名称
常量
备注
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
ID 10,000+
LinkedWiki
ID
名称
常量
备注
10000
Data:
NS_DATA
注意: Constant name also used by JsonConfig
10002
UserData:
NS_USER_DATA
10010
Schema:
NS_SCHEMA
注意: Namespace name also used by EventLogging and (formerly) EntitySchema 注意: Constant name also used by EventLogging
10011
Schema_talk:
NS_SCHEMA_TALK
注意: Namespace name also used by EventLogging and (formerly) EntitySchema 注意: 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.
已存档扩展及已移除的命名空间
一些添加了新命名空间的扩展已被归档,而一些由扩展添加的命名空间后来被删除;之所以在这里列出这些命名空间,是因为这些命名空间可能出现在使用过这些扩展的wiki的旧数据库转储中,而一些旧wiki可能会继续使用这些扩展。
强烈建议 避免重复使用这些命名空间ID,因为以前使用旧扩展的wiki会有与这些页面相关的日志条目等;但如果需要,这些编号可以由新的扩展保留。
此处列出的扩展以其添加的首个命名空间ID排序。
WikiLexicalData
ID
名称
常量
备注
16
Expression:
NS_EXPRESSION
17
Expression_talk:
24
DefinedMeaning:
NS_DEFINEDMEANING
25
DefinedMeaning_talk:
RefHelper
ID
名称
常量
备注
120
Cite:
NS_CITE
121
Cite_talk:
NS_CITE_TALK
DeleteQueue
ID
名称
常量
备注
140
Deletion:
NS_DELETION
200
Deletion discussion:
TrustedMath
ID
名称
常量
备注
262
Math:
NS_TRUSTEDMATH
263
Math_talk:
NS_TRUSTEDMATH_TALK
MOOC
ID
名称
常量
备注
350
Mooc:
NS_MOOC
351
Mooc_talk:
NS_MOOC_TALK
Wiki2LaTeX
ID
名称
常量
备注
400
Wiki2LaTeX:
NS_WIKI2LATEX
401
Wiki2LaTeX_talk:
NS_WIKI2LATEX_TALK
QuizTabulate
ID
名称
常量
备注
430
Quiz:
QuizTabulate_NS_QUIZ
431
Quiz_talk:
QuizTabulate_NS_QUIZ_TALK
Education Program
ID
名称
常量
备注
446
Education_Program:
EP_NS
447
Education_Program_talk:
EP_NS_TALK
BoilerRoom
ID
名称
常量
备注
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
名称
常量
备注
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
名称
常量
备注
490
GWToolset:
NS_GWTOOLSET
491
GWToolset_talk:
NS_GWTOOLSET_TALK
OpenStackManager
ID
名称
常量
备注
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
名称
常量
备注
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
名称
常量
备注
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
名称
常量
备注
730
GitAccess_root:
NS_GITACCESS_ROOT
731
GitAccess_root_talk:
NS_GITACCESS_ROOT_TALK
QPoll
ID
名称
常量
备注
800
Interpretation:
NS_QP_INTERPRETATION
801
Interpretation_talk:
NS_QP_INTERPRETATION_TALK
QPoll reserves namespaces for interpretation scripts.
Jade
ID
名称
常量
备注
810
Jade:
NS_JADE
811
Jade_talk:
NS_JADE_TALK
R
ID
名称
常量
备注
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
名称
常量
备注
1300
PackageForce:
NS_PACKAGEFORCE
1301
PackageForce_talk:
NS_PACKAGEFORCE_TALK
Gadgets
ID
名称
常量
备注
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
名称
常量
备注
2800
Course:
NS_COURSE
2801
Course_talk:
NS_COURSE_TALK
See also