Changes

Jump to navigation Jump to search
m
Reverted edits by 107.77.211.198 (talk) to last version by Bakilas
{{Documentation subpage}}
{{high-risk|965000+}}
{{lua|Module:Ns has subpages}}
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->

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 ==
* {{tlx|ns has subpages}} → {{ns has subpages}}
* {{tlx|ns has subpages|Template}} → {{ns has subpages|Template}}
* {{tlx|ns has subpages|Category}} → {{ns has subpages|Category}}
* {{tlx|ns has subpages|<nowiki></nowiki>}} <small>(''main space)</small> → {{ns has subpages|}}
* {{tlx|ns has subpages|<nowiki>{{ns:0}}</nowiki>}} <small>(''main space'')</small> → {{ns has subpages|{{ns:0}}}}
* {{tlx|ns has subpages|:}} <small>(''main space'')</small> → {{ns has subpages|:}}
* {{tlx|ns has subpages|<nowiki>{{ns:Talk}}</nowiki>}} → {{ns has subpages|{{ns:Talk}}}}
* {{tlx|ns has subpages|{{ns:Category talk}}}} → {{ns has subpages|{{ns:Category talk}}}}
* {{tlx|ns has subpages|{{ns:File}}:Foo}} → {{ns has subpages|{{ns:File}}:Foo}}
* {{tlx|ns has subpages|Foo}} → {{ns has subpages|Foo}}
* {{tlx|ns has subpages|:Template}} → {{ns has subpages|:Template}}

== See also ==
*{{tlx|namespace detect}}
*{{tlx|NAMESPACEID}}

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!--Categories below this line, please; interwikis at Wikidata-->
[[Category:Namespace manipulation templates]]

}}</includeonly>
Anonymous user

Navigation menu