Template:gamenav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(implementing Template:NavFlex - hopefully this works...)
(tweak key)
 
(includes 6 intermediate revisions)
Line 1: Line 1:
-
{{#ifeq:{{{noplay}}}|true
+
{{NavFlex<!--
-
|<!--                      NOPLAY=TRUE
+
   -->|LeftText={{{gamecat|Game Category:&nbsp;}}}<!--
-
-->{{NavFlex<!--
+
   -->|LeftVar={{{1|}}}<!--
-
   -->|LeftText=<!--
+
-
   -->|LeftVar=<!--
+
-
   -->|RightMainLink=<!--
+
   -->|RightMainLink={{#if:{{{noplay|}}}||{{{site|HR}}}:{{{2}}}{{#ifeq:{{{site|HR}}}|OldHR|.html|}}}}<!--
-
  -->|RightMainText=<!--
+
-
 
+
-
  -->|RightPrevLink={{{1}}}<!--
+
-
  -->|RightPrevText={{{1}}}<!--
+
-
 
+
-
  -->|RightNextLink={{{2}}}<!--
+
-
  -->|RightNextText={{{2}}}<!--
+
-
 
+
-
  -->|FileName={{{link|{{{2}}}}}}<!--
+
-
-->}}
+
-
|<!--                      NOPLAY=FALSE
+
-
-->{{NavFlex<!--
+
-
  -->|LeftText=Game Category:&nbsp;<!--
+
-
  -->|LeftVar={{{1}}}<!--
+
-
 
+
-
  -->|RightMainLink=HR:{{{2}}}.html<!--
+
   -->|RightMainText=play<!--
   -->|RightMainText=play<!--
   -->|RightPrevLink={{{3}}}<!--
   -->|RightPrevLink={{{3}}}<!--
-
   -->|RightPrevText={{{3}}}<!--
+
   -->|RightPrevText={{#if:{{{5|}}}|{{{4}}}|{{{3}}}}}<!--
-
   -->|RightNextLink={{{4}}}<!--
+
   -->|RightNextLink={{#if:{{{5|}}}|{{{5}}}|{{{4}}}}}<!--
-
   -->|RightNextText={{{4}}}<!--
+
   -->|RightNextText={{#if:{{{5|}}}|{{{6}}}|{{{4}}}}}<!--
-
   -->|FileName={{{link|{{{2}}}}}}<!--
+
   -->|FileName={{#if:{{{link|}}}|{{{link|}}}|{{{2}}}}}<!--
-
-->}}
+
-->}}<noinclude>
-
}}<noinclude>
+
This template is an extension of [[Template:NavFlex]].  If you need to change the visual style, you'll need to edit over there.
This template is an extension of [[Template:NavFlex]].  If you need to change the visual style, you'll need to edit over there.
; Inputs
; Inputs
-
: 1=game category
+
: 1=game category text
: 2=filename (for link)
: 2=filename (for link)
 +
: {{--}}
: 3=previous
: 3=previous
: 4=next
: 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)
: link=filename (optional for subtitle parameters, if 2 is incorrect)
-
: noplay= (for no play)
+
: site=website (optional; only if an [[Help:Namespaces#Interwiki Links|Interwiki link]] other than HR: is used)
-
 
+
: noplay=true (optional parameter to suppress the play link)
-
; Inputs (noplay=true)
+
: gamecat=add blank parameter to remove game category label
-
: 1=prev
+
-
: 2=next
+
-
: link=filename (optional for subtitle parameters, if 2 is incorrect)
+
-
: noplay=true (for no play)
+
[[Category:NavFlex Templates|{{PAGENAME}}]]
[[Category:NavFlex Templates|{{PAGENAME}}]]

Current revision as of 23:48, 1 February 2021

Game Category: 
[[HR:{{{2}}}|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 text
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)
noplay=true (optional parameter to suppress the play link)
gamecat=add blank parameter to remove game category label