• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Template:Timer"

From Kancolle Wiki
Jump to navigation Jump to search
m
Line 16: Line 16:
 
==Examples==
 
==Examples==
 
<pre>
 
<pre>
{{Timer|January 1 2021 00:00:00 +0900|extra_style = text-align:left}}
+
{{Timer|January 1 2023 00:00:00 +0900|extra_style = text-align:left}}
 
</pre>
 
</pre>
{{Timer|January 1 2021 00:00:00 +0900|extra_style = text-align:left}}
+
{{Timer|January 1 2023 00:00:00 +0900|extra_style = text-align:left}}
 
<pre>
 
<pre>
 
{{Timer|January 1 2030 00:00:00 +0900|2|style = font-style:italic|text = Not yet.}}
 
{{Timer|January 1 2030 00:00:00 +0900|2|style = font-style:italic|text = Not yet.}}

Revision as of 08:04, 13 November 2021

Displays a countdown timer.

Parameters

  • time or [1] : time to countdown to, required.
  • class : specify when multiple timers are used on the page, countdownComplete1 by default, e.g., countdownComplete2 for a second timer, etc.
    • [2] : alternatively, to only specify a number, e.g. 2 for a second timer.
  • text : optional completion text, Countdown complete! by default.
  • style : custom style, optional.
  • extra_style : extra style to add to the default style, optional.

See MediaWiki:Gadget-Countdown.js for JS implementation details.

Examples

{{Timer|January 1 2023 00:00:00 +0900|extra_style = text-align:left}}

{{Timer|January 1 2030 00:00:00 +0900|2|style = font-style:italic|text = Not yet.}}

{{Timer|January 19 2038 12:14:07 +0900|3|style = font-weight:bold|text = The time is now!}}