Difference between revisions of "Template:Film date/doc"
Jump to navigation
Jump to search
imported>Bovineboy2008 (update documentation) |
imported>Bovineboy2008 m (temporary to reset links) |
||
| Line 6: | Line 6: | ||
==Syntax== | ==Syntax== | ||
| − | *<nowiki>{{ | + | *<nowiki>{{Start date|year|month|day|location}}</nowiki> |
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. | 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: | Examples: | ||
| − | *<nowiki>{{ | + | *<nowiki>{{Start date|1993}}</nowiki> returns:<br />{{Start date|1993}} |
| − | *<nowiki>{{ | + | *<nowiki>{{Start date|1993|2}}</nowiki> returns:<br />{{Start date|1993|2}} |
| − | *<nowiki>{{ | + | *<nowiki>{{Start date|1993|2|24}}</nowiki> returns:<br />{{Start date|1993|2|24}} |
| − | *<nowiki>{{ | + | *<nowiki>{{Start date|1993|2|24||2008|3}}</nowiki> returns:<br />{{Start date|1993|2|24||2008|3}} |
| − | *<nowiki>{{ | + | *<nowiki>{{Start date|1993|2|24||2008|||Latvia}}</nowiki> returns:<br />{{Start date|1993|2|24||2008|||Latvia}} |
| − | *<nowiki>{{ | + | *<nowiki>{{Start date|1993|2|24||2008|3|23}}</nowiki> returns:<br />{{Start date|1993|2|24||2008|3|23}} |
An optional parameter, "'''df'''", can be set to "y" or "yes" to display the day before the month. Default is month before day. | An optional parameter, "'''df'''", can be set to "y" or "yes" to display the day before the month. Default is month before day. | ||
| Line 22: | Line 22: | ||
Examples: | Examples: | ||
| − | *<nowiki>{{ | + | *<nowiki>{{Start date|1993|2|24|df=y}}</nowiki> returns:<br />{{Start date|1993|2|24|df=y}} |
| − | *<nowiki>{{ | + | *<nowiki>{{Start date|1993|2|24||2008|||Latvia|df=y}}</nowiki> returns:<br />{{Start date|1993|2|24||2008|||Latvia|df=y}} |
An optional parameter, "'''fy'''", can be set to override the automatic category. For example: | An optional parameter, "'''fy'''", can be set to override the automatic category. For example: | ||
| − | *<nowiki>{{ | + | *<nowiki>{{Start date|1993|2|24||2008|3|23}}</nowiki> uses the category {{cl|1993 films}} |
| − | *<nowiki>{{ | + | *<nowiki>{{Start date|1993|2|24||2008|3|23|fy=2008}}</nowiki> uses the category {{cl|2008 films}}. |
==Redirects== | ==Redirects== | ||
Revision as of 17:22, 23 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}}.
Syntax
- {{Start 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:
- {{Start date|1993}} returns:
1993 - {{Start date|1993|2}} returns:
February 1993 - {{Start date|1993|2|24}} returns:
February 24, 1993 - {{Start date|1993|2|24||2008|3}} returns:
February 24, 1993 - {{Start date|1993|2|24||2008|||Latvia}} returns:
February 24, 1993 - {{Start date|1993|2|24||2008|3|23}} returns:
February 24, 1993 (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:
- {{Start date|1993|2|24|df=y}} returns:
24 February 1993 - {{Start date|1993|2|24||2008|||Latvia|df=y}} returns:
24 February 1993
An optional parameter, "fy", can be set to override the automatic category. For example:
- {{Start date|1993|2|24||2008|3|23}} uses the category Category:1993 films
- {{Start date|1993|2|24||2008|3|23|fy=2008}} uses the category Category:2008 films.
Redirects
See also
- {{Start date}}
- {{Nowrap}}
- {{Small}}