Template:sbenav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(rv; better the old way; please discuss changes to sitewide templates on the talk page (or at the very least enter an edit comment))
(+documentation)
(includes 12 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}}}<!--
-
<td style="border-right:1px solid #ccc;">[[HR:{{{link|sbemail{{{1}}}.html}}}|watch]]&nbsp;&nbsp;</td>
+
 
-
<td 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}}}}}}}]]</td>
+
  -->|RightMainLink={{#if:{{{nolink|}}}||HR:{{{link|sbemail{{{1}}}}}}.html}}<!--
-
<td>[[{{{3|{{sbemail|{{#expr:{{{1|0}}}+1}}}}}}}|{{{3|{{sbemail|{{#expr:{{{1|0}}}+1}}}}}}} <span style="font-size:small">&rarr;</span>]]</td></tr></table></td>
+
  -->|RightMainText=watch<!--
-
</tr></table>{{subtitlesLinks|sbemail{{{1}}}}}<noinclude>[[Category:Quick Navigation Templates|{{PAGENAME}}]]</noinclude>
+
 
 +
  -->|RightPrevLink={{{2|{{sbemail|{{#ifexpr:({{{1|1}}}-1)>=1|{{#expr:{{{1|1}}}-1}}|last}}}}}}}<!--
 +
  -->|RightPrevText={{{2|{{sbemail|{{#ifexpr:({{{1|1}}}-1)>=1|{{#expr:{{{1|1}}}-1}}|last}}}}}}}<!--
 +
 
 +
  -->|RightNextLink={{{3|{{sbemail|{{#expr:{{{1|0}}}+1}}}}}}}<!--
 +
  -->|RightNextText={{{3|{{sbemail|{{#expr:{{{1|0}}}+1}}}}}}}<!--
 +
 
 +
  -->|FileName={{#if:{{{nolink|}}}||{{{link|sbemail{{{1}}}}}}}}<!--
 +
-->}}<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=sbemail #
 +
: 2=previous (optional, the template can determine based on input 1)
 +
: 3=next (optional, the template can determine based on input 1)
 +
: 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:Quick Navigation Templates|{{PAGENAME}}]]
 +
 
 +
</noinclude>

Revision as of 16:03, 30 June 2009

Strong Bad Email #{{{1}}}
[[HR:sbemail{{{1}}}.html|watch]] parenting some kinda robot

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=sbemail #
2=previous (optional, the template can determine based on input 1)
3=next (optional, the template can determine based on input 1)
link=filename (optional for subtitle parameters, in case 1 is incorrect)
nolink=true (optional parameter to suppress the watch link)
Personal tools