• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

User:Begoon/POTD custom

  • User page
  • Talk
  • Language
  • Watch
  • Edit
< User:Begoon
Picture of the day  (from 2022)
Basilica and Convent of San Francisco, Quito
Documentation[view] [edit] [history] [purge]

POTD custom

edit

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 (2025) (or at random).
  • The image height is limited by a calculation based on width, to prevent excess depth in some portrait images.

Usage

edit
Parameter Description Default (parameter not supplied) Format Example/notes
whichYear Specifies which year's POTD to use Pseudorandom from 2008 to current year (2025) 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 (2025) incl., for example:
{{User:Begoon/POTD custom|whichYear=2010}}
  • If not provided, whichYear defaults to a pseudorandom year between 2008 and the current year (2025) incl.
The above documentation is transcluded from User:Begoon/POTD custom/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this page.
Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Begoon/POTD_custom&oldid=1158397592"
Last edited on 3 June 2023, at 20:48

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 3 June 2023, at 20:48 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop