Template:Ns has subpages: Difference between revisions

From Campaigns
Jump to navigation Jump to search
convert this to use Module:Ns has subpages - this gets the subpage status directly from MediaWiki, avoiding the need to update the template when namespaces change
 
Line 1: Line 1:
{{<includeonly>safesubst:</includeonly>#invoke:Ns has subpages|main}}<noinclude>
<onlyinclude>{{<includeonly>safesubst:</includeonly>#invoke:Namespace has subpages|main}}</onlyinclude>
{{documentation}}
{{Documentation}}
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. -->
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
</noinclude>

Revision as of 22:16, 15 September 2021

yes

Template documentation

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

  • → yes
  • → yes
  • (main space) → yes
  • (main space) → yes
  • (main space) → yes
  • → yes
  • → yes
  • → yes
  • → yes