Template:gamenav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
m (changing variable numbers for that case)
(implementing Template:NavFlex - hopefully this works...)
Line 1: Line 1:
{{#ifeq:{{{noplay}}}|true
{{#ifeq:{{{noplay}}}|true
-
|<table width=100% border=0 cellspacing=0 cellpadding=2><tr>
+
|<!--                      NOPLAY=TRUE
-
<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>
+
-->{{NavFlex<!--
-
<td style="border-right:1px solid #ccc;">[[{{{1}}}|<span style="font-size:small">&larr;</span> {{{1}}}]]</td>
+
  -->|LeftText=<!--
-
<td>[[{{{2}}}|{{{2}}} <span style="font-size:small">&rarr;</span>]]</td></tr></table></td>
+
  -->|LeftVar=<!--
-
</tr></table>
+
 
-
|<table width=100% border=0 cellspacing=0 cellpadding=2><tr>
+
  -->|RightMainLink=<!--
-
<td>'''Game Category: {{{1}}}'''</td>
+
  -->|RightMainText=<!--
-
<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>
+
 
-
<td style="border-right:1px solid #ccc;">[[HR:{{{2}}}.html|play]]&nbsp;&nbsp;</td>
+
  -->|RightPrevLink={{{1}}}<!--
-
<td style="border-right:1px solid #ccc;">[[{{{3}}}|<span style="font-size:small">&larr;</span> {{{3}}}]]</td>
+
  -->|RightPrevText={{{1}}}<!--
-
<td>[[{{{4}}}|{{{4}}} <span style="font-size:small">&rarr;</span>]]</td></tr></table></td>
+
 
-
</tr></table>
+
  -->|RightNextLink={{{2}}}<!--
-
}}<noinclude>[[Category:Quick Navigation Templates|{{PAGENAME}}]]</noinclude>
+
  -->|RightNextText={{{2}}}<!--
 +
 
 +
  -->|FileName={{{link|{{{2}}}}}}<!--
 +
-->}}
 +
|<!--                      NOPLAY=FALSE
 +
-->{{NavFlex<!--
 +
  -->|LeftText=Game Category:&nbsp;<!--
 +
  -->|LeftVar={{{1}}}<!--
 +
 
 +
  -->|RightMainLink=HR:{{{2}}}.html<!--
 +
  -->|RightMainText=play<!--
 +
 
 +
  -->|RightPrevLink={{{3}}}<!--
 +
  -->|RightPrevText={{{3}}}<!--
 +
 
 +
  -->|RightNextLink={{{4}}}<!--
 +
  -->|RightNextText={{{4}}}<!--
 +
 
 +
  -->|FileName={{{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=game category
 +
: 2=filename (for link)
 +
: 3=previous
 +
: 4=next
 +
: link=filename (optional for subtitle parameters, if 2 is incorrect)
 +
: noplay= (for no play)
 +
 
 +
; Inputs (noplay=true)
 +
: 1=prev
 +
: 2=next
 +
: link=filename (optional for subtitle parameters, if 2 is incorrect)
 +
: noplay=true (for no play)
 +
 
 +
[[Category:NavFlex Templates|{{PAGENAME}}]]
 +
[[Category:Quick Navigation Templates|{{PAGENAME}}]]
 +
 
 +
</noinclude>

Revision as of 04:23, 5 April 2009

Game Category: {{{1}}}
[[HR:{{{2}}}.html|play]] [[{{{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=game category
2=filename (for link)
3=previous
4=next
link=filename (optional for subtitle parameters, if 2 is incorrect)
noplay= (for no play)
Inputs (noplay=true)
1=prev
2=next
link=filename (optional for subtitle parameters, if 2 is incorrect)
noplay=true (for no play)
Personal tools