Difference between revisions of "Template:Mininav"

From Official Kodi Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{| cellspacing="0" cellpadding="0" style="{{border-radius|5px}}; {{box-shadow|0px|1px|3px|#878787}}; {{linear-gradient|top|#FEFEFE, #E1E1E1}}"
 
{| cellspacing="0" cellpadding="0" style="{{border-radius|5px}}; {{box-shadow|0px|1px|3px|#878787}}; {{linear-gradient|top|#FEFEFE, #E1E1E1}}"
 
| style="padding:7px; {{border-radius|5px 0px 0px 5px}}; {{linear-gradient|top|#383B40, #292C30}}" | [[File:Home icon grey.png|link=Main Page|20px]]
 
| style="padding:7px; {{border-radius|5px 0px 0px 5px}}; {{linear-gradient|top|#383B40, #292C30}}" | [[File:Home icon grey.png|link=Main Page|20px]]
| style="padding:2px;" |[[File:TriangleArrow-Left.svg|7px|link=]] {{{1}}} {{#if:{{{2|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{2}}}  }}{{#if:{{{3|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{3}}}  }}{{#if:{{{4|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{4}}}  }}{{#if:{{{5|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{5}}}  }}{{#if:{{{6|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{6}}}  }}{{#if:{{{7|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{7}}}  }}{{#if:{{{8|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{8}}}  }}{{#if:{{{9|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{9}}}  }}{{#if:{{{10|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{10}}}  }}
+
| style="padding-right:2px; padding-top:2px; padding-bottom:2px; padding-left:7px" |[[File:TriangleArrow-Left.svg|7px|link=]] {{{1}}} {{#if:{{{2|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{2}}}  }}{{#if:{{{3|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{3}}}  }}{{#if:{{{4|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{4}}}  }}{{#if:{{{5|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{5}}}  }}{{#if:{{{6|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{6}}}  }}{{#if:{{{7|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{7}}}  }}{{#if:{{{8|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{8}}}  }}{{#if:{{{9|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{9}}}  }}{{#if:{{{10|}}}|[[File:TriangleArrow-Left.svg|7px|link=]] {{{10}}}  }}
 
|}<br/><noinclude>
 
|}<br/><noinclude>
 
{{doc}}</noinclude>
 
{{doc}}</noinclude>

Revision as of 03:40, 7 June 2013

Home icon grey.png TriangleArrow-Left.svg {{{1}}} 

[edit] Template documentation

Manual creation of breadcrumbs. Should only be used on main XBMC manual pages to aid navigation. Some exceptions might apply. Slightly experimental.

1 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).

2 Examples

2.1 Example 1

{{mininav|[[Videos]]|[[Basic_controls|Navigation]]|Context menu}}


creates


Home icon grey.png   ▶ Videos ▶ Navigation ▶ Context menu ▶ Mininav

2.2 Example 2

Adding the {{l2}} (line 2) template can make a second path in the same cell, for creating more than one breadcrumb path:

{{mininav| [[Settings]] {{l2| [[Video library]] }} }}


creates


Home icon grey.png   ▶ Settings
▶ Video library
▶ Mininav