Difference between revisions of "Template:Mininav"

From LFS Manual
Jump to navigationJump to search
m
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<ul>
+
<div role="navigation" aria-label="Breadcrumb"><ul style="margin: 0 0 24px 0; border-bottom: 1px solid #ddd">
[[Main Page]]{{#if:{{{1|}}}|{{mininav separator}}{{{1}}}}}{{#if:{{{2|}}}|{{mininav separator}}{{{2}}}}}{{#if:{{{3|}}}|{{mininav separator}}{{{3}}}}}{{#if:{{{4|}}}|{{mininav separator}}{{{4}}}}}{{#if:{{{5|}}}|{{mininav separator}}{{{5}}}}}{{#if:{{{6|}}}|{{mininav separator}}{{{6}}}}}{{#if:{{{7|}}}|{{mininav separator}}{{{7}}}}}{{#if:{{{8|}}}|{{mininav separator}}{{{8}}}}}{{#if:{{{9|}}}|{{mininav separator}}{{{9}}}}}{{#if:{{{10|}}}|{{mininav separator}}{{{10}}}}}{{#if:{{{no page|}}}| |{{mininav separator}}'''{{{page|{{#ifeq: {{NAMESPACE}} | HOW-TO | {{FULLPAGENAME}} | {{SUBPAGENAME}} }}}}}''' }}
+
[[Main Page]]{{#if:{{{1|}}}|{{mininav separator}}[[{{{1}}}]]}}{{#if:{{{2|}}}|{{mininav separator}}[[{{{2}}}]]}}{{#if:{{{3|}}}|{{mininav separator}}[[{{{3}}}]]}}{{#if:{{{4|}}}|{{mininav separator}}[[{{{4}}}]]}}{{#if:{{{5|}}}|{{mininav separator}}[[{{{5}}}]]}}{{#if:{{{6|}}}|{{mininav separator}}[[{{{6}}}]]}}{{#if:{{{7|}}}|{{mininav separator}}[[{{{7}}}]]}}{{#if:{{{8|}}}|{{mininav separator}}[[{{{8}}}]]}}{{#if:{{{9|}}}|{{mininav separator}}[[{{{9}}}]]}}{{#if:{{{10|}}}|{{mininav separator}}[[{{{10}}}]]}}{{#if:{{{no page|}}}| |{{mininav separator}}'''{{{page|{{#ifeq: {{NAMESPACE}} | HOW-TO | {{FULLPAGENAME}} | {{SUBPAGENAME}} }}}}}''' }}
</ul>
+
</ul></div>
 
<noinclude>
 
<noinclude>
 
== Template documentation ==
 
== Template documentation ==
Line 22: Line 22:
  
 
<pre>
 
<pre>
{{mininav|[[Vehicle Mods]]|[[LFS Editor]]|[[Modeller]]}}
+
{{mininav|Vehicle Mods|LFS Editor|Modeller}}
 
</pre>
 
</pre>
  
 
renders as
 
renders as
  
{{mininav|[[Vehicle Mods]]|[[LFS Editor]]|[[Modeller]]}}
+
{{mininav|Vehicle Mods|LFS Editor|Modeller}}
  
 
=== Example 2 - custom page name ===
 
=== Example 2 - custom page name ===
 
 
  
 
<pre>
 
<pre>
{{mininav|[[Vehicle Mods]]|[[LFS Editor]]|[[Modeller]]|page=LFS Modeller}}
+
{{mininav|Vehicle Mods|LFS Editor|Modeller|page=LFS Modeller}}
 
</pre>
 
</pre>
  
 
renders as
 
renders as
  
{{mininav|[[Vehicle Mods]]|[[LFS Editor]]|[[Modeller]]|page=Mininav Docs}}
+
{{mininav|Vehicle Mods|LFS Editor|Modeller|page=LFS Modeller}}
  
 
[[Category:Navigation templates]]
 
[[Category:Navigation templates]]

Latest revision as of 00:18, 2 December 2023

Template documentation

Manual creation of breadcrumbs.

Usage

{{mininav|Level 1|Level 2|Level 3|Level 4}}

Supports up to 10 levels

Ends the breadcrumb with the current page name. This can be manually overwritten with |page= or turned off by |no page= ("no page" does not need a value).

Examples

Example 1

{{mininav|Vehicle Mods|LFS Editor|Modeller}}

renders as


Example 2 - custom page name

{{mininav|Vehicle Mods|LFS Editor|Modeller|page=LFS Modeller}}

renders as