Template:prevnextnav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(implementing Template:NavFlex)
(make template able to take 2 or 4 inputs to combine with similar template)
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
[[Category:NavFlex Templates|{{PAGENAME}}]]
[[Category:NavFlex Templates|{{PAGENAME}}]]

Revision as of 19:43, 2 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
Personal tools