Template:toonnav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(disable .html for HR, enable for OldHR)
 
(includes 12 intermediate revisions)
Line 1: Line 1:
-
<table width=100% border=0 cellspacing=0 cellpadding=2><tr>
+
{{NavFlex<!--
-
<td>'''Toon Category: {{{1}}}'''</td>
+
  -->|LeftText={{{tooncat|Toon Category:&nbsp;}}}<!--
-
<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:{{{2}}}.html|watch]]&nbsp;&nbsp;</td>
+
 
-
<td style="border-right:1px solid #ccc;">[[HR:{{{5}}}.swf|view Flash file]]</td>
+
  -->|RightMainLink={{#if:{{{nolink|}}}||{{{site|HR}}}:{{{2}}}{{#ifeq:{{{site|HR}}}|OldHR|.html|}}}}<!--
-
<td style="border-right:1px solid #ccc;">[[{{{3}}}|<span style="font-size:small">&larr;</span> {{{3}}}]]</td>
+
  -->|RightMainText=watch<!--
-
<td>[[{{{4}}}|{{{4}}} <span style="font-size:small">&rarr;</span>]]</td></tr></table></td>
+
 
-
</tr></table><noinclude>[[Category:Quick Navigation Templates|{{PAGENAME}}]]</noinclude>
+
  -->|RightPrevLink={{{3}}}<!--
 +
  -->|RightPrevText={{#if:{{{5|}}}|{{{4}}}|{{{3}}}}}<!--
 +
 
 +
  -->|RightNextLink={{#if:{{{5|}}}|{{{5}}}|{{{4}}}}}<!--
 +
  -->|RightNextText={{#if:{{{5|}}}|{{{6}}}|{{{4}}}}}<!--
 +
 
 +
  -->|FileName={{#if:{{{link|}}}|{{{link|}}}|{{{2}}}}}<!--
 +
-->}}<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=toon category
 +
: 2=filename (for link)
 +
: {{--}}
 +
: 3=previous
 +
: 4=next
 +
: -or-
 +
: 3=previous target
 +
: 4=previous label
 +
: 5=next target
 +
: 6=next label
 +
: {{--}}
 +
: link=filename (optional for subtitle parameters, if 2 is incorrect)
 +
: site=website (optional; only if an [[Help:Namespaces#Interwiki Links|Interwiki link]] other than HR: is used)
 +
: nolink=true (optional parameter to suppress the watch link)
 +
: tooncat=add blank parameter to remove toon category text
 +
 
 +
[[Category:NavFlex Templates|{{PAGENAME}}]]
 +
[[Category:Quick Navigation Templates|{{PAGENAME}}]]
 +
 
 +
</noinclude>

Current revision as of 03:42, 1 February 2021

Toon Category: 
[[HR:{{{2}}}|watch]] [[{{{3}}}| {{{3}}}]] [[{{{4}}}|{{{4}}} ]]

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=toon category
2=filename (for link)
3=previous
4=next
-or-
3=previous target
4=previous label
5=next target
6=next label
link=filename (optional for subtitle parameters, if 2 is incorrect)
site=website (optional; only if an Interwiki link other than HR: is used)
nolink=true (optional parameter to suppress the watch link)
tooncat=add blank parameter to remove toon category text
Personal tools