Difference between revisions of "Template:Player anecdotes"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) m |
Kevin Wang (talk | contribs) |
||
| Line 8: | Line 8: | ||
* {{Smart lookup|{{FULLPAGENAME}}/anecdotes|2}}}}<!-- | * {{Smart lookup|{{FULLPAGENAME}}/anecdotes|2}}}}<!-- | ||
-->{{#ifexpr:{{#var:length}}>2|<nowiki/>{{Save|i|j|k}}<!-- | -->{{#ifexpr:{{#var:length}}>2|<nowiki/>{{Save|i|j|k}}<!-- | ||
| − | -->{{#vardefine:i|{{PRNG|{{#time:z}}}}}}<!-- | + | -->{{#vardefine:i|{{PRNG|{{#time:z}}}}|{{#var:length}}}}<!-- |
| − | -->{{#vardefine:j|{{PRNG|{{#expr:{{#time:z}}+1}}}}}}<!-- | + | -->{{#vardefine:j|{{PRNG|{{#expr:{{#time:z}}+1}}}}|{{#var:length}}}}<!-- |
| − | -->{{#vardefine:k|{{PRNG|{{#expr:{{#time:z}}+2}}}}}} | + | -->{{#vardefine:k|{{PRNG|{{#expr:{{#time:z}}+2}}}}|{{#var:length}}}} |
* {{Smart lookup|{{FULLPAGENAME}}/anecdotes|{{#var:i}}}} | * {{Smart lookup|{{FULLPAGENAME}}/anecdotes|{{#var:i}}}} | ||
* {{Smart lookup|{{FULLPAGENAME}}/anecdotes|{{#ifeq:{{#var:i}}|{{#var:j}}|{{Add|j|1}}}}{{#var:j}}}} | * {{Smart lookup|{{FULLPAGENAME}}/anecdotes|{{#ifeq:{{#var:i}}|{{#var:j}}|{{Add|j|1}}}}{{#var:j}}}} | ||
Revision as of 21:55, 14 December 2025
Template documentation
Adds a section with consistent formatting listing 3 unique anecdotes from a list at "{{CURRENTPAGE}}/anecdotes". Current behavior is to fetch the list using and then pick the n, 2n, and 3n-th entries, where n is the current day index. If there are fewer than three, it will omit those bullet points.
NOTE: Currently refs are not supported in lists, including anecdote pages.
{{Player anecdotes}}
Anecdotes
- Full list: here
- test16
- test19
- test22