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

From blackwiki
Jump to navigation Jump to search
imported>Bovineboy2008
m (fix)
imported>Bovineboy2008
(add to documentation)
Line 3: Line 3:
  
 
==Usage==
 
==Usage==
This template ('''{{tl|Film date}}''') returns auto formatting for use in the released parameter of {{tl|Infobox film}}. The template automatically uses {{tl|Upcoming film}} and removes it after its release.
+
This template ('''{{tl|Film date}}''') returns auto formatting for use in the released parameter of {{tl|Infobox film}}. The template automatically uses {{tl|Upcoming film}} and replaces it with <code><nowiki>[[Category:Year in film]]</nowiki></code>.
  
 
==Syntax==
 
==Syntax==
Line 24: Line 24:
 
*<nowiki>{{Film date|1993|2|24|df=y}}</nowiki> returns:<br />{{Film date|1993|2|24|df=y}}
 
*<nowiki>{{Film date|1993|2|24|df=y}}</nowiki> returns:<br />{{Film date|1993|2|24|df=y}}
 
*<nowiki>{{Film date|1993|2|24||2008|||Latvia|df=y}}</nowiki> returns:<br />{{Film date|1993|2|24||2008|||Latvia|df=y}}
 
*<nowiki>{{Film date|1993|2|24||2008|||Latvia|df=y}}</nowiki> returns:<br />{{Film date|1993|2|24||2008|||Latvia|df=y}}
 +
 +
An optional parameter, "'''fy'''", can be set to override the automatic category. For example:
 +
*<nowiki>{{Film date|1993|2|24||2008|3|23}}</nowiki> uses the category {{cl|1993 films}}
 +
*<nowiki>{{Film date|1993|2|24||2008|3|23|fy=2008}}</nowiki> uses the category {{cl|2008 films}}.
  
 
==Redirects==
 
==Redirects==
 
*{{tl|Fd}}
 
*{{tl|Fd}}
 +
*{{tl|Filmdate}}
  
 
==See also==
 
==See also==

Revision as of 16:33, 8 August 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 replaces it with [[Category:Year in film]].

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, "df", can be set to "y" or "yes" to display the day before the month. Default is month before day.

Examples:

  • {{Film date|1993|2|24|df=y}} returns:
  • 24 February 1993 (1993-02-24)
  • {{Film date|1993|2|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:

Redirects

See also