Template:Home/PictureOfTheDay/card
More actions
Renders one row of the picture-of-the-day query in Template:Home/PictureOfTheDay.
Semantic MediaWiki calls it with format=template, so {{{1}}}
is the file page and the rest are the named printouts (caption,
alt, photographer, photodate,
subject, focal).
The photograph is always shown whole, centred on a mat: a second, 80px rendering of the
same file behind it (lw-potd__mat, hidden from screen readers), which the stylesheet
stretches over the frame, blurs and darkens. Nothing is cropped, so this card ignores
focal; the query still passes it, and other cards that crop a file use the
value from its FileMeta.
The photograph is asked for at 1600x1200px (at most 1600 wide and 1200 tall), not
1600px: the row is never taller than about 640px, and the server cannot scale some large
portrait originals to 1600px wide (the thumbnail fails and the card shows an error instead).
Each optional part of the credit line carries its own trailing separator, so a file
with no recorded photographer leaves no stray middot behind. The separators spell
their spaces as   because a parser function trims its
arguments, and a plain trailing space would be eaten.