Jump to content

Template:EmbeddedSubpageLink

From Joepedia

Link to Embedded Subpages nicely for Navboxes and other cases where showing if it is a link to the current page is important.

Example:

{{EmbeddedSubpageLink|Outer Wilds|Echoes of the Eye}}

Echoes of the Eye See how this becomes a self-link when viewed on Outer Wilds/Echoes of the Eye in the navbox.

Links to an embedded subpage, most of the time this will link to the section of the parent article page for the subpage, but if you are on the subpage, it'll link to the subpage, this makes it treat it as the current page, which is nicer in navboxes and the like.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Parent Page1

The name of the parent page.

Page namerequired
Subpage/Section Name2

The name of the subpage (without the parent/ prefix). This must be the name of a section including the subpage into the parent page too.

Stringrequired
Title3

Used to override the text of the link, by default this will be the subpage name.

Stringoptional