Difference between revisions of "Template:Countdown"
From Detective Conan Wiki
(Created page with "<includeonly><div class="countdown-container">'''{{#expr: floor(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400 + 0.5)}}''' {{#ifeq: {{#expr: floor(({{#time:U|{{{1}}}}} - {{#time:...") |
(Very useful template, in case we want to use it for the main page) |
||
Line 1: | Line 1: | ||
<includeonly><div class="countdown-container">'''{{#expr: floor(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400 + 0.5)}}''' {{#ifeq: {{#expr: floor(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400 + 0.5)}} | 1 | day | days }}</div></includeonly> | <includeonly><div class="countdown-container">'''{{#expr: floor(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400 + 0.5)}}''' {{#ifeq: {{#expr: floor(({{#time:U|{{{1}}}}} - {{#time:U}}) / 86400 + 0.5)}} | 1 | day | days }}</div></includeonly> | ||
<noinclude> | <noinclude> | ||
+ | Displays the offset of the date parameter inserted into the template from the current time (UTC), given in the number of days. | ||
+ | <pre>{{Countdown|December 31, 2100}}</pre> | ||
+ | Results in {{Countdown|December 31, 2100}} | ||
+ | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 20:47, 25 December 2024
Displays the offset of the date parameter inserted into the template from the current time (UTC), given in the number of days.
{{Countdown|December 31, 2100}}
Results in 27750 days