POTD custom
editThis is a customised Picture of the day template, the year may be specified.
- It displays the POTD, with caption, automatically, in a box with a border.
- The picture is the POTD for today's date, the year selected between 2008 and the current year (2024) (or at random).
- The image height is limited by a calculation based on width, to prevent excess depth in some portrait images.
Usage
editParameter | Description | Default (parameter not supplied) | Format | Example/notes |
---|---|---|---|---|
whichYear | Specifies which year's POTD to use | Pseudorandom from 2008 to current year (2024) incl. | 4 digit year | 2014 |
sTwidth | Image width (pixels) | 500 | Integer | 350 |
caption | Caption for picture | Caption supplied from POTD | Wikitext | May include wikilinks |
textOpacity | Text opacity (CSS) (0.0 - 1.0) | 1.0 | Decimal | 0.75 |
textColour | Text colour (CSS) | darkSlateBlue | CSS colour descriptor | #FF0000 |
borderColour | Border colour (CSS) | silver | CSS colour descriptor | #FF0000 |
borderWidth | Border width (pixels) | 1 | Integer | 2 |
Syntax
edit{{User:Begoon/POTD custom|whichYear=2009|sTwidth=550|caption=foobar|textOpacity=0.55|textColour=grey|borderColour=#fe3|borderWidth=2}}
Notes
edit- The textOpacity, textColour, borderColour and borderWidth parameters supply CSS parameters
- The sTwidth parameter takes an integer value, corresponding to width in pixels. The default is 500.
Depth and maximum-depth are calculated automatically. Not tested in extremely small/large scenarios - use sensible values. - The whichYear parameter specifies which year's picture to display. It may be given as a 4 digit number between 2008 and the current year (2024) incl., for example:
{{User:Begoon/POTD custom|whichYear=2010}}
- If not provided, whichYear defaults to a pseudorandom year between 2008 and the current year (2024) incl.