Template:Ns has subpages/doc
Bước tới điều hướng
Bước tới tìm kiếm

Đây là trang tài liệu con chuỗi cho Template:Ns has subpages.
Nếu bạn đã tạo hoặc chỉnh sửa các nội dung của trang này, đừng quên làm mới nó.
Nếu bạn đã tạo hoặc chỉnh sửa các nội dung của trang này, đừng quên làm mới nó.
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}}