Citakan:Ns has subpages
(dialihkeun ti Citakan:Is subpage namespace)
yes
This template is used on 780,000+ pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them. |
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
édit- {{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|Obrolan kategori}} → yes
- {{ns has subpages|Gambar:Foo}} →
- {{ns has subpages|Foo}} →
- {{ns has subpages|:Template}} → yes
See also
édit- {{namespace detect}}
- {{NAMESPACEID}}