Difference between revisions of "Template:Quick links smart lingo"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) |
Kevin Wang (talk | contribs) m |
||
Line 11: | Line 11: | ||
{{#vardefine:index|{{#expr:floor(({{#var:maxindex}}+{{#var:minindex}})/2)}}}} | {{#vardefine:index|{{#expr:floor(({{#var:maxindex}}+{{#var:minindex}})/2)}}}} | ||
}}{{#vardefine:adjusted_index|{{#expr:({{{1|1}}} mod {{#var:index}})}}}}{{#ifexpr:{{#var:adjusted_index}}=0|{{#vardefine:adjusted_index|{{#var:index}}}}}}{{Quick links lingo|{{#var:adjusted_index}}}} | }}{{#vardefine:adjusted_index|{{#expr:({{{1|1}}} mod {{#var:index}})}}}}{{#ifexpr:{{#var:adjusted_index}}=0|{{#vardefine:adjusted_index|{{#var:index}}}}}}{{Quick links lingo|{{#var:adjusted_index}}}} | ||
− | }} | + | }}<noinclude> |
− | <noinclude> | ||
Incremental improvement on [[Template:Quick links lingo]] | Incremental improvement on [[Template:Quick links lingo]] | ||
Revision as of 11:00, 7 December 2021
Wondering why people keep saying "m"? Incremental improvement on Template:Quick links lingo
When index i <= # of lingo quips, return quip straight away. If i > #, it'll wrap around (mod #).
Index | Quip |
---|---|
1 | Wondering why people keep saying "m"? Test sentence |
2 | Confused what a "vulcher" is? Test sentence |
3 | Want to find out about "superpowers"? Test sentence |