Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Purpose  





2 Usage  





3 Syntax  



3.1  One release date only  





3.2  More than one release date  





3.3  Examples  





3.4  Optional parameters  







4 Technical notes  



4.1  TemplateData  







5 Tracking categories  





6 See also  














Template:Film date/doc







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Template:Film date

Purpose[edit]

This template has two functions:

  1. To provide correct formatting of film release dates and their locations within {{Infobox film}}. A citation for each date/location may also be supplied.
  2. To automatically categorize films according to their first release date.

Usage[edit]

This template is intended to supply a result to the |released= parameter of {{Infobox film}}.

The template adds Category:YYYY films where YYYY is the year of first release, as well as Category:Upcoming films for films that have not reached their first release yet. Please note that Category:YYYY films will only be added if the category exists, and that if only the year is included as the release date, the film is considered to be "upcoming" during that entire year.

The television equivalents of these categories (Category:YYYY television films and Category:Upcoming television films) are used when the |TV= parameter is set for use on television film articles.

Syntax[edit]

This template allows up to five release dates/locations, but normally no more than two are needed. Please see WP:FILMRELEASE for a full explanation.

One release date only[edit]

If no location is specified, month and day may be omitted. If location is specified, then month and day must be supplied, though they may be left blank or empty if not known; |ref1= is an optional parameter allowing a named reference ("xxxxx") to be used to verify the date/location of the release.

More than one release date[edit]

In this case, all the year, month, day and location parameters, except the last, must be supplied, but as before, month and day may be left empty or blank if not known. Note that |ref1=, |ref2=, etc. are optional named parameters, and either may be omitted without affecting the other parameters.

Examples[edit]

{{Film date|1993}} returns:

  • 1993 (1993)

{{Film date|1993|02}} returns:

  • February 1993 (1993-02)

{{Film date|1993|02|24}} returns:

  • February 24, 1993 (1993-02-24)

{{Film date|1993|February|24}} returns:

  • February 24, 1993 (1993-February-24)

{{Film date|1993|02|24|2008|03}} returns:

  • February 24, 1993 (1993-02-24)
  • March 2008 (2008-03)
  • {{Film date|1993|02|24|Latvia}} returns:

    • February 24, 1993 (1993-02-24) (Latvia)

    {{Film date|1993|02|24|2008|03|23}} returns:

    • February 24, 1993 (1993-02-24)
  • March 23, 2008 (2008-03-23)
  • Optional parameters[edit]

    {{Film date|1993|02|24|df=y}} returns:

    • 24 February 1993 (1993-02-24)

    {{Film date|1993|02|24|Latvia|df=y}} returns:

    • 24 February 1993 (1993-02-24) (Latvia)

    {{Film date|1993|02|24|2008|03|23}} uses the category ‹The template Category link is being considered for merging.› Category:1993 films

    {{Film date|1993|02|24|2008|03|23|fy=2008}} uses the category ‹The template Category link is being considered for merging.› Category:2008 films.

    Technical notes[edit]

    Do not use any of the following markup in front of this template: : * #. Doing so will cause HTML errors. See MOS:INDENT for more guidance.

    This template uses {{Start date}} to handle the hard work of date formatting, and {{Plainlist}} to format list items as recommended for use within infoboxes.

    {{Film date|2001|1|28|location1|2002|2|28|location2}}

    • January 28, 2001 (2001-01-28) (location1)
  • February 28, 2002 (2002-02-28) (location2)
  • '"`UNIQ--templatestyles-00000014-QINU`"'<div class="plainlist film-date" >
    * January&nbsp;28,&nbsp;2001<span style="display:none">&#160;(<span class="bday dtstart published updated itvstart">2001-01-28</span>)</span>&#32;(location1)
    * February&nbsp;28,&nbsp;2002<span style="display:none">&#160;(<span class="bday dtstart published updated itvstart">2002-02-28</span>)</span>&#32;(location2)
    </div>

    TemplateData[edit]

    Displays information about a film's release date

    Template parameters

    This template prefers inline formatting of parameters.

    ParameterDescriptionTypeStatus
    Release year 11

    no description

    Numberrequired
    Release month 12

    no description

    Unknownsuggested
    Release day 13

    no description

    Numbersuggested
    Release location 14

    First location where the film was released

    Contentsuggested
    Release year 25

    no description

    Unknownoptional
    Release month 26

    no description

    Unknownoptional
    Release day 27

    no description

    Unknownoptional
    Release location 28

    no description

    Unknownoptional
    99

    no description

    Unknownoptional
    1010

    no description

    Unknownoptional
    1111

    no description

    Unknownoptional
    1212

    no description

    Unknownoptional
    1313

    no description

    Unknownoptional
    1414

    no description

    Unknownoptional
    1515

    no description

    Unknownoptional
    1616

    no description

    Unknownoptional
    1717

    no description

    Unknownoptional
    1818

    no description

    Unknownoptional
    1919

    no description

    Unknownoptional
    2020

    no description

    Unknownoptional
    demospacedemospace

    no description

    Unknownoptional
    TVTV

    Set to yes to apply TV categories

    Booleanoptional
    Category film yearfy

    Sets the film year to be used in categorization

    Numberoptional
    Day first?df

    Set to yes to display the day before the month

    Booleanoptional
    Reference 1ref1

    Reference for the film's first release date

    Contentoptional
    Reference 2ref2

    Reference for the film's second release date

    Contentoptional
    ref3ref3

    no description

    Unknownoptional
    ref4ref4

    no description

    Unknownoptional
    ref5ref5

    no description

    Unknownoptional

    Tracking categories[edit]

    Tracking use of the |fy= parameter, which overrides the automatic categorisation by year:

    Tracking by number of release dates:

    Total by-release-date: 152,509 Purge page to update totals

    See also[edit]



    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Film_date/doc&oldid=1221153889"

    Hidden categories: 
    Template documentation pages
    Test cases using output parameter
     



    This page was last edited on 28 April 2024, at 06:05 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki