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