Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Subpage other/doc: Difference between revisions

Template page
No edit summary
No edit summary
 
Line 14: Line 14:
;Note: WP:Subpage uses an other definition than magic word <code><nowiki>{{SUBPAGENAME}}</nowiki></code>. This template uses the former definition (pagename has an after-slash part).
;Note: WP:Subpage uses an other definition than magic word <code><nowiki>{{SUBPAGENAME}}</nowiki></code>. This template uses the former definition (pagename has an after-slash part).


==See also==
 
{{Foo other see also}}
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->

Latest revision as of 05:12, 14 April 2025

This page uses Creative Commons Licensed content from Wikipedia (view authors).

Usage

This template checks whether the current page is a subpage or not. A subpage is a page that has a slash:

[[Template:Parentpage/Subpage]]

Exception: in article space (mainspace) the slash is part of the title, and there are no subpages. Example, AC/DC is a parent page not a subpage.

Usage example: We only want to categorise the parent page. So in the /doc page we add:

{{Subpage other|<!-- do not categorise -->|[[Category:Chemical element infobox]]}}
Note
WP:Subpage uses an other definition than magic word {{SUBPAGENAME}}. This template uses the former definition (pagename has an after-slash part).


Contents