Help:Parser functions/ns

From Disney•Pixar CARS Wiki
Jump to navigation Jump to search
ns
{{#ns: unnamed=null

}}
Help

Get the namespace name (aka prefix) corresponding to the input name or index number. A full list can be found here.

Example
{{ns:10}} --> Template
{{ns:Template}} --> Template
Parameters
stringunnamedEither index number or name itself.
Returns
string Plain text containing the namespace name (prefix).
Note
{{ns:0}} (referring to the main content space) will return null as technically it has no name.
See also
{{nse:}} URL-encoded counterpart.
{{NAMESPACENUMBER}} and {{NAMESPACE}} to get the respective value for the current page.