Template:Ns has subpages: Difference between revisions
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: | <onlyinclude>{{<includeonly>safesubst:</includeonly>#invoke:Namespace has subpages|main}}</onlyinclude> | ||
{{ | {{Documentation}} | ||
<!-- | <!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> | ||
Revision as of 22:16, 15 September 2021
yes
This is a documentation subpage for Template:Ns has subpages. It contains usage information, categories and other content that is not part of the original Template page. |
Uses Lua: |
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