Template:Signpost/DateCountdown
For this:
| Deadlines (UTC) Current time is 2026-06-08 17:13:16 () |
Utility template for {{Signpost/Deadline}}. Displays a horizontal "progress" bar representing the amount of time remaining in a time span, color-coded (green → yellow → red) to indicate how close it is to the end of the span.
The bar is overlaid with various pieces of information:
- an optional text label
- and, if
|short=is not enabled:- the proximity to the end date expressed in number of days "left", or "ago" (for past dates)
- the percentage value of the time remaining
Parameters
|start=YYYY-MM-DD- The start of the span.
|end=YYYY-MM-DD HH:NN UTC- The end of the span. (Optional time values default to 00:00 UTC.)
|label=text- Optional text label to precede the
|end=date, when labeling the bar. |short=truthy value- If set, disables the days left/ago labeling and the percentage display.
|width=number or percentage- Optional CSS width for the bar, defaults to
100%. Values followed by a percent sign are interpreted as percentages, all others in pixel (px) units.
Example
How much remains of the current calendar month:
{{Signpost/DateCountdown
|label=End of month:{{sp}}
|start={{#time:Y-m"-01"|now}}<!--First day (-01) of current month-->
|end={{#time:Y-m-d|{{#time:Y-m"-01"|now}} + 1 month}}
|width=80%
}}
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.