Template:Film date/doc

From blackwiki
< Template:Film date
Revision as of 23:14, 30 July 2010 by imported>Bovineboy2008 (formatting)
Jump to navigation Jump to search

Template:Template doc page viewed directly

Usage

This template ({{Film date}}) returns auto formatting for use in the released parameter of {{Infobox film}}. The template automatically uses {{Upcoming film}} and removes it after its release.

Syntax

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

This template allows up to four 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|2}} returns:
  • February 1993 (1993-02)
  • {{Film date|1993|2|24}} returns:
  • February 24, 1993 (1993-02-24)
  • {{Film date|1993|2|24||2008|3}} returns:
  • February 24, 1993 (1993-02-24)
  • March 2008 (2008-03)
  • {{Film date|1993|2|24||2008|||Latvia}} returns:
  • February 24, 1993 (1993-02-24)
  • 2008 (2008) (Latvia)
  • {{Film date|1993|2|24||2008|3|23}} returns:
  • February 24, 1993 (1993-02-24)
  • March 23, 2008 (2008-03-23)

An optional parameter, format, can be set to df to display the day before the month or mf to display the month before the day. Default sets this to month first.

Examples:

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

Use in microformats

Template:UF-date-part

See the microformats project for further details.

Redirects

See also