Template:Film date/doc

From blackwiki
< Template:Film date
Revision as of 06:30, 24 March 2012 by 71.197.244.119 (talk) (make examples consistent with parent template, tidy)
Jump to navigation Jump to search

Usage

This template ({{Film date}}) returns auto formatting for use in the "released" parameter of {{Infobox film}}. The template applies Category:Upcoming films to films unreleased and replaces it with [[Category:YYYY films]], where YYYY is the year of first release, on the day of release. It also calls {{Start date}} for the first release date.

Syntax

  • {{Film date|year|month|day|location}}

This template allows up to five dates. No parameters are required. Please, however, indicate the year of release. Please see WP:FILMRELEASE for use of locations. Examples:

  • {{Film date|1993}} returns:
  • 1993 (1993)
  • {{Film date|1993|02}} returns:
  • February 1993 (1993-02)
  • {{Film date|1993|02|24}} returns:
  • February 24, 1993 (1993-02-24)
  • {{Film date|1993|February|24}} returns:
  • February 24, 1993 (1993-February-24)
  • {{Film date|1993|02|24||2008|03}} returns:
  • February 24, 1993 (1993-02-24)
  • March 2008 (2008-03)
  • {{Film date|1993|02|24||2008|||Latvia}} returns:
  • February 24, 1993 (1993-02-24)
  • 2008 (2008) (Latvia)
  • {{Film date|1993|02|24||2008|03|23}} returns:
  • February 24, 1993 (1993-02-24)
  • March 23, 2008 (2008-03-23)

An optional parameter, "df", can be set to "y" or "yes" to display the day before the month. Default is month before day.

Examples:

  • {{Film date|1993|02|24|df=y}} returns:
  • 24 February 1993 (1993-02-24)
  • {{Film date|1993|02|24||2008|||Latvia|df=y}} returns:
  • 24 February 1993 (1993-02-24)
  • 2008 (2008) (Latvia)

An optional parameter, "fy", can be set to override the automatic category. For example:

An optional parameter, "TV", is to be used for television films. It sorts films into [[Category:YYYY television films]] in place of [[Category:YYYY films]].

Redirects

See also

ar:قالب:تاريخ فيلم zh:Template:Film date ja:Template:Film date hy:Կաղապար:Film date ta:வார்ப்புரு:Film date tr:Şablon:Film tarihi