Permanently protected template

Template:POTD

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Usage

Displays the current Picture of the day in a box of no more than 600 pixels wide, without the explanatory text.

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 Pictures of the day 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 Image: prefix. Denver Colorado 1898 - LOC - restoration1.jpg
{{POTD/[date]|size}} The size of the image, without the trailing px. 800
{{POTD/[date]|caption}} The image caption. Denver is the capital and most populous municipality of the U.S. state of Colorado. It is located in the South Platte River Valley on the western edge of the High Plains, just east of the Front Range of the Rocky Mountains. Founded in 1858, the city is named after James W. Denver, a governor of the Kansas Territory, and it is nicknamed the Mile High City because its official elevation is exactly one mile (5280 feet or 1609.3 meters) above sea level. Formerly part of Arapahoe County, Denver became a consolidated city-county in 1902.

This picture shows a panorama of Denver in around 1898, viewed from the top of the Colorado State Capitol, facing northwest and looking down 16th St. The domed building on the left is the former Arapahoe County Courthouse, demolished in 1933, and the Brown Palace Hotel is visible on the righthand side.

{{POTD/[date]|title}} A link to the article the image represents. Denver
{{POTD/[date]|texttitle}} A linkless short caption, also useful as an alt attribute. Denver

There are two additional pre-defined 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 suitable for user pages as well.
  • {{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 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/2019-03-23|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=2019-03-23}} or {{POTD|date=2019-03-23}}. Again, this system will only work for Pictures of the day selected beginning January 1, 2007.