Difference between revisions of "Template:Navigation"

From Official Kodi Wiki
Jump to navigation Jump to search
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| style="border: 1px solid #0000CC;"
{| style="border: 1px solid #0000CC;"
|
|  
'''{{{nav title}}}: '''  
 '''{{{nav name}}}: '''  
<span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link1}}} | background-color: #dee; }} "> [[:{{{link1}}}|{{{link1 name|{{{link1}}}}}}]]</span>  
<span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link1}}} | background-color: #dee; }} "> [[:{{{link1}}}|{{{link1 name|{{{link1}}}}}}]]</span>  
<big> • </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link2}}} | background-color: #dee; }} "> [[:{{{link2}}}|{{{link2 name|{{{link2}}}}}}]]</span>  
<big> • </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link2}}} | background-color: #dee; }} "> [[:{{{link2}}}|{{{link2 name|{{{link2}}}}}}]]</span>  
Line 21: Line 21:
-->{{#if: {{{link18|}}} | <big> • </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link18}}} | background-color: #dee; }} "> [[:{{{link18}}}|{{{link18 name|{{{link18}}}}}}]]</span> }}<!--
-->{{#if: {{{link18|}}} | <big> • </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link18}}} | background-color: #dee; }} "> [[:{{{link18}}}|{{{link18 name|{{{link18}}}}}}]]</span> }}<!--
-->{{#if: {{{link19|}}} | <big> • </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link19}}} | background-color: #dee; }} "> [[:{{{link19}}}|{{{link19 name|{{{link19}}}}}}]]</span> }}<!--
-->{{#if: {{{link19|}}} | <big> • </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link19}}} | background-color: #dee; }} "> [[:{{{link19}}}|{{{link19 name|{{{link19}}}}}}]]</span> }}<!--
-->{{#if: {{{link20|}}} | <big> • </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link20}}} | background-color: #dee; }} "> [[:{{{link20}}}|{{{link20 name|{{{link20}}}}}}]]</span> }}
-->{{#if: {{{link20|}}} | <big> • </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link20}}} | background-color: #dee; }} "> [[:{{{link20}}}|{{{link20 name|{{{link20}}}}}}]]</span> }}&nbsp;
|}
|}<noinclude>{{documentation}}</noinclude>

Latest revision as of 17:21, 8 September 2015

 {{{nav name}}}: [[:{{{link1}}}|{{{link1}}}]] [[:{{{link2}}}|{{{link2}}}]]  

[edit] Template documentation

Used for making navigation templates between a series of related pages.

Usage

Make a new template with the following:

{{Navigation
 | nav name = 
 | link1 = 
 | link2 = 
 | link3 = 
 | link4 = 
}}

Can be used up to | link20 = . Requires at least two links (why else would you need a nav template?).

If you need to format the link name differently than the page name (same idea as using [[link|link name]] then use | link1 name = , etc.

For example, here link3 is given a different link name than the page name:

{{Navigation
 | nav name = Bugs
 | link1 = Ants
 | link2 = Spiders
 | link3 = Flys (the bad kind)
 | link3 name = Flys
 | link4 = Polar bears
}}