Template:sbenav
From Homestar Runner Wiki
(Difference between revisions)
It's dot com (Talk | contribs) (don't forget the sbemails directory) |
It's dot com (Talk | contribs) (switch to parser function (temporarily point to temporary template... temp)) |
||
| Line 1: | Line 1: | ||
{{NavFlex<!-- | {{NavFlex<!-- | ||
-->|LeftText=Strong Bad Email #<!-- | -->|LeftText=Strong Bad Email #<!-- | ||
| - | -->|LeftVar={{{1}}}<!-- | + | -->|LeftVar={{{1|{{#navlist:sbenav-lookup-TEMP|||#}}}}}<!-- /* calculate current number */ |
| - | -->|RightMainLink={{#if:{{{nolink|}}}||HR:{{{link|sbemails/{{{1}}}-{{#urlformat:}}}}}}}<!-- | + | -->|RightMainLink={{#if:{{{nolink|}}}||HR:{{{link|sbemails/{{{1|{{#navlist:sbenav-lookup-TEMP|||#}}}}}-{{#urlformat:}}}}}}}<!-- |
-->|RightMainText=watch<!-- | -->|RightMainText=watch<!-- | ||
| - | -->|RightPrevLink={{{2|{{sbenav-lookup| | + | -->|RightPrevLink={{{2|{{#navlist:sbenav-lookup-TEMP|prev||target}}}}}<!-- /* calculate previous link target */ |
| - | -->|RightPrevText={{{2|{{sbenav-lookup| | + | -->|RightPrevText={{{2|{{#navlist:sbenav-lookup-TEMP|prev}}}}}<!-- /* calculate previous link label */ |
| - | -->|RightNextLink={{{3|{{sbenav-lookup| | + | -->|RightNextLink={{{3|{{#navlist:sbenav-lookup-TEMP|next}}}}}<!-- /* calculate next link target */ |
| - | -->|RightNextText={{{3|{{sbenav-lookup| | + | -->|RightNextText={{{3|{{#navlist:sbenav-lookup-TEMP|next}}}}}<!-- /* calculate next link label */ |
| - | -->|FileName={{#if:{{{nolink|}}}||{{{link|sbemail{{{1}}}}}}}}<!-- | + | -->|FileName={{#if:{{{nolink|}}}||{{{link|sbemail{{{1|{{#navlist:sbenav-lookup-TEMP|||#}}}}}}}}}}<!-- |
-->}}<noinclude> | -->}}<noinclude> | ||
| Line 18: | Line 18: | ||
; Inputs | ; Inputs | ||
| - | : 1=sbemail # | + | : 1=sbemail # (optional, the template can determine automatically) |
| - | : 2=previous (optional, the template can determine | + | : 2=previous (optional, the template can determine automatically) |
| - | : 3=next (optional, the template can determine | + | : 3=next (optional, the template can determine automatically) |
: link=filename (optional for subtitle parameters, in case 1 is incorrect) | : link=filename (optional for subtitle parameters, in case 1 is incorrect) | ||
: nolink=true (optional parameter to suppress the watch link) | : nolink=true (optional parameter to suppress the watch link) | ||
Revision as of 18:25, 5 February 2021
| Strong Bad Email #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.
- 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)
