Difference between revisions of "Template:Countdown"
Jump to navigation
Jump to search
(Created page with "<includeonly><div>{{#ifexpr:{{#time:U|now+9 hours}}<{{#time:U|{{#time:F d, Y h:i:s A e|{{{StartTime|Now}}}}}}}|Time Until Start: <span data-options="no-leading-zeros short-for...") |
|||
Line 1: | Line 1: | ||
− | <includeonly><div>{{#ifexpr:{{#time:U| | + | <includeonly><div class="hidden"><!-- |
− | < | + | -->{{#if:{{{TimeStart|}}}{{{TimeEnd|}}}<!-- |
− | + | -->|{{#iferror:{{#ifexpr:{{#time:U|{{{TimeStart|}}} {{{Offset|{{{TimeStartOffset|}}}}}}}}<{{#time:U|{{{TimeEnd|}}} {{{Offset|{{{TimeEndOffset|}}}}}}}}}}<!-- | |
− | + | -->||{{#ifexpr:{{#time:U|{{#time:F d, Y h:i:s A e|}}}}<{{#time:U|{{#time:F d, Y h:i:s A e|{{#if:{{{TimeStart|}}}|{{{TimeStart}}} {{{Offset|{{{TimeStartOffset|}}}}}}|}}}}}}<!-- | |
− | + | -->|{{#if:{{{Region|}}}|({{{Region}}})|}} Starts in: <!-- | |
− | + | --><span data-end="toggle" data-toggle="next" data-options="no-leading-zeros short-format" class="countdown" style="display:none;"><span class="countdowndate" style="font-weight:bold">{{#time:F d, Y h:i:s A e|{{#if:{{{TimeStart|}}}|{{{TimeStart}}} {{{Offset|{{{TimeStartOffset|}}}}}}|}}}}</span></span><!-- | |
− | + | --><span style="display:none;">Event has started. <small>[{{fullurl:{{FULLPAGENAME}}|action=purge}} Purge page]</small></span><!-- | |
− | + | -->|{{#ifexpr:{{#time:U|{{#time:F d, Y h:i:s A e|}}}}<{{#time:U|{{#time:F d, Y h:i:s A e|{{#if:{{{TimeEnd|}}}|{{{TimeEnd}}} {{{Offset|{{{TimeEndOffset|}}}}}}|}}}}}}|{{#if:{{{Region|}}}|({{{Region}}})|}} Ends in: <!-- | |
− | | | + | --><span data-end="toggle" data-toggle="next" data-options="no-leading-zeros short-format" class="countdown" style="display:none;"><span class="countdowndate" style="font-weight:bold">{{#time:F d, Y h:i:s A e|{{#if:{{{TimeEnd|}}}|{{{TimeEnd}}} {{{Offset|{{{TimeEndOffset|}}}}}}|}}}}</span></span><!-- |
− | + | --><span style="display:none;">Event has concluded. <small>[{{fullurl:{{FULLPAGENAME}}|action=purge}} Purge page]</small></span>|}}<!-- | |
− | + | -->}}<!-- | |
− | }} | + | -->}}<!-- |
− | </ | + | -->|}}<!-- |
− | + | --></div></includeonly><!-- | |
− | + | --><noinclude>{{documentation}}</noinclude> | |
− | {{ | ||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |||
− | |||
− | |||
− |