Template:POTD/doc

From Wikipedia, the free encyclopedia

Usage[edit]

Displays the English Wikipedia's current picture of the day (POTD) in a box of no more than 600 pixels wide, without the blurb (explanatory text), for use on user pages. To always display the current day's POTD, use {{POTD}}; to permanently feature a particular day's POTD, use {{POTD|date=[date]}}, where the [date] parameter can be given in any valid format.

It is also possible to create your own custom POTD layouts, in case the already-existing versions will not look good within your user page design. Mix and match the following components to make your own. This system will only work for POTDs selected beginning January 1, 2007. Be sure to replace [date] with an appropriate date value. For a dynamically updating version, use {{#time:Y-m-d}} (example: {{POTD/{{#time:Y-m-d}}|image}}).

Template Description Renders as
{{POTD/[date]|image}} The name of the image, without the File: prefix Thure de Thulstrup - The Massacre of the Chinese at Rock Springs.jpg
{{POTD/[date]|size}} The size of the image, without the trailing px 500
{{POTD/[date]|caption}} The image caption (blurb) The Rock Springs massacre occurred in 1885 in the present-day United States city of Rock Springs, Wyoming. The riot, and resulting massacre of immigrant Chinese miners by white immigrant miners, was the result of racial prejudice toward the Chinese miners, who were perceived to be taking jobs from the white miners. The Union Pacific Coal Department found it economically beneficial to give preference in hiring to Chinese miners, who were willing to work for lower wages than their white counterparts, angering the white miners. When the rioting ended, at least 28 Chinese miners were dead and 15 were injured. Rioters burned 78 Chinese homes, resulting in approximately $150,000 in property damage (equal to $5.09 million in 2020 terms). The massacre in Rock Springs touched off a wave of anti-Chinese violence, especially in the Puget Sound area of Washington Territory.
{{POTD/[date]|title}} A link to the article the image represents Rock Springs massacre
{{POTD/[date]|texttitle}} A linkless short caption, also useful as an alt attribute Rock Springs massacre
{{POTD/[date]|credit}} The credit line of the image, including the genre (e.g. photograph, painting) Artwork credit: Thure de Thulstrup; restored by Adam Cuerden

There are two additional predefined layouts:

  • {{POTD/{{#time:Y-m-d}}|column}}: This has the image and caption above each other with no borders. Used on some of the Main Page alternatives and also suitable for user pages.
  • {{POTD/{{#time:Y-m-d}}|row}}: This has the image and caption encapsulated in (usually) a single table row. This is the version used on the current Main Page.

It is also possible to permanently feature a POTD for a selected day. Just add a specific value for the date you want. For example, today's POTD is {{POTD/2024-05-01|image}}. Likewise, you can use date parameters with the other templates as well. If you like the pre-made formats, you can use date parameters there as well, like this: {{Pic of the day|date=2024-05-01}} or {{POTD|date=2024-05-01}}. Again, this system will only work for POTDs selected beginning January 1, 2007.

Search[edit]