模板:Ns has subpages
yes
模板介绍
检测当前或给定的命名空间是否已经启用子页面。如果已启用则返回“是”,否则返回一个空字符串。
该模板可以被替换引用。[来源请求]
范例
{{ns has subpages}}
→ yes{{ns has subpages|Template}}
→ yes{{ns has subpages|Category}}
→{{ns has subpages|}}
(主命名空间) →{{ns has subpages|{{ns:0}}}}
(主命名空间) →{{ns has subpages|:}}
(主命名空间) →{{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
参见
{{namespace detect}}