Manual:Namespace constants/zh
From Linux Web Expert
内置的命名空间(namespace)均有为其定义的常量。 例如,NS_MAIN被定义为0(主文章命名空间)。
索引(Index) | 名称 | 常量(Constant) |
---|---|---|
0 | (Main) | 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 |
-1 | Special | NS_SPECIAL |
-2 | Media | NS_MEDIA |
参见
- phabricator:source/mediawiki/browse/master/includes/Defines.php - 源代码
- Manual:Namespace - Explains the intended purpose of the 18 built-in namespaces that ship with MediaWiki.
- Extension default namespaces(英文)