Template:Format featured image/doc

This template is for specifying, formatting, and controlling featured images for the Featured image template, which picks images to display on the Main Page. See the Featured image doc page for instructions on how to select images and create a featured image page for them.

Description
This template outputs a  block that has very basic style specifications and contains an image and its caption. It also has a control parameter that will determine if and when the image will be displayed as a featured image. Currently, the choices are: display all day; morning only; evening only; or don't display. More than one of these templates may appear on a page and the Featured image template will display all that meet the criteria.

Usage

 * image : Required. Use a  link to choose the image and add the width in pixels as an option. Typically 200px to 250px is appropriate for displaying on the main page without unbalancing the layout. Example:  . File names are case sensitive.
 * caption : Optional. A brief description of the image, which should include a link to the page where the subject of the image is documented, or an appropriately associated topic. This field is optional, but strongly encouraged.
 * usethis : Required. This parameter must be set to one of three possible values in order for the Featured image template to select it. Set it to all to have the image displayed for the entire time it meets the selection criteria (typically one day to one week). Set it to AM and the image will be displayed from 00:00:00 to 11:59:59 GMT on the day(s) it meets the selection criteria. Set it to PM and the image will be displayed from 12:00:00 to 23:59:59 GMT on the day(s) it is selected. Leaving this blank or setting it to any other value will prevent the image from being selected. This field is not case sensitive.

Putting two of these templates on the same page and setting one to AM and the other to PM will switch from one to the other at noon GMT.