Template:charnav-lookup
From Homestar Runner Wiki
(Difference between revisions)
(new automated nav template!) |
(trying out adding lookup by name as discussed in HRWiki:Projects#Nav_Template_Automation) |
||
Line 1: | Line 1: | ||
- | {{#switch:{{{1}}} | + | {{#if:{{{n|}}} |
+ | |{{#switch:{{{1}}}<!-- lookup characters by name --> | ||
+ | |Homsar=11 | ||
+ | |The Poopsmith=10 | ||
+ | |The King of Town=9 | ||
+ | |Bubs=8 | ||
+ | |Coach Z=7 | ||
+ | |Marzipan=6 | ||
+ | |Pom Pom=5 | ||
+ | |Strong Mad=4 | ||
+ | |The Cheat=3 | ||
+ | |Strong Bad=2 | ||
+ | |Homestar Runner=1 | ||
+ | }}<!-- end by name switch {{{1}}} --> | ||
+ | |{{#switch:{{{1}}}<!-- lookup characters by index --> | ||
|0<!-- Item zero always points to the last item. --> | |0<!-- Item zero always points to the last item. --> | ||
|11=Homsar | |11=Homsar | ||
Line 12: | Line 26: | ||
|2=Strong Bad | |2=Strong Bad | ||
|1|#default=Homestar Runner<!-- Default allows us to handle the n+1 item w/o issue --> | |1|#default=Homestar Runner<!-- Default allows us to handle the n+1 item w/o issue --> | ||
- | }}<noinclude> | + | }}<!-- end by index switch {{{1}}} --> |
+ | }}<!-- end if --><noinclude> | ||
This template associates [[Main Characters]] articles with their quick navigation index. | This template associates [[Main Characters]] articles with their quick navigation index. |
Revision as of 06:48, 26 January 2021
Homestar Runner
This template associates Main Characters articles with their quick navigation index.