Template:Breadcrumb: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Fredg999 (talk | contribs)
Use #titleparts
ArrowHead294 (talk | contribs)
m Try this again
Tag: Manual revert
 
(89 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>:<small>< [[{{#titleparts:{{FULLPAGENAME}}|-1}}]]</small></includeonly><noinclude>
<includeonly>{{#invoke: Variable_arguments | breadcrumb
The '''Breadcrumb''' template is used to manually insert a breadcrumb navigation bar at the top of a "subpage" in the main namespace, where the subpage feature is disabled (to avoid slashes being interpreted as segment separator in page titles like [[3/2]]).
| debug_mode = {{lc:{{{debug|}}}}}
}}</includeonly><noinclude>
{{documentation}}


At the moment, it provides a single link back to the base page, whereas breadcrumbs are normally split at each level of separation using pipes.
[[Category:Functionality templates]]
 
</noinclude>
[[Category:Functionality templates]]</noinclude>

Latest revision as of 13:05, 27 May 2025

Template documentation[view] [edit] [history] [purge]

The Breadcrumb template is used to manually insert a breadcrumb navigation bar at the top of a subpage in the main namespace. While MediaWiki has an automated subpage feature that automatically inserts navigation breadcrumbs at the top of pages, 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.

All subpages in the article namespace are filed under Category:Article subpages.

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|eiusmod tempor incididunt}}

which gives: