Template:prevnextnav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(new experiment)
(add optional itemcat parameter)
 
(includes 12 intermediate revisions)
Line 1: Line 1:
-
<table align=right border="1" cellpadding="4" cellspacing="0" style="background:#f2f2f2;border:1px solid #ccc;padding: 5px;font-size:x-small;line-height:100%;border-collapse: collapse;"><tr><td><nobr>[[{{{2}}}|<span style="font-size:small">&larr;</span> {{{2}}}]]</nobr></td>
+
{{NavFlex<!--
-
<td><nobr>[[{{{3}}}|{{{3}}} <span style="font-size:small">&rarr;</span>]]</nobr></td></tr></table>
+
  -->|LeftText={{{itemcat|}}}<!--
 +
  -->|LeftVar=<!--
 +
 
 +
  -->|RightMainLink=<!--
 +
  -->|RightMainText=<!--
 +
 
 +
  -->|RightPrevLink={{{1}}}<!--
 +
  -->|RightPrevText={{#if:{{{3|}}}|{{{2}}}|{{{1}}}}}<!--
 +
 
 +
  -->|RightNextLink={{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}<!--
 +
  -->|RightNextText={{#if:{{{3|}}}|{{{4}}}|{{{2}}}}}<!--
 +
 
 +
  -->|FileName=<!--
 +
-->}}<noinclude>
 +
 
 +
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)
 +
 
 +
[[Category:NavFlex Templates|{{PAGENAME}}]]
 +
[[Category:Quick Navigation Templates|{{PAGENAME}}]]
 +
 
 +
</noinclude>

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