Template:hrenav
From Homestar Runner Wiki
(Difference between revisions)
(update parameters to better handle optional links (learned my lesson from Template:post, template will be called from an automate template) |
It's dot com (Talk | contribs) (add site parameter) |
||
| (includes 4 intermediate revisions) | |||
| Line 3: | Line 3: | ||
-->|LeftVar={{{1}}}<!-- | -->|LeftVar={{{1}}}<!-- | ||
| - | -->|RightMainLink={{#if:{{{nolink|}}}||HR:{{#if:{{{link|}}}|{{{link|}}}|hremail{{{1}}}}} | + | -->|RightMainLink={{#if:{{{nolink|}}}||{{{site|HR}}}:{{#if:{{{link|}}}|{{{link|}}}|toons/hremail{{{1}}}}}}}<!-- |
-->|RightMainText=watch<!-- | -->|RightMainText=watch<!-- | ||
| - | -->|RightPrevLink= | + | -->|RightPrevLink={{{2}}}<!-- |
| - | -->|RightPrevText= | + | -->|RightPrevText={{#if:{{{4|}}}|{{{3}}}|{{{2}}}}}<!-- |
| - | -->|RightNextLink= | + | -->|RightNextLink={{#if:{{{4|}}}|{{{4}}}|{{{3}}}}}<!-- |
| - | -->|RightNextText= | + | -->|RightNextText={{#if:{{{4|}}}|{{{5}}}|{{{3}}}}}<!-- |
-->|FileName={{#if:{{{link|}}}|{{{link|}}}|hremail{{{1}}}}}<!-- | -->|FileName={{#if:{{{link|}}}|{{{link|}}}|hremail{{{1}}}}}<!-- | ||
| Line 19: | Line 19: | ||
; Inputs | ; Inputs | ||
: 1=hremail # | : 1=hremail # | ||
| - | : 2= | + | : {{--}} |
| - | : 3= | + | : 2=previous |
| + | : 3=next | ||
| + | : -or- | ||
| + | : 2=previous target | ||
| + | : 3=previous label | ||
| + | : 4=next target | ||
| + | : 5=next label | ||
| + | : {{--}} | ||
: link=filename (optional for subtitle parameters, if 1 is incorrect) | : link=filename (optional for subtitle parameters, if 1 is incorrect) | ||
: nolink=true (optional parameter to suppress the watch link) | : nolink=true (optional parameter to suppress the watch link) | ||
| + | : site=website (optional; only if an [[Help:Namespaces#Interwiki Links|Interwiki link]] other than HR: is used) | ||
[[Category:NavFlex Templates|{{PAGENAME}}]] | [[Category:NavFlex Templates|{{PAGENAME}}]] | ||
Revision as of 20:46, 16 February 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=previous
- 3=next
- -or-
- 2=previous target
- 3=previous label
- 4=next target
- 5=next label
- —
- link=filename (optional for subtitle parameters, if 1 is incorrect)
- nolink=true (optional parameter to suppress the watch link)
- site=website (optional; only if an Interwiki link other than HR: is used)
