User:Begoon/POTD custom
POTD custom
This 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 (2026) (or at random).
- The image height is limited by a calculation based on width, to prevent excess depth in some portrait images.
Usage
| Parameter | Description | Default (parameter not supplied) | Format | Example/notes |
|---|---|---|---|---|
| whichYear | Specifies which year's POTD to use | Pseudorandom from 2008 to current year (2026) 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
{{User:Begoon/POTD custom|whichYear=2009|sTwidth=550|caption=foobar|textOpacity=0.55|textColour=grey|borderColour=#fe3|borderWidth=2}}
Notes
- 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 (2026) incl., for example:
{{User:Begoon/POTD custom|whichYear=2010}}
- If not provided, whichYear defaults to a pseudorandom year between 2008 and the current year (2026) incl.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.