Template:POTD/sandbox
This is the . |
Usage
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 |
Picea omorika young female cone - Keila.jpg |
{{POTD/[date]|size}} |
The size of the image, without the trailing px |
300 |
{{POTD/[date]|caption}} |
The image caption (blurb) | Picea omorika, commonly known as the Pančić spruce or the Serbian spruce, is a species of coniferous tree endemic to the valley of the Drina in western Serbia, and eastern Bosnia and Herzegovina, with a total range of only about 60 hectares (150 acres) at altitudes of 800 to 1,600 metres (2,625 to 5,249 ft). The species was originally discovered near the Serbian village of Zaovine on Mount Tara in 1875, and named by the Serbian botanist Josif Pančić. It is a medium-sized evergreen tree that generally grows to a height of around 20 metres (66 ft), with a trunk diameter of up to 1 metre (3 ft). It has buff-brown shoots with dense hair coverage and needle-like leaves. Its cones are fusiform in shape and grow to a length of 4 to 7 centimetres (2 to 3 in). They are dark purple when young, maturing to dark brown, and have stiff scales. This young female P. omorika cone, with a length of 22 millimetres (0.87 in), was photographed near Keila, Estonia. |
{{POTD/[date]|title}} |
A link to the article the image represents | Picea omorika |
{{POTD/[date]|texttitle}} |
A linkless short caption, also useful as an alt attribute | Picea omorika |
{{POTD/[date]|credit}} |
The credit line of the image, including the genre (e.g. photograph, painting) | Photograph credit: Ivar Leidus |
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-04-19|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-04-19}}
or {{POTD|date=2024-04-19}}
. Again, this system will only work for POTDs selected beginning January 1, 2007.