Template:NAMESPACEID

From GC-Forever Wiki
Revision as of 23:21, 30 April 2013 by Cybertronic (talk | contribs) (Created page with "{{#switch:{{ns:{{{1|{{NAMESPACE}}}}}}}<!-- turns the current namespace or {{{1}}} into the canonical form, for comparison --> | {{ns:0}} = 0 | {{ns:1}} = 1 | {{ns:2}} = 2 | {{ns:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

10

[view] [edit] [history] [purge] Documentation icon Template documentation

Returns the namespace ID of page given, or of the current page.

Wikipedia namespaces
Basic namespaces Talk namespaces
0 (Main/Article) Talk 1
2 User User talk 3
4 GC-Forever Wiki GC-Forever Wiki talk 5
6 File File talk 7
8 MediaWiki MediaWiki talk 9
10 Template Template talk 11
12 Help Help talk 13
14 Category Category talk 15
100 [[Wikipedia:Portal|]] [[Help:Using talk pages|]] 101
108 [[Wikipedia:Books|]] [[Help:Using talk pages|]] 109
446 [[Wikipedia:Course pages|]] [[Help:Using talk pages|]] 447
710 [[mw:Extension:TimedMediaHandler|]] [[Help:Using talk pages|]] 711
828 [[Wikipedia:Lua|]] [[Help:Using talk pages|]] 829
Virtual namespaces
-1 Special
-2 Media
v · d · e

Usage

Namespace aliases are accepted, too:

Invalid input returns an error, which can be caught with the #iferror parser function:

See also

he:תבנית:מספר מרחב שם or:ଟେମ୍ପଲେଟ:NAMESPACEID