Template:Ns has subpages/doc: Difference between revisions
Jump to navigation
Jump to search
Deprecated (talk | contribs) (Documentation subpage for Template:Ns has subpages) |
Thunder4ik (talk | contribs) m (→top: clean up, replaced: {{Documentation subpage → {{Doc/subpage) |
||
Line 1: | Line 1: | ||
{{ | {{Doc/subpage}} | ||
{{Wikipedia port|documentation=1|old=359825133}} | {{Wikipedia port|documentation=1|old=359825133}} | ||
<!--Categories where indicated at the bottom of this page, please--> | <!--Categories where indicated at the bottom of this page, please--> |
Latest revision as of 02:17, 12 January 2024

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}}