Skip to main content

mwtitle/
namespace.rs

1/*
2Copyright (C) 2023 Ben Kurtovic <ben@benkurtovic.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 3 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 */
17
18//! These are [namespace constants](https://www.mediawiki.org/wiki/Manual:Namespace_constants)
19//! for built-in MediaWiki namespaces.
20
21pub const NS_MAIN: i32 = 0;
22pub const NS_TALK: i32 = 1;
23pub const NS_USER: i32 = 2;
24pub const NS_USER_TALK: i32 = 3;
25pub const NS_PROJECT: i32 = 4;
26pub const NS_PROJECT_TALK: i32 = 5;
27pub const NS_FILE: i32 = 6;
28pub const NS_FILE_TALK: i32 = 7;
29pub const NS_MEDIAWIKI: i32 = 8;
30pub const NS_MEDIAWIKI_TALK: i32 = 9;
31pub const NS_TEMPLATE: i32 = 10;
32pub const NS_TEMPLATE_TALK: i32 = 11;
33pub const NS_HELP: i32 = 12;
34pub const NS_HELP_TALK: i32 = 13;
35pub const NS_CATEGORY: i32 = 14;
36pub const NS_CATEGORY_TALK: i32 = 15;
37pub const NS_SPECIAL: i32 = -1;
38pub const NS_MEDIA: i32 = -2;