Template:sbenav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(re-implement template with wiki code (vs html))
(link to sbemail article)
 
(includes 16 intermediate revisions)
Line 1: Line 1:
-
{| width=100% cellspacing=0 cellpadding=2
+
{{NavFlex<!--
-
| '''Strong Bad Email #{{{1}}}'''
+
  -->|LeftText=[[Strong Bad Email]] #<!--
-
|
+
  -->|LeftVar={{{1|{{#navlist:sbenav-lookup|||#}}}}}<!-- /* calculate current number */
-
{| 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;"
+
-
| style="border-right:1px solid #ccc;" | [[HR:{{{link|sbemail{{{1}}}}}}.html|watch]]&nbsp;&nbsp;
+
-
| style="border-right:1px solid #ccc;" | [[{{{2|{{sbemail|{{#ifexpr:({{{1|1}}}-1)>=1|{{#expr:{{{1|1}}}-1}}|last}}}}}}}|<span style="font-size:small">&larr;</span> {{{2|{{sbemail|{{#ifexpr:({{{1|1}}}-1)>=1|{{#expr:{{{1|1}}}-1}}|last}}}}}}}]]
+
-
| [[ {{{3|{{sbemail|{{#expr:{{{1|0}}}+1}}}}}}}|{{{3|{{sbemail|{{#expr:{{{1|0}}}+1}}}}}}} <span style="font-size:small">&rarr;</span>]]
+
-
|}
+
-
|}
+
-
{{subtitlesLinks|{{{link|sbemail{{{1}}}}}}}}<noinclude>
+
-
[[Category:Quick Navigation Templates|{{PAGENAME}}]]
+
  -->|RightMainLink={{#if:{{{nolink|}}}||HR:{{{link|sbemails/{{{1|{{#navlist:sbenav-lookup|||#}}}}}-{{#urlformat:}}}}}}}<!--
 +
  -->|RightMainText=watch<!--
 +
 
 +
  -->|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>
</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)
Personal tools