Template:prevnextnav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(implementing Template:NavFlex)
(add optional itemcat parameter)
 
(includes 2 intermediate revisions)
Line 1: Line 1:
{{NavFlex<!--
{{NavFlex<!--
-
   -->|LeftText=<!--
+
   -->|LeftText={{{itemcat|}}}<!--
   -->|LeftVar=<!--
   -->|LeftVar=<!--
Line 7: Line 7:
   -->|RightPrevLink={{{1}}}<!--
   -->|RightPrevLink={{{1}}}<!--
-
   -->|RightPrevText={{{2}}}<!--
+
   -->|RightPrevText={{#if:{{{3|}}}|{{{2}}}|{{{1}}}}}<!--
-
   -->|RightNextLink={{{3}}}<!--
+
   -->|RightNextLink={{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}<!--
-
   -->|RightNextText={{{4}}}<!--
+
   -->|RightNextText={{#if:{{{3|}}}|{{{4}}}|{{{2}}}}}<!--
   -->|FileName=<!--
   -->|FileName=<!--
Line 18: Line 18:
; Inputs
; Inputs
-
: 1=previous (link)
+
: 1=previous
-
: 2=previous (display text)
+
: 2=next
-
: 3=next (link)
+
: -or-
-
: 4=next (display text)
+
: 1=previous target
 +
: 2=previous label
 +
: 3=next target
 +
: 4=next label
 +
: {{--}}
 +
: itemcat=add item category text (optional)
[[Category:NavFlex Templates|{{PAGENAME}}]]
[[Category:NavFlex Templates|{{PAGENAME}}]]

Current revision as of 10:17, 3 February 2021

[[{{{1}}}| {{{1}}}]] [[{{{2}}}|{{{2}}} ]]

This template is an extension of Template:NavFlex. If you need to change the visual style, you'll need to edit over there.

Inputs
1=previous
2=next
-or-
1=previous target
2=previous label
3=next target
4=next label
itemcat=add item category text (optional)
Personal tools