Difference between revisions of "Template:Film date/doc"

From blackwiki
Jump to navigation Jump to search
imported>Bovineboy2008
m (formatting)
imported>Bovineboy2008
(→‎Use in microformats: remove section)
Line 24: Line 24:
 
*<nowiki>{{Film date|1993|2|24|format=df}}</nowiki> returns:<br />{{Film date|1993|2|24|format=df}}
 
*<nowiki>{{Film date|1993|2|24|format=df}}</nowiki> returns:<br />{{Film date|1993|2|24|format=df}}
 
*<nowiki>{{Film date|1993|2|24||2008|||Latvia|format=df}}</nowiki> returns:<br />{{Film date|1993|2|24||2008|||Latvia|format=df}}
 
*<nowiki>{{Film date|1993|2|24||2008|||Latvia|format=df}}</nowiki> returns:<br />{{Film date|1993|2|24||2008|||Latvia|format=df}}
 
==Use in microformats==
 
{{UF-date-part}}
 
 
See [[WP:UF|the microformats project]] for further details.
 
  
 
==Redirects==
 
==Redirects==

Revision as of 23:14, 30 July 2010

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)

Redirects

See also