Template:Home/PictureOfTheDay
More actions
The picture-of-the-day card on the Main Page, after the Places band and beside the Encyclopedia card (on a narrow screen, above it). The photograph is shown whole on a blurred copy of itself, its caption over the foot of the frame.
The pool is every file carrying featured=yes in its
FileMeta block, and the card shows one of them, chosen by the
day of the year through Template:Home/DailyOffset, so the picture changes daily without anyone editing the Main Page.
Caption, alt text, credit and subject link all come from that file's own FileMeta —
to feature a photograph, tag the file, not this template. One of them can also be chosen for a given
day in Template:Home/DailyPicks.
The query asks for the property's presence rather than the value true,
because FileMeta only sets it for an affirmative featured. That reads the
same whether Property:Has featured photo is registered as Boolean or is still
page-typed, so the card does not depend on when SMW's change-propagation queue runs.
Rendering lives in Template:Home/PictureOfTheDay/card; styling in Template:Main Page - styles/styles.css.