Template:anewgamenav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(add noplay support)
(switch cat)
 
(includes 3 intermediate revisions)
Line 1: Line 1:
-
{{#if:{{{noplay|}}}
+
{{gamenav<!--
-
|<!--                               noplay yes
+
-->|{{{gamecattype|New Game}}}<!-- /* game type */
-
-->{{gamenav<!--
+
-->|gamecat={{{gamecat|Game Category:&nbsp;}}}<!--
-
-->|{{#navlist:gamenav-lookup|prev}}<!-- /* calculate previous link */
+
-->|{{{1|}}}<!--
-
-->|{{#navlist:gamenav-lookup|next}}<!-- /* calculate next link */
+
-->|{{#navlist:newgamenav-lookup|prev}}<!-- /* calculate previous link */
 +
-->|{{#navlist:newgamenav-lookup|next}}<!-- /* calculate next link */
-->|link={{{link|{{{2}}}}}}<!--
-->|link={{{link|{{{2}}}}}}<!--
-
-->|noplay=true<!--
+
-->|site={{{site|HR}}}<!--
-
-->}}<!--
+
-->|noplay={{{noplay|}}}<!--
-
-->|<!--                                noplay no
+
-->}}<noinclude>
-
-->{{gamenav<!--
+
 
-
-->|{{{1}}}<!--
+
This template is an automated extension of {{t|gamenav}}. Previous and next are calculated using {{t|newgamenav-lookup}}. Please update the nav order there.
-
-->|{{{2}}}<!--
+
-
-->|{{#navlist:gamenav-lookup|prev}}<!-- /* calculate previous link */
+
-
-->|{{#navlist:gamenav-lookup|next}}<!-- /* calculate next link */
+
-
-->|link={{{link|{{{2}}}}}}<!--
+
-
-->}}<!--
+
-
-->}}<!-- /* end {{#if:{{{noplay|}}} */ --><noinclude>
+
-
This template is an automated extension of {{t|gamenav}}. Previous and next are calculated using {{t|gamenav-lookup}}. Please update the nav order there.
+
; Inputs
; Inputs
-
: 1=game category
+
: 1=filename (for link)
-
: 2=filename (for link)
+
: link=filename (optional for subtitle parameters, if 1 is incorrect)
: link=filename (optional for subtitle parameters, if 1 is incorrect)
 +
: site=website (optional; only if an [[Help:Namespaces#Interwiki Links|Interwiki link]] other than HR: is used)
 +
: noplay=suppress play link
 +
: gamecat=add blank parameter to remove game category label
 +
: gamecattype=add blank parameter to remove game category text
-
; Inputs (noplay=true)
+
[[Category:AutoNav Templates|{{PAGENAME}}]]
-
: link=filename (optional for subtitle parameters, if 2 is incorrect)
+
-
: noplay=true (for no play)
+
-
 
+
-
[[Category:QuickNav Assistance Templates|{{PAGENAME}}]]
+
</noinclude>
</noinclude>

Current revision as of 07:54, 22 February 2021

Game Category: New Game
play INVALID LOOKUP VALUE INVALID LOOKUP VALUE

This template is an automated extension of {{gamenav}}. Previous and next are calculated using {{newgamenav-lookup}}. Please update the nav order there.

Inputs
1=filename (for link)
link=filename (optional for subtitle parameters, if 1 is incorrect)
site=website (optional; only if an Interwiki link other than HR: is used)
noplay=suppress play link
gamecat=add blank parameter to remove game category label
gamecattype=add blank parameter to remove game category text