Template:Breadcrumb/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 2: Line 2:
MediaWiki has an [[mw:Help:Subpages|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]].
MediaWiki has an [[mw:Help:Subpages|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]].


At the moment, this template provides a single link back to the page one level higher than the current page, whereas full-feature breadcrumbs are normally split at each level of separation using pipes.
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 <code>eiusmod tempor incididunt</code> is located within a page titled <code>adipiscing elit sed do</code>, which in turn is located in a page titled <code>dolor sit/amet/consectetur</code>, which is located in a master page titled <code>Lorem ipsum</code>, you would put, at the top of the page:
 
<pre>{{breadcrumb|Lorem ipsum|dolor sit/amet/consectetur|adipiscing elit sed do}}</pre>
 
which gives:
 
{{{{ROOTPAGENAME}}|Lorem ipsum|dolor sit/amet/consectetur|adipiscing elit sed do}}