Difference between revisions of "Template:Mininav"

From LFS Manual
Jump to navigationJump to search
m
m
Line 1: Line 1:
<ul>
+
<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>

Revision as of 00:15, 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