Template:Breadcrumb/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 13: Line 13:
which gives:
which gives:


{{{{ROOTPAGENAME}}|Lorem ipsum|dolor sit/amet/consectetur|adipiscing elit sed do}}
<br />{{{{ROOTPAGENAME}}|Lorem ipsum|dolor sit/amet/consectetur|adipiscing elit sed do}}

Revision as of 16:51, 25 January 2025

MediaWiki has an automated subpage feature that automatically inserts navigation breadcrumbs at the top of pages, but this feature is normally disabled in the main (article) namespace since forward slashes in page titles may be misinterpreted as separators for subpages. On the Xenharmonic Wiki, forward slashes frequently appear in page titles, such as 3/2.

The Breadcrumb template is used to manually insert a breadcrumb navigation bar at the top of a subpage in the main namespace.

Usage

For pages in the (article) namespace, pass in each level of the subpage as a separate unnamed parameter.

For example, if a page titled eiusmod tempor incididunt is located within a page titled adipiscing elit sed do, which in turn is located in a page titled dolor sit/amet/consectetur, which is located in a master page titled Lorem ipsum, you would put, at the top of the page:

{{breadcrumb|Lorem ipsum|dolor sit/amet/consectetur|adipiscing elit sed do}}

which gives: