Template:Ns has subpages/doc
This is a documentation subpage for Template:Ns has subpages.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
This template was ported from an old revision of a template from Wikipedia. It was originally at Template:Ns has subpages/doc. The original authors of this template are shown on the template's edit history page.
This template's documentation was also ported from Wikipedia, originally from Template:Ns has subpages/doc/doc. The original authors of the documentation are shown on the documentation's edit history page.
Wikipedia's text is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
This template's documentation was also ported from Wikipedia, originally from Template:Ns has subpages/doc/doc. The original authors of the documentation are shown on the documentation's edit history page.
Wikipedia's text is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
Detects whether the current or the given namespace has subpages enabled. Returns "yes" if it does, and an empty string otherwise.
This template can be substituted.
Usage
{{ns has subpages}}
→ yes{{ns has subpages|Template}}
→ yes{{ns has subpages|Category}}
→{{ns has subpages|}}
(main space) →{{ns has subpages|{{ns:0}}}}
(main space) →{{ns has subpages|:}}
(main space) →{{ns has subpages|{{ns:Talk}}}}
→ yes{{ns has subpages|Category talk}}
→ yes{{ns has subpages|File:Foo}}
→{{ns has subpages|Foo}}
→{{ns has subpages|:Template}}
→ yes
See also
{{namespace detect}}
{{NAMESPACEID}}