More actions
→Usage: -deleted templates |
m 1 revision imported |
(No difference)
|
Latest revision as of 09:13, 12 May 2024
This is a documentation subpage for Template:Subpage other. It contains usage information, categories and other content that is not part of the original page. |
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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).