Template:othermainnav-lookup

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(new automated nav template!)
(switch to navlist format)
Line 1: Line 1:
-
{{#if:{{{n|}}}
+
* Homsar
-
|{{#switch:{{{1}}}<!-- lookup characters by name -->
+
* Luau
-
|Homsar=1
+
* King of Town
-
|Luau=2
+
* Strong Bad
-
|King of Town=3
+
<noinclude>
-
|Strong Bad=4
+
-
}}<!-- end by name switch {{{1}}} -->
+
-
|{{#switch:{{{1}}}<!-- lookup characters by index -->
+
-
|0<!-- Item zero always points to the last item. -->
+
-
|4=Strong Bad
+
-
|3=King of Town
+
-
|2=Luau
+
-
|1|#default=Homsar<!-- Default allows us to handle the n+1 item w/o issue -->
+
-
}}<!-- end by index switch {{{1}}} -->
+
-
}}<!-- end if --><noinclude>
+
-
This template associates other [[Main Pages]] articles with their quick navigation index.
+
This template is used by the <code><nowiki>{{#navlist:}}</nowiki></code> [[Help:ParserFunctions##navlist:|parser function]] on the {{t|aothermainnav}} template to navigate through the [[Main Pages]].
[[Category:QuickNav Assistance Templates|{{PAGENAME}}]]
[[Category:QuickNav Assistance Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 07:44, 29 January 2021

  • Homsar
  • Luau
  • King of Town
  • Strong Bad


This template is used by the {{#navlist:}} parser function on the {{aothermainnav}} template to navigate through the Main Pages.

Personal tools