Template:NAMESPACEID

From Encyclopedia Thelemica
Revision as of 10:25, 28 July 2010 by Hecate (talk | contribs) (New page: {{#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:3}} = 3 | ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

10

[edit] [purge] 50px Template documentation

Returns the namespace ID of page given, or of the current page. Template:Namespaces

Usage

Namespace aliases are accepted, too:

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

See also