模板: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}}