Haec est subpagina documentationis de "Formula:In subpagina aut alibi".

Haec subpagina informationes categoriasque et alias res continet quae in pagina principali respectiva non continentur.

Hanc paginam, in spatio Formulae nominali, oportet Latine convertere.


This template checks whether the current page is a subpage or not. A subpagina 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: both Template:Infobox element isotopes and Template:Infobox element isotopes/infotable use documentation page Template:Infobox element isotopes/doc. We only want to categorise the parent page. So in the /doc page we add:

{{In subpagina aut alibi|<!-- 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).

Vide quoque

recensere
  • {{In harenario aut alibi}} — Distinguishes between the /sandbox subpages and the root template page and other subpages.
  • {{In periclitationibus aut alibi}} — Distinguishes between the /testcases subpages and the root template page and other subpages.
  • {{In formula aut alibi}} — Distinguishes between pages in the template namespace and other namespaces.
  • {{Si in pagina basilari}} — Distinguishes between the root template page and subpages, without special consideration in the mainspace.
  • {{Si in prospectu}} — Distinguishes between the previewed page and the saved page
  • {{In subpagina aut alibi}} — Distinguisheds between the root page and subpages (any subpage), classifying pagenames in the mainspace with a slash as being the root page.