Aurora is on version 2.5.0 C#, available at the Aurora Forums.
Contact Erik on the forum for a wiki account.
Template:NAMESPACEID/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:NAMESPACEID (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Returns the namespace ID of page given, or of the current page
Usage
- {{NAMESPACEID}} → 10
- {{NAMESPACEID|}} → 0 (Article namespace)
- {{NAMESPACEID|{{ns:0}}}} → 0 (Article namespace)
- {{NAMESPACEID|Talk}} → 1
Namespace aliases are accepted, too:
- {{NAMESPACEID|Image}} → 6
- {{NAMESPACEID|File}} → 6
- {{NAMESPACEID|WP}} → Invalid namespace in {{NAMESPACEID}}
- {{NAMESPACEID|Project}} → 4
- {{NAMESPACEID|Wikipedia}} → Invalid namespace in {{NAMESPACEID}}
Invalid input returns an error, which can be caught with the #iferror parser function:
- {{NAMESPACEID|Foo}} → Invalid namespace in {{NAMESPACEID}}
See also