Template:POTD/Day/sandbox
December 17
The Mauritius fody (Foudia rubra) is a rare and endangered species of bird in the weaver family, Ploceidae. It is endemic to the southern Indian Ocean island of Mauritius, where it resides in several types of forest, including degraded areas, as well as plantations. With a length of around 14 centimetres (5.5 inches), breeding males are olive brown, with a red head, breast and rump patch, and black lores. Females, non-breeding males and juveniles are olive brown with white wing bars and a brown bill. The bird feeds on insects such as grasshoppers, beetle larvae, caterpillars, and also spiders. Berries are eaten regularly by some individuals, and it feeds on nectar regularly, using its specialised brush-tipped tongue. This male Mauritius fody was photographed on the Île aux Aigrettes, an island off Mauritius's south-eastern coast. Photograph credit: Charles J. Sharp
Recently featured:
|
This is the template sandbox page for Template:POTD/Day (diff). See also the companion subpage for test cases. |
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template is used to exhibit selections for the English Wikipedia's picture of the day (POTD), predominantly in the POTD archives, but also through the notification templates {{UpcomingPOTD}} (for article talk pages) and {{NotifyPOTD}} (for user talk pages). The template draws information from the subpages for each day's POTD (e.g. Template:POTD/2024-12-17) and formats it in one of a few possible layouts, with a header and a footer that may be included or omitted as desired. Empty POTDs (i.e. dates yet to be scheduled with a selected featured picture) display {{POTDempty}}.
Parameters
[edit]{{POTD/Day | YYYY-MM-DD | layout [|excludeheader=yes] [|excludefooter=yes] [|excludesub=yes] }}
- First unnamed parameter: the date of the POTD to be displayed. Any date format is acceptable, but
YYYY-MM-DD
is conventional in POTD. If unspecified or left blank, today's date (2024-12-17
) is used by default. - Second unnamed parameter: the layout in which the POTD is to be displayed. A list of possible values for this parameter can be found at Category:POTD layout templates, in each case omitting the initial "POTD" in the name of each template (e.g.
condensed
for {{POTD condensed}}). If unspecified or left blank,archive
is used by default, which calls {{POTD archive}}. This layout adapts the arrangement used on the Main Page slightly to make it more amenable for archive display. (The Main Page itself makes use of {{POTD row}}.) Note thatdefault
({{POTD default}}) is not the default value for this parameter!- The
archive
layout also allows the additional display of subpages in the case of a multiple POTD, where the POTD consists of more than one picture and blurb. A hatnote is included immediately below the date header to indicate this. This template currently accommodates the display of up to twenty subpages (which was the case on December 30, 2013). This is mainly handled through {{POTD archive/multiple}}, which draws information from subpages titled "/1", "/2", etc. Another template, {{POTD archive/footer}}, is also used to display the "Recently featured" list and the boldfaced links as on the Main Page in this layout.
- The
|excludeheader=
: if defined withyes
, the horizontal rule and the boldfaced date (e.g. "December 17") that appear above the POTD content are omitted from display. The subpage headers in the archive layout (e.g. "Subpage 1"), if present, will also be excluded. Such headers are most useful in the archives (where they double as anchors for section linking).|excludefooter=
: if defined withyes
, the list of links below the POTD, and below each subpage if present, are omitted from display. These links easily allow users to view, discuss, edit, check the history of, or watch the template, or access the file page(s). There are also links to view, edit and check the history of the protected version, if it exists; otherwise, there is a link to create it. If the POTD has not been scheduled, there is a link to create a new template. There may very occasionally be a link to a separate animated version of the featured picture.|excludesub=
: if defined withyes
, the individual POTD subpages normally displayed in the archive layout are omitted from display; in the case of a random-selection multiple POTD, one subpage is randomly selected for display at a time, imitating the functionality used on the Main Page. This might be useful on talk pages, etc., where an abundance of transcluded POTD suggestions might overwhelm the page for users.