Template:hrenav
From Homestar Runner Wiki
(Difference between revisions)
(copy over nolink functionality from Template:sbenav) |
(update parameters to better handle optional links (learned my lesson from Template:post, template will be called from an automate template) |
||
Line 3: | Line 3: | ||
-->|LeftVar={{{1}}}<!-- | -->|LeftVar={{{1}}}<!-- | ||
- | -->|RightMainLink={{#if:{{{nolink|}}}||HR:{{{link|hremail{{{1 | + | -->|RightMainLink={{#if:{{{nolink|}}}||HR:{{#if:{{{link|}}}|{{{link|}}}|hremail{{{1}}}}}.html}}<!-- |
-->|RightMainText=watch<!-- | -->|RightMainText=watch<!-- | ||
Line 12: | Line 12: | ||
-->|RightNextText=Hremail {{{3}}}<!-- | -->|RightNextText=Hremail {{{3}}}<!-- | ||
- | -->|FileName={{{link|hremail{{{1 | + | -->|FileName={{#if:{{{link|}}}|{{{link|}}}|hremail{{{1}}}}}<!-- |
-->}}<noinclude> | -->}}<noinclude> | ||
Revision as of 09:26, 24 January 2021
Hremail #{{{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=hremail #
- 2=hremail # previous
- 3=hremail # next
- link=filename (optional for subtitle parameters, if 1 is incorrect)
- nolink=true (optional parameter to suppress the watch link)