Template:Fd/doc

Purpose
This template has two functions:
 * 1) To provide correct formatting of film release dates and their locations within Infobox film. A citation for each date/location may also be supplied.
 * 2) To automatically categorize films according to their first release date.

Usage
This template is intended to supply a result to the  parameter of Infobox film.

The template adds either   for films before their first release or   after their first release date, where YYYY is the year of first release.

Syntax
This template allows up to five release dates/locations, but normally no more than two are needed. Please see WP:FILMRELEASE for a full explanation.

One release date only


If no  is specified,   and   may be omitted. If  is specified, then   and   must be supplied, though they may be left blank or empty if not known;   is an optional parameter allowing a named reference ("xxxxx") to be used to verify the date/location of the release.

More than one release date

 * and similarly for up to five dates/locations.

In this case, all the,  ,   and   parameters, except the last, must be supplied, but as before,   and   may be left empty or blank if not known. Note that  ,  , etc. are optional named parameters, and may be omitted without affecting the other parameters.

Examples
returns:

returns:

returns:

returns:

returns:

returns:

returns:

Optional parameters

 * df can be set to "y" or "yes" to display the day before the month. Default is month before day.

returns:

returns:


 * fy can be set to override the automatic category. For example:

uses the category

uses the category.


 * TV is to be used for television films. It sorts films into  in place of  . Set   or   to do this.


 * ref1, ref2, ref3, ref4, ref5 are used to supply named references. See above for detail.

Technical note
This template uses Start date to handle the hard work of date formatting, and Plainlist to format list items as recommended for use within infoboxes.