Template:Breadcrumb/doc: Difference between revisions

ABC-DEFG (talk | contribs)
mNo edit summary
ABC-DEFG (talk | contribs)
mNo edit summary
Line 4: Line 4:
For pages in the (article) namespace, pass in each level of the subpage as a separate unnamed parameter.
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:
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 <code>eiusmod tempor incididunt</code> page:


<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}}</pre>


<span style="display: inline-block; margin: 0 0 0.5em 0;">which gives:</span>
<span style="display: inline-block; margin: 0 0 0.5em 0;">which gives:</span>


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