Difference between revisions of "Template:Quick links smart in-jokes"

From QBWiki
Jump to navigation Jump to search
m
Line 12: Line 12:
 
}}{{#vardefine:adjusted_index|{{#expr:({{{1|1}}} mod {{#var:index}})}}}}{{#ifexpr:{{#var:adjusted_index}}=0|{{#vardefine:adjusted_index|{{#var:index}}}}}}{{Quick links in-jokes|{{#var:adjusted_index}}}}
 
}}{{#vardefine:adjusted_index|{{#expr:({{{1|1}}} mod {{#var:index}})}}}}{{#ifexpr:{{#var:adjusted_index}}=0|{{#vardefine:adjusted_index|{{#var:index}}}}}}{{Quick links in-jokes|{{#var:adjusted_index}}}}
 
}}<noinclude>
 
}}<noinclude>
 +
 
Incremental improvement on [[Template:Quick links in-jokes]]
 
Incremental improvement on [[Template:Quick links in-jokes]]
  

Revision as of 12:42, 7 December 2021

Wondering about quizbowl's fascination with Dog with a Blog?

Incremental improvement on Template:Quick links in-jokes

When index i <= # of in-jokes quips, return quip straight away. If i > #, it'll wrap around (mod #).

Index Quip
1 Wondering about quizbowl's fascination with Dog with a Blog? Test sentence
2 Interested in the significance of capybaras? Test sentence
3 Ever notice how frequently quizbowlers use the verb "barge"? Test sentence