Difference between revisions of "QBWiki:Featured picture"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) |
Kevin Wang (talk | contribs) m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This page serves to organize '''featured pictures''' which appear in the "Featured Picture" section of the Main Page. | This page serves to organize '''featured pictures''' which appear in the "Featured Picture" section of the Main Page. | ||
+ | |||
+ | "Today's featured picture" is selected through simple modular arithmetic, where the index of the image is the day of the year mod the number of pictures in the set of "Featured pictures". | ||
+ | |||
+ | Known issues: | ||
+ | *If there are ''n'' pictures, then after the ''n''-th day of the year adding any additional pictures will potentially cause the featured picture to shift. This is likely something that is not ever worth fixing. | ||
+ | *As currently implemented, the maximum value the index can take is the minimum of {the number of days in a year, the number of images}. Once there are more than 366 images, then some will never be seen - this should be straightforward to solve and can be simply dealt with when this actually approaches being an issue. | ||
{{Main page box|style=margin: 4px 0 0 0|background=#FFFAF0|content= | {{Main page box|style=margin: 4px 0 0 0|background=#FFFAF0|content= | ||
Line 9: | Line 15: | ||
{{Featured picture index|{{#time:z}}}} | {{Featured picture index|{{#time:z}}}} | ||
</onlyinclude> | </onlyinclude> | ||
+ | [[QBWiki:Featured picture/{{Featured picture index|{{#time:z}}|indexonly=true}}|view]]{{dot}}[[QBWiki talk:Featured picture/{{Featured picture index|{{#time:z}}|indexonly=true}}|talk]] | ||
}} | }} | ||
Line 14: | Line 21: | ||
{{Main page header|bordercolor=#afa3bf|background=#ddcef2|Tomorrow's featured picture}} | {{Main page header|bordercolor=#afa3bf|background=#ddcef2|Tomorrow's featured picture}} | ||
{{Featured picture index|{{#expr:{{#time:z}}+1}}}} | {{Featured picture index|{{#expr:{{#time:z}}+1}}}} | ||
+ | [[QBWiki:Featured picture/{{Featured picture index|{{#expr:{{#time:z}}+1}}|indexonly=true}}|view]]{{dot}}[[QBWiki talk:Featured picture/{{Featured picture index|{{#expr:{{#time:z}}+1}}|indexonly=true}}|talk]] | ||
}} | }} |
Latest revision as of 08:55, 21 July 2022
This page serves to organize featured pictures which appear in the "Featured Picture" section of the Main Page.
"Today's featured picture" is selected through simple modular arithmetic, where the index of the image is the day of the year mod the number of pictures in the set of "Featured pictures".
Known issues:
- If there are n pictures, then after the n-th day of the year adding any additional pictures will potentially cause the featured picture to shift. This is likely something that is not ever worth fixing.
- As currently implemented, the maximum value the index can take is the minimum of {the number of days in a year, the number of images}. Once there are more than 366 images, then some will never be seen - this should be straightforward to solve and can be simply dealt with when this actually approaches being an issue.
Featured picture list
Today's featured picture
The Solon High School quizbowl team competes at the 2018 PACE National Scholastic Championship.
Photo credit: David Reinstein
Tomorrow's featured picture
The UCF team poses for a selfie at the 2015 NAQT Intercollegiate Championship Tournament.
Front: Ian Braun
Back: Casey Bindas, Michael Tichy, Mickey Sizemore, Bradley Kirksey, Cody Johansen
Photo credit: Ian Braun