Template:sbenav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(rv/v)
(switch cat)
 
(includes 39 intermediate revisions)
Line 1: Line 1:
-
<table width=100% border=0 cellspacing=0 cellpadding=2><tr>
+
{{NavFlex<!--
-
<td>'''Strong Bad Email #{{{1}}}'''</td>
+
  -->|LeftText=Strong Bad Email #<!--
-
<td align=right><table 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>
+
  -->|LeftVar={{{1|{{#navlist:sbenav-lookup|||#}}}}}<!-- /* calculate current number */
-
<td style="border-right:1px solid #ccc;">[[HR:sbemail{{{1}}}.html|watch]]&nbsp;&nbsp;</td>
+
 
-
<td style="border-right:1px solid #ccc;">[[{{{2}}}|<span style="font-size:small">&larr;</span> {{{2}}}]]</td>
+
  -->|RightMainLink={{#if:{{{nolink|}}}||HR:{{{link|sbemails/{{{1|{{#navlist:sbenav-lookup|||#}}}}}-{{#urlformat:}}}}}}}<!--
-
<td>[[{{{3}}}|{{{3}}} <span style="font-size:small">&rarr;</span>]]</td></tr></table></td>
+
  -->|RightMainText=watch<!--
-
</tr></table><noinclude>[[Category:Quick Navigation Templates|{{PAGENAME}}]]</noinclude>
+
 
 +
  -->|RightPrevLink={{{2|{{#navlist:sbenav-lookup|prev||target}}}}}<!-- /* calculate previous link target */
 +
  -->|RightPrevText={{{2|{{#navlist:sbenav-lookup|prev}}}}}<!--        /* calculate previous link label */
 +
 
 +
  -->|RightNextLink={{{3|{{#navlist:sbenav-lookup|next}}}}}<!--        /* calculate next link target */
 +
  -->|RightNextText={{{3|{{#navlist:sbenav-lookup|next}}}}}<!--        /* calculate next link label */
 +
 
 +
  -->|FileName={{#if:{{{nolink|}}}||{{{link|sbemail{{{1|{{#navlist:sbenav-lookup|||#}}}}}}}}}}<!--
 +
-->}}<noinclude>
 +
 
 +
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
 +
: 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)
 +
 
 +
[[Category:NavFlex Templates|{{PAGENAME}}]]
 +
[[Category:AutoNav Templates|{{PAGENAME}}]]
 +
[[Category:Strong Bad Email QuickNav Templates|{{PAGENAME}}]]
 +
 
 +
</noinclude>

Current revision as of 08:08, 22 February 2021

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)
Personal tools