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

From blackwiki
Jump to navigation Jump to search
imported>Bovineboy2008
(+)
imported>Bovineboy2008
m (fix)
Line 23: Line 23:
  
 
*<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|3|format=df}}</nowiki> returns<br />"{{Film date|1993|2|24|2008|3|format=df}}"
+
*<nowiki>{{Film date|1993|2|24||2008|3|format=df}}</nowiki> returns<br />"{{Film date|1993|2|24|2008|3|format=df}}"
  
 
==Use in microformats==
 
==Use in microformats==

Revision as of 22:16, 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|3|format=df}} returns
    "
  • February 24, 1993 (1993-02-24) (2008)
  • 3 (3)

"

Use in microformats

Template:UF-date-part

See the microformats project for further details.

Redirects

See also