Template:sbenav
From Homestar Runner Wiki
(Difference between revisions)
(with the addition of the 0 entry we can simplify the logic (unless sbemail 0 becomes a thing! ;) )) |
It's dot com (Talk | contribs) (update template name) |
||
Line 6: | Line 6: | ||
-->|RightMainText=watch<!-- | -->|RightMainText=watch<!-- | ||
- | -->|RightPrevLink={{{2|{{ | + | -->|RightPrevLink={{{2|{{sbenav-lookup|{{#expr:{{{1|1}}}-1}}}}}}}<!-- |
- | -->|RightPrevText={{{2|{{ | + | -->|RightPrevText={{{2|{{sbenav-lookup|{{#expr:{{{1|1}}}-1}}}}}}}<!-- |
- | -->|RightNextLink={{{3|{{ | + | -->|RightNextLink={{{3|{{sbenav-lookup|{{#expr:{{{1|0}}}+1}}}}}}}<!-- |
- | -->|RightNextText={{{3|{{ | + | -->|RightNextText={{{3|{{sbenav-lookup|{{#expr:{{{1|0}}}+1}}}}}}}<!-- |
-->|FileName={{#if:{{{nolink|}}}||{{{link|sbemail{{{1}}}}}}}}<!-- | -->|FileName={{#if:{{{nolink|}}}||{{{link|sbemail{{{1}}}}}}}}<!-- |
Revision as of 21:01, 2 February 2021
Strong Bad Email #{{{1}}} |
|
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)