Template:Breadcrumb/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
{{dochead}}{{modlink|Variable arguments}}
{{dochead}}{{lua|Variable arguments}}
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 [[mw:Help:Subpages|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]].
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 [[mw:Help:Subpages|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]].


Line 9: Line 9:
<pre>{{breadcrumb|Lorem ipsum|dolor sit/amet/consectetur|adipiscing elit sed do|eiusmod tempor incididunt}}</pre>
<pre>{{breadcrumb|Lorem ipsum|dolor sit/amet/consectetur|adipiscing elit sed do|eiusmod tempor incididunt}}</pre>


<span style="display: inline-block; margin-bottom: calc(2em / 3);">which gives:</span>
<span style="display: inline-block; margin-bottom: 0.75em;">which gives:</span>


{{{{ROOTPAGENAME}}|Lorem ipsum|dolor sit/amet/consectetur|adipiscing elit sed do|eiusmod tempor incididunt}}
{{{{ROOTPAGENAME}}|Lorem ipsum|dolor sit/amet/consectetur|adipiscing elit sed do|eiusmod tempor incididunt}}