Template:Subpage other

From wikiNonStop
Revision as of 16:00, 10 September 2020 by en>Favonian (Changed protection level for "Template:Subpage other": Highly visible template: requested at WP:RFPP ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation

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).

See also

Template:Foo other see also