Template:sbenav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(implementing Template:NavFlex)
(link to sbemail article)
 
(includes 15 intermediate revisions)
Line 1: Line 1:
{{NavFlex<!--
{{NavFlex<!--
-
   -->|LeftText=Strong Bad Email #<!--
+
   -->|LeftText=[[Strong Bad Email]] #<!--
-
   -->|LeftVar={{{1}}}<!--
+
   -->|LeftVar={{{1|{{#navlist:sbenav-lookup|||#}}}}}<!-- /* calculate current number */
-
   -->|RightMainLink=HR:sbemail{{{1}}}.html<!--
+
   -->|RightMainLink={{#if:{{{nolink|}}}||HR:{{{link|sbemails/{{{1|{{#navlist:sbenav-lookup|||#}}}}}-{{#urlformat:}}}}}}}<!--
   -->|RightMainText=watch<!--
   -->|RightMainText=watch<!--
-
   -->|RightPrevLink={{{2|{{sbemail|{{#ifexpr:({{{1|1}}}-1)>=1|{{#expr:{{{1|1}}}-1}}|last}}}}}}}<!--
+
   -->|RightPrevLink={{{2|{{#navlist:sbenav-lookup|prev||target}}}}}<!-- /* calculate previous link target */
-
   -->|RightPrevText={{{2|{{sbemail|{{#ifexpr:({{{1|1}}}-1)>=1|{{#expr:{{{1|1}}}-1}}|last}}}}}}}<!--
+
   -->|RightPrevText={{{2|{{#navlist:sbenav-lookup|prev}}}}}<!--         /* calculate previous link label */
-
   -->|RightNextLink={{{3|{{sbemail|{{#expr:{{{1|0}}}+1}}}}}}}<!--
+
   -->|RightNextLink={{{3|{{#navlist:sbenav-lookup|next}}}}}<!--         /* calculate next link target */
-
   -->|RightNextText={{{3|{{sbemail|{{#expr:{{{1|0}}}+1}}}}}}}<!--
+
   -->|RightNextText={{{3|{{#navlist:sbenav-lookup|next}}}}}<!--         /* calculate next link label */
-
   -->|FileName={{{link|sbemail{{{1}}}}}}<!--
+
   -->|FileName={{#if:{{{nolink|}}}||{{{link|sbemail{{{1|{{#navlist:sbenav-lookup|||#}}}}}}}}}}<!--
-
-->}}
+
-->}}<noinclude>
-
[[Category:Toons|{{PAGENAME}}]]<noinclude>
+
This template is an extension of [[Template:NavFlex]].  If you need to change the visual style, you'll need to edit over there.
This template is an extension of [[Template:NavFlex]].  If you need to change the visual style, you'll need to edit over there.
 +
 +
The email number and the next and previous values are calculated using {{t|sbenav-lookup}}. Please update the nav order there.
; Inputs
; Inputs
-
: 1=toon category
+
: 1=sbemail # (optional, the template can determine automatically)
-
: 2=filename (for link)
+
: 2=previous (optional, the template can determine automatically)
-
: 3=previous
+
: 3=next (optional, the template can determine automatically)
-
: 4=next
+
: link=filename (optional for subtitle parameters, in case 1 is incorrect)
-
: link=filename (optional for subtitle parameters, if 2 is incorrect)
+
: nolink=true (optional parameter to suppress the watch link)
[[Category:NavFlex Templates|{{PAGENAME}}]]
[[Category:NavFlex Templates|{{PAGENAME}}]]
-
[[Category:Quick Navigation Templates|{{PAGENAME}}]]
+
[[Category:AutoNav Templates|{{PAGENAME}}]]
 +
[[Category:Strong Bad Email QuickNav Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Current revision as of 23:35, 18 June 2025

Strong Bad Email #INVALID LOOKUP VALUE
watch INVALID LOOKUP VALUE INVALID LOOKUP VALUE

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

The email number and the next and previous values are calculated using {{sbenav-lookup}}. Please update the nav order there.

Inputs
1=sbemail # (optional, the template can determine automatically)
2=previous (optional, the template can determine automatically)
3=next (optional, the template can determine automatically)
link=filename (optional for subtitle parameters, in case 1 is incorrect)
nolink=true (optional parameter to suppress the watch link)