This site is supported by donations to The OEIS Foundation.

Template:Namespace ID

From OeisWiki
(Redirected from Template:Ns ID)
Jump to: navigation, search

Use the {{namespace ID}} (or {{ns ID}}) OEIS Wiki utility template to get the namespace ID from the namespace fullname, namespace abbreviation or namespace ID.

NOTE: The {{ns:-2}} Media namespace is disabled on OEISWiki.

Usage

{{namespace ID}} or {{ns ID}} to get the default namespace ID, i.e. 0, of the article (Main) default namespace

or

{{namespace ID|namespace fullname, namespace abbreviation or namespace ID}}

or

{{ns ID|namespace fullname, namespace abbreviation or namespace ID}}

Examples

Code Result Comment
{{ns ID|Media}} -2 (this namespace is disabled on OEISWiki)
{{ns ID|media}} -2 (this namespace is disabled on OEISWiki)
{{ns ID|Special}} -1
{{ns ID|special}} -1
{{namespace ID}} 0
{{namespace ID|a}} 0
{{ns ID|0}} 0
{{ns ID|main}} 0
{{ns ID|article}} 0
{{ns ID|talk}} 1
{{ns ID|+}} 1
{{ns ID|a+}} 1
{{ns ID|1}} 1
{{ns ID|article+}} 1
{{ns ID|article talk}} 1
{{ns ID|t}} 10
{{ns ID|10}} 10
{{ns ID|template}} 10
{{ns ID|template+}} 11
{{ns ID|t+}} 11
{{ns ID|template talk}} 11
{{ns ID|11}} 11

Examples with namespace names

Cf. Examples with namespace names.

Examples with namespace abbreviations

Cf. Examples with namespace abbreviations.

Examples with namespace IDs

Cf. Examples with namespace IDs.

Code

Cf. {{namespace ID/test#Code}}.

Tests

Cf. {{namespace ID/test}}.

See also