แม่แบบ:Film date
![]() | มีการใช้แม่แบบนี้ใน การแก้ไขอาจทำให้เกิดผลกระทบหรือสังเกตเห็นได้ ดังนั้นก่อนแก้ไขแม่แบบนี้จึงควรทดลองที่กระบะทราย หรือหน้าทดสอบ หรือพื้นที่ส่วนตัวของคุณก่อน จนมั่นใจว่าจะไม่เกิดผลเสียตามมา นอกจากนี้คุณยังสามารถพูดคุยเกี่ยวกับการแก้ไขแม่แบบได้ที่หน้าอภิปราย |
จุดประสงค์[แก้]
This template has two functions:
- To provide correct formatting of film release dates and their locations within {{Infobox film}}. A citation for each date/location may also be supplied.
- To automatically categorize films according to their first release date.
การใช้[แก้]
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.
ไวยากรณ์[แก้]
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.
วันฉายวันเดียว[แก้]
{{Film date|year|month|day|location|ref1=<ref name="xxxxx" />}}
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.
วันฉายหลายวัน[แก้]
{{Film date|year1|month1|day1|location1|ref1=<ref name="xxxxx" />|year2|month2|day2|location2|ref2=<ref name="yyyy" />}}
and similarly for up to five dates/locations.
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.
ตัวอย่าง[แก้]
{{Film date|1993}}
returns:
ค.ศ. 1993
{{Film date|1993|02}}
returns:
กุมภาพันธ์ ค.ศ. 1993
{{Film date|1993|02|24}}
returns:
24 กุมภาพันธ์ ค.ศ. 1993
{{Film date|1993|February|24}}
returns:
24 กุมภาพันธ์ ค.ศ. 1993
{{Film date|1993|02|24||2008|03}}
returns:
24 กุมภาพันธ์ ค.ศ. 1993
มีนาคม 2008
{{Film date|1993|02|24|Latvia}}
returns:
24 กุมภาพันธ์ ค.ศ. 1993 (Latvia)
{{Film date|1993|02|24||2008|03|23}}
returns:
24 กุมภาพันธ์ ค.ศ. 1993
มีนาคม 23, 2008
พารามิเตอร์ทางเลือก[แก้]
- df can be set to "y" or "yes" to display the day before the month. Default is month before day.
{{Film date|1993|02|24|df=y}}
returns:
24 กุมภาพันธ์ ค.ศ. 1993
{{Film date|1993|02|24|Latvia|df=y}}
returns:
24 กุมภาพันธ์ ค.ศ. 1993 (Latvia)
- fy can be set to override the automatic category. For example:
{{Film date|1993|02|24||2008|03|23}}
uses the category หมวดหมู่:1993 films
{{Film date|1993|02|24||2008|03|23|fy=2008}}
uses the category หมวดหมู่:2008 films.
- TV is to be used for television films. It sorts films into
[[Category:YYYY television films]]
in place of[[Category:YYYY films]]
. SetTV=y
orTV=yes
to do this.
- ref1, ref2, ref3, ref4, ref5 are used to supply named references. See above for detail.
หมายเหตุทางเทคนิก[แก้]
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}}
กุมภาพันธ์ 28, 2002 (location2)
[[หมวดหมู่:ภาพยนตร์ที่ออกฉายในปี พ.ศ. 2544]]<span class="nowrap">28 '"`UNIQ--nowiki-00000025-QINU`"'มกราคม '"`UNIQ--nowiki-00000026-QINU`"'ค.ศ. 2001</span>[[Category:แม่แบบ Start date เรียงตามปี|2001 แม่แบบ:Film date]]<span style="display:none"> (<span class="bday dtstart published updated">2001-01-28</span>)</span> <span class="nowrap"><span style="font-size:85%;">(location1)</span></span><br />กุมภาพันธ์ 28, 2002 <span class="nowrap"><span style="font-size:85%;">(location2)</span></span>
เปลี่ยนหน้า[แก้]
การติดตาม[แก้]
Use of this template is tracked though the following categories:
- Tracking use of the
|fy=
parameter, which overrides the automatic categorisation by year
- Category:Template film date with category override (population 0)
- Tracking by number of release dates
- Category:Template film date with 1 release date (population 0)
- Category:Template film date with 2 release dates (population 0)
- Category:Template film date with 3 release dates (population 0)
- Category:Template film date with 4 release dates (population 0)
- Category:Template film date with 5 release dates (population 0)
- TOTAL by-release-date: 0
Note that these categories were created on 3 April 2020, and may take a few days to fully populate.
ดูเพิ่มเติม[แก้]
- {{Start date}}
- {{Nowrap}}
- {{Small}}
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:Film date/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (แก้ | ดูความแตกต่าง) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |