Difference between revisions of "Template:Player anecdotes"

From QBWiki
Jump to navigation Jump to search
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>==Anecdotes==
+
<includeonly>{{#vardefine:player_name|{{{1|{{FULLPAGENAME}}}}}}}==Anecdotes==
:''Full list: [[{{FULLPAGENAME}}/anecdotes|here]]''
+
:''Full list and references: [[{{#var:player_name}}/anecdotes|here]]''
{{List lookup helper|{{FULLPAGENAME}}/anecdotes}}<!--
+
{{List lookup helper|{{#var:player_name}}/anecdotes}}<!--
 
-->{{#ifexpr:{{#var:length}}=1|<nowiki/>
 
-->{{#ifexpr:{{#var:length}}=1|<nowiki/>
* {{Smart lookup|{{FULLPAGENAME}}/anecdotes|1}}}}<!--
+
* {{Smart lookup|{{#var:player_name}}/anecdotes|1}}}}<!--
 
-->{{#ifexpr:{{#var:length}}=2|<nowiki/>
 
-->{{#ifexpr:{{#var:length}}=2|<nowiki/>
* {{Smart lookup|{{FULLPAGENAME}}/anecdotes|1}}
+
* {{Smart lookup|{{#var:player_name}}/anecdotes|1}}
* {{Smart lookup|{{FULLPAGENAME}}/anecdotes|2}}}}<!--
+
* {{Smart lookup|{{#var:player_name}}/anecdotes|2}}}}<!--
 
-->{{#ifexpr:{{#var:length}}=3|<nowiki/>
 
-->{{#ifexpr:{{#var:length}}=3|<nowiki/>
* {{Smart lookup|{{FULLPAGENAME}}/anecdotes|1}}
+
* {{Smart lookup|{{#var:player_name}}/anecdotes|1}}
* {{Smart lookup|{{FULLPAGENAME}}/anecdotes|2}}
+
* {{Smart lookup|{{#var:player_name}}/anecdotes|2}}
* {{Smart lookup|{{FULLPAGENAME}}/anecdotes|3}}}}<!--
+
* {{Smart lookup|{{#var:player_name}}/anecdotes|3}}}}<!--
 
-->{{#ifexpr:{{#var:length}}>3|<nowiki/>{{Save|i|j|k}}<!--
 
-->{{#ifexpr:{{#var:length}}>3|<nowiki/>{{Save|i|j|k}}<!--
 
-->{{#vardefine:i|{{PRNG|{{#time:z}}|{{#var:length}}}}}}<!--
 
-->{{#vardefine:i|{{PRNG|{{#time:z}}|{{#var:length}}}}}}<!--
 
-->{{#vardefine:j|{{PRNG|{{#expr:{{#time:z}}+1}}|{{#var:length}}}}}}<!--
 
-->{{#vardefine:j|{{PRNG|{{#expr:{{#time:z}}+1}}|{{#var:length}}}}}}<!--
 
-->{{#vardefine:k|{{PRNG|{{#expr:{{#time:z}}+2}}|{{#var:length}}}}}}
 
-->{{#vardefine:k|{{PRNG|{{#expr:{{#time:z}}+2}}|{{#var:length}}}}}}
* {{Smart lookup|{{FULLPAGENAME}}/anecdotes|{{#var:i}}}}
+
* {{Smart lookup|{{#var:player_name}}/anecdotes|{{#var:i}}}}
* {{Smart lookup|{{FULLPAGENAME}}/anecdotes|{{#ifeq:{{#var:i}}|{{#var:j}}|{{Add|j|1}}}}{{#var:j}}}}
+
* {{Smart lookup|{{#var:player_name}}/anecdotes|{{#ifeq:{{#var:i}}|{{#var:j}}|{{Add|j|1}}}}{{#var:j}}}}
* {{Smart lookup|{{FULLPAGENAME}}/anecdotes|{{#ifeq:{{#var:i}}|{{#var:k}}|{{Add|k|1}}}}{{#ifeq:{{#var:j}}|{{#var:k}}|{{Add|k|1}}}}{{#var:k}}}}}}</includeonly><noinclude>{{Template doc|
+
* {{Smart lookup|{{#var:player_name}}/anecdotes|{{#ifeq:{{#var:i}}|{{#var:k}}|{{Add|k|1}}}}{{#ifeq:{{#var:j}}|{{#var:k}}|{{Add|k|1}}}}{{#var:k}}}}}}{{c|Players with anecdotes}}</includeonly><noinclude>{{Template doc|
 
Adds a section with consistent formatting listing 3 unique anecdotes from a list at "<nowiki>{{CURRENTPAGE}}/anecdotes</nowiki>".
 
Adds a section with consistent formatting listing 3 unique anecdotes from a list at "<nowiki>{{CURRENTPAGE}}/anecdotes</nowiki>".
 
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.
 
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.
+
'''NOTE:''' Currently refs in lists do not appear when inserted with the list lookup helper - however, it is still interesting to include them as they will be visible in the full page. It appears trailing external links are not allowed in sublists either.
  
 
<pre>
 
<pre>
{{Player anecdotes}}
+
{{Player anecdotes|Matt Bollinger}}
{{#var:length}}
+
{{#var:sublist_index}},{{#var:length}}
 
</pre>
 
</pre>
{{Player anecdotes}}
+
{{Player anecdotes|Matt Bollinger}}
{{#var:length}}
+
{{#var:sublist_index}},{{#var:length}}
 
}}</noinclude>
 
}}</noinclude>

Latest revision as of 17:34, 1 January 2026

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 in lists do not appear when inserted with the list lookup helper - however, it is still interesting to include them as they will be visible in the full page. It appears trailing external links are not allowed in sublists either.

{{Player anecdotes|Matt Bollinger}}
{{#var:sublist_index}},{{#var:length}}

Anecdotes

Full list and references: here

  • Matt's involvement in a long argument about a NASAT tossup on the United States-Canada border spawned the parodic phrase "true knowledge of the Pig War" to describe the question's failure to reward Jacob Wasserman's "real knowledge".
  • At one point Carsten Gehring and Mike Cheyne referred to the duo of Bollinger and Evan Adams as "Rizzoli and Isles" respectively in reference to the unpopular TNT program - an attempt to find other quizbowlers to fit the similarly-titled TNT show Franklin & Bash was inconclusive.
  • The answerline of "zeppelins" was briefly a facetious benchmark of absurd difficulty after Matt insisted that a NASAT tossup on zeppelins written by Mike Cheyne was extremely difficult to answer.

2,5