Difference between revisions of "Template:Navigation"

From Official Kodi Wiki
Jump to navigation Jump to search
(Undo revision 62369 by Ned Scott (talk))
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 '''{{{nav name}}}: '''  
 '''{{{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>  
{{#if: {{{link3|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link3}}} | background-color: #dee; }} "> [[:{{{link3}}}|{{{link3 name|{{{link3}}}}}}]]</span> }}<!--
{{#if: {{{link3|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link3}}} | background-color: #dee; }} "> [[:{{{link3}}}|{{{link3 name|{{{link3}}}}}}]]</span> }}<!--
-->{{#if: {{{link4|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link4}}} | background-color: #dee; }} "> [[:{{{link4}}}|{{{link4 name|{{{link4}}}}}}]]</span> }}<!--
-->{{#if: {{{link4|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link4}}} | background-color: #dee; }} "> [[:{{{link4}}}|{{{link4 name|{{{link4}}}}}}]]</span> }}<!--
-->{{#if: {{{link5|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link5}}} | background-color: #dee; }} "> [[:{{{link5}}}|{{{link5 name|{{{link5}}}}}}]]</span> }}<!--
-->{{#if: {{{link5|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link5}}} | background-color: #dee; }} "> [[:{{{link5}}}|{{{link5 name|{{{link5}}}}}}]]</span> }}<!--
-->{{#if: {{{link6|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link6}}} | background-color: #dee; }} "> [[:{{{link6}}}|{{{link6 name|{{{link6}}}}}}]]</span> }}<!--
-->{{#if: {{{link6|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link6}}} | background-color: #dee; }} "> [[:{{{link6}}}|{{{link6 name|{{{link6}}}}}}]]</span> }}<!--
-->{{#if: {{{link7|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link7}}} | background-color: #dee; }} "> [[:{{{link7}}}|{{{link7 name|{{{link7}}}}}}]]</span> }}<!--
-->{{#if: {{{link7|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link7}}} | background-color: #dee; }} "> [[:{{{link7}}}|{{{link7 name|{{{link7}}}}}}]]</span> }}<!--
-->{{#if: {{{link8|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link8}}} | background-color: #dee; }} "> [[:{{{link8}}}|{{{link8 name|{{{link8}}}}}}]]</span> }}<!--
-->{{#if: {{{link8|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link8}}} | background-color: #dee; }} "> [[:{{{link8}}}|{{{link8 name|{{{link8}}}}}}]]</span> }}<!--
-->{{#if: {{{link9|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link9}}} | background-color: #dee; }} "> [[:{{{link9}}}|{{{link9 name|{{{link9}}}}}}]]</span> }}<!--
-->{{#if: {{{link9|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link9}}} | background-color: #dee; }} "> [[:{{{link9}}}|{{{link9 name|{{{link9}}}}}}]]</span> }}<!--
-->{{#if: {{{link10|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link10}}} | background-color: #dee; }} "> [[:{{{link10}}}|{{{link10 name|{{{link10}}}}}}]]</span> }}<!--
-->{{#if: {{{link10|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link10}}} | background-color: #dee; }} "> [[:{{{link10}}}|{{{link10 name|{{{link10}}}}}}]]</span> }}<!--
-->{{#if: {{{link11|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link11}}} | background-color: #dee; }} "> [[:{{{link11}}}|{{{link11 name|{{{link11}}}}}}]]</span> }}<!--
-->{{#if: {{{link11|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link11}}} | background-color: #dee; }} "> [[:{{{link11}}}|{{{link11 name|{{{link11}}}}}}]]</span> }}<!--
-->{{#if: {{{link12|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link12}}} | background-color: #dee; }} "> [[:{{{link12}}}|{{{link12 name|{{{link12}}}}}}]]</span> }}<!--
-->{{#if: {{{link12|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link12}}} | background-color: #dee; }} "> [[:{{{link12}}}|{{{link12 name|{{{link12}}}}}}]]</span> }}<!--
-->{{#if: {{{link13|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link13}}} | background-color: #dee; }} "> [[:{{{link13}}}|{{{link13 name|{{{link13}}}}}}]]</span> }}<!--
-->{{#if: {{{link13|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link13}}} | background-color: #dee; }} "> [[:{{{link13}}}|{{{link13 name|{{{link13}}}}}}]]</span> }}<!--
-->{{#if: {{{link14|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link12}}} | background-color: #dee; }} "> [[:{{{link14}}}|{{{link14 name|{{{link14}}}}}}]]</span> }}<!--
-->{{#if: {{{link14|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link12}}} | background-color: #dee; }} "> [[:{{{link14}}}|{{{link14 name|{{{link14}}}}}}]]</span> }}<!--
-->{{#if: {{{link15|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link15}}} | background-color: #dee; }} "> [[:{{{link15}}}|{{{link15 name|{{{link15}}}}}}]]</span> }}<!--
-->{{#if: {{{link15|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link15}}} | background-color: #dee; }} "> [[:{{{link15}}}|{{{link15 name|{{{link15}}}}}}]]</span> }}<!--
-->{{#if: {{{link16|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link16}}} | background-color: #dee; }} "> [[:{{{link16}}}|{{{link16 name|{{{link16}}}}}}]]</span> }}<!--
-->{{#if: {{{link16|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link16}}} | background-color: #dee; }} "> [[:{{{link16}}}|{{{link16 name|{{{link16}}}}}}]]</span> }}<!--
-->{{#if: {{{link17|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link17}}} | background-color: #dee; }} "> [[:{{{link17}}}|{{{link17 name|{{{link17}}}}}}]]</span> }}<!--
-->{{#if: {{{link17|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link17}}} | background-color: #dee; }} "> [[:{{{link17}}}|{{{link17 name|{{{link17}}}}}}]]</span> }}<!--
-->{{#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> }}&nbsp;
-->{{#if: {{{link20|}}} | <big> </big><span style="white-space:nowrap; {{#ifeq: {{FULLPAGENAME}} | {{{link20}}} | background-color: #dee; }} "> [[:{{{link20}}}|{{{link20 name|{{{link20}}}}}}]]</span> }}&nbsp;
|}<noinclude>{{documentation}}</noinclude>
|}<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
}}