Difference between revisions of "Template:Film date/doc"
Jump to navigation
Jump to search
imported>Bovineboy2008 m (restore template) |
imported>Bovineboy2008 (+full name month) |
||
| 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 applies {{cl|Upcoming films}} to films unreleased and replaces it with <code><nowiki>[[Category:YYYY films]]</nowiki></code>, where YYYY is the year of first release, on the day of release. It also calls {{Tl|Start date}}. | + | This template ({{tl|Film date}}) returns auto formatting for use in the "released" parameter of {{tl|Infobox film}}. The template applies {{cl|Upcoming films}} to films unreleased and replaces it with <code><nowiki>[[Category:YYYY films]]</nowiki></code>, where YYYY is the year of first release, on the day of release. It also calls {{Tl|Start date}} for the first release date. |
==Syntax== | ==Syntax== | ||
| Line 14: | Line 14: | ||
*<nowiki>{{Film date|1993|2}}</nowiki> returns:<br />{{Film date|1993|2}} | *<nowiki>{{Film date|1993|2}}</nowiki> returns:<br />{{Film date|1993|2}} | ||
*<nowiki>{{Film date|1993|2|24}}</nowiki> returns:<br />{{Film date|1993|2|24}} | *<nowiki>{{Film date|1993|2|24}}</nowiki> returns:<br />{{Film date|1993|2|24}} | ||
| + | *<nowiki>{{Film date|1993|February|24}}</nowiki> returns:<br />{{Film date|1993|February|24}} | ||
*<nowiki>{{Film date|1993|2|24||2008|3}}</nowiki> returns:<br />{{Film date|1993|2|24||2008|3}} | *<nowiki>{{Film date|1993|2|24||2008|3}}</nowiki> returns:<br />{{Film date|1993|2|24||2008|3}} | ||
*<nowiki>{{Film date|1993|2|24||2008|||Latvia}}</nowiki> returns:<br />{{Film date|1993|2|24||2008|||Latvia}} | *<nowiki>{{Film date|1993|2|24||2008|||Latvia}}</nowiki> returns:<br />{{Film date|1993|2|24||2008|||Latvia}} | ||
Revision as of 15:54, 25 August 2010
| This is a documentation subpage for Template:Film date. It contains usage information, categories and other content that is not part of the original template page. |
Contents
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
- {{Film date|1993|2}} returns:
- February 1993
- {{Film date|1993|2|24}} returns:
- February 24, 1993
- {{Film date|1993|February|24}} returns:
- February 24, 1993
- {{Film date|1993|2|24||2008|3}} returns:
- February 24, 1993
- March 2008
- {{Film date|1993|2|24||2008|||Latvia}} returns:
- February 24, 1993
- 2008 (Latvia)
- {{Film date|1993|2|24||2008|3|23}} returns:
- February 24, 1993
- March 23, 2008
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
- {{Film date|1993|2|24||2008|||Latvia|df=y}} returns:
- 24 February 1993
- 2008 (Latvia)
An optional parameter, "fy", can be set to override the automatic category. For example:
- {{Film date|1993|2|24||2008|3|23}} uses the category Category:1993 films
- {{Film date|1993|2|24||2008|3|23|fy=2008}} uses the category Category:2008 films.
Redirects
See also
- {{Start date}}
- {{Nowrap}}
- {{Small}}