Template:anewgamenav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(new games)
(restructure based on so that noplay, gamecat, and gamecattype can be set independently)
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}}}<!--
+
-
-->|{{{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|newgamenav-lookup}}. Please update the nav order there.
This template is an automated extension of {{t|gamenav}}. Previous and next are calculated using {{t|newgamenav-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)
-
; Inputs (noplay=true)
+
: noplay=suppress play link
-
: link=filename (optional for subtitle parameters, if 2 is incorrect)
+
: gamecat=add blank parameter to remove game category label
-
: noplay=true (for no play)
+
: gamecattype=add blank parameter to remove game category text
[[Category:QuickNav Assistance Templates|{{PAGENAME}}]]
[[Category:QuickNav Assistance Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 23:51, 1 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
Personal tools