This template is used on approximately 330,000 pages, or roughly 1% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. Preview message: Transclusion count updated automatically (see documentation). |
This template checks whether the current page is a subpage or not. A subpage is a page that has a slash:
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]]}}
{{SUBPAGENAME}}
. This template uses the former definition (pagename has an after-slash part).