Difference between revisions of "Template:Featured picture index"

From QBWiki
Jump to navigation Jump to search
m
Line 1: Line 1:
<includeonly>{{#vardefine:index|{{{1|1}}}}}{{#ifexist:QBWiki:Featured picture/{{#var:index}}
+
<includeonly>{{#vardefine:index|{{#ifexpr:{{{1|1}}}=0|1|{{{1|1}}}}}}}{{#ifexist:QBWiki:Featured picture/{{#var:index}}
 
|{{#if:{{{indexonly|}}}|{{#var:index}}|{{QBWiki:Featured picture/{{#var:index}}}}}}
 
|{{#if:{{{indexonly|}}}|{{#var:index}}|{{QBWiki:Featured picture/{{#var:index}}}}}}
 
|{{#vardefine:minindex|{{#var:index}}}}{{#vardefine:maxindex|1}}<!--
 
|{{#vardefine:minindex|{{#var:index}}}}{{#vardefine:maxindex|1}}<!--

Revision as of 16:57, 1 January 2023

Retrieve specific featured pictures from the list of featured pictures to be used in QBWiki:Featured picture.

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

Providing a value for the optional parameter "indexonly" specifies that, rather than transcluding the page, the index is provided instead. This is intended to be used to construct links.

Index Featured picture "indexonly"
1

Solon.jpg

The Solon High School quizbowl team competes at the 2018 PACE National Scholastic Championship.

Photo credit: David Reinstein

1
2

Brown A.jpeg

The Brown A quizbowl team in front of the John Carter Brown Library at Brown shortly after participating in the 2021 NAQT Intercollegiate Championship Tournament, which was held entirely online via Zoom.

Photo credit: unknown passerby

2
3

UCF ACF Fall 2014.jpeg

The University of Central Florida team after winning the 2014 ACF Fall, hosted at the University of Florida.

Pictured from left to right: Sean Chagani, Michael Tichy, Zach Foster, Mickey Sizemore. Person entering from left is unidentified.

Photo credit: Cody Johansen

3

etc.