แม่แบบ:Countdown
Error: year, month, and day must be specified
แม่แบบนี้ใช้ลูอา |
Notes
[แก้]Please note the following important points before using this template.
The time on this countdown clock is GMT (UTC+0)
- if the event is held in more than a year, the number of years and everything below will be shown
- if the event is held in more than a week, the number of weeks and everything below will be shown
- if the event is held in more than 24 hours, the number of days and everything below will be shown
- if the event is held within 24 hours, the number of hours left and everything below will be shown
- if the event is held within 1 hour, the number of minutes left and the number of seconds left will be shown
- if the event is held within 1 minute, the number of seconds left will be shown
Duration is in seconds, so duration=3600 for a one-hour event. Alternatively, duration and duration unit=//unit// can be used in unison (e.g., duration=1|duration unit=year).
Usage
[แก้]Editors can use this template as a countdown clock for a lot of different events. The following can show you how to use this template.
Simple Countdown Clock
[แก้]This type of countdown clock is suitable for events with no duration.
{{countdown |year = 9999 |month = 1 |day = 1 |event = unknown starts }}
If you type in the above, something like the following will appear.
There are 7,974 ปี, 34 วัน, 23 ชั่วโมง, 9 นาที และ 35 วินาที until unknown starts. (refresh)
Advanced Countdown Clock
[แก้]This type of countdown clock is suitable for events with a duration.
{{countdown |year = 2012 |month = 12 |day = 8 |hour = 19 |minute = 40 |second = 0 |event = |duration = 21 |eventstart = unknown has started |eventend = unknown has ended }}
If you type in the above, something like the following will appear.
There are 7,974 ปี, 34 วัน, 11 ชั่วโมง, 9 นาที และ 35 วินาที until the event begins. (refresh)
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:Countdown/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (แก้) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |