<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://deeptech.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ADigital_clock%2Fdoc</id>
	<title>Template:Digital clock/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://deeptech.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ADigital_clock%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://deeptech.wiki/index.php?title=Template:Digital_clock/doc&amp;action=history"/>
	<updated>2026-05-08T22:40:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://deeptech.wiki/index.php?title=Template:Digital_clock/doc&amp;diff=4771&amp;oldid=prev</id>
		<title>C: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://deeptech.wiki/index.php?title=Template:Digital_clock/doc&amp;diff=4771&amp;oldid=prev"/>
		<updated>2025-11-15T02:44:46Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:44, 15 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>C</name></author>
	</entry>
	<entry>
		<id>https://deeptech.wiki/index.php?title=Template:Digital_clock/doc&amp;diff=4770&amp;oldid=prev</id>
		<title>w&gt;GhostInTheMachine: modify the notice</title>
		<link rel="alternate" type="text/html" href="https://deeptech.wiki/index.php?title=Template:Digital_clock/doc&amp;diff=4770&amp;oldid=prev"/>
		<updated>2023-10-01T14:53:14Z</updated>

		<summary type="html">&lt;p&gt;modify the notice&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Warning&lt;br /&gt;
|heading=This template does &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; put a working clock on your page.&lt;br /&gt;
| This template adds a clock that shows the time when the page was last updated (or re-cached) and will not update each minute.&amp;lt;br /&amp;gt;If you do want a clock that constantly updates, then go to [[Special:Preferences#mw-prefsection-gadgets|your Preferences]] and enable the item:&amp;lt;br /&amp;gt;&amp;quot;Add a clock to the personal toolbar that displays the current time in UTC and provides a link to purge the current page&amp;quot; under Appearance.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
This template displays a digital clock.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
# To use this template, place the following on the page - &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Digital clock}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
# This template should never be [[WP:Substitution|substituted]].&lt;br /&gt;
# This template should be [[WP:Purge|purged]] to reflect current time.&lt;br /&gt;
# If your area follows DST, you will have to change the time manually.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
All parameters given below are optional and not necessarily be used.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; &lt;br /&gt;
{{Digital clock &amp;lt;br&amp;gt;&lt;br /&gt;
|format = 12 or 24 (default: 24) &amp;lt;br&amp;gt;&lt;br /&gt;
|offset = number of hours + or - UTC (default: 0) &amp;lt;br&amp;gt;&lt;br /&gt;
|size = width of each digit in pixels (default: 70) &amp;lt;br&amp;gt;&lt;br /&gt;
|color = any color name or HTML color code (default: red) &amp;lt;br&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Offset===&lt;br /&gt;
The clock has a parameter that allows you to give an offset from UTC time. The offset can be fractional to adjust the time by any number of hours and minutes. Therefore this code - &lt;br /&gt;
&amp;lt;code&amp;gt; &amp;lt;nowiki&amp;gt;{{Digital clock|offset = +5.5}}&amp;lt;/nowiki&amp;gt; &amp;lt;/code&amp;gt; will produce this clock:&lt;br /&gt;
{{Digital clock|offset = +5.5}}&lt;br /&gt;
&lt;br /&gt;
===Format (12 or 24 hours)===&lt;br /&gt;
You can set the format parameter to 12 or 24 to get a 12 or 24 hour time format! 12 hour clocks get an additional segment space for displaying am/pm. Therefore &amp;lt;code&amp;gt; &amp;lt;nowiki&amp;gt;{{Digital clock|format = 12}}&amp;lt;/nowiki&amp;gt; &amp;lt;/code&amp;gt; will produce: {{Digital clock|format = 12}}&lt;br /&gt;
&lt;br /&gt;
===Size===&lt;br /&gt;
You can set nearly all sizes for the clock to display. It defaults to 70x112px. To set a size of 20 pixels you will have to type &amp;lt;code&amp;gt; &amp;lt;nowiki&amp;gt;{{Digital clock|size = 20}}&amp;lt;/nowiki&amp;gt; &amp;lt;/code&amp;gt; and it will display something like this: {{Digital clock|size = 20}}&lt;br /&gt;
&lt;br /&gt;
===Color===&lt;br /&gt;
You can set all types of colors for the clock to display. It defaults to red. You can use a HTML color code or directly write the color name. To display a clock with cyan color you will have to type &amp;lt;code&amp;gt; &amp;lt;nowiki&amp;gt;{{Digital clock|color = cyan}}&amp;lt;/nowiki&amp;gt; &amp;lt;/code&amp;gt; and it will display something like this: {{Digital clock|color = cyan}}&lt;br /&gt;
&lt;br /&gt;
===Borders===&lt;br /&gt;
This is actually not a parameter but a way to design different types of borders for the clock. Normal HTML can be used to add borders and padding space. One tricky bit is that &amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt; elements expand to the full width of their container, which will make the box too wide. So we must specify an exact width for it, by multiplying the segment size by 5 (for 24-hour clocks) or 6 (for 12-hour clocks): A complete list of borders is available at the [[WP:User Page Design Center/Style|User Page Design Center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; &amp;lt;nowiki&amp;gt;&amp;lt;div style=&amp;quot;background:black; padding:5px 15px; border:3px inset cyan; width:300px;&amp;quot;&amp;gt;&lt;br /&gt;
{{Digital clock}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt; &amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background:black; padding:5px 15px; border:3px inset cyan; width:300px;&amp;quot;&amp;gt;&lt;br /&gt;
{{User:Anakin101/digiclock|format=12|size=50|color=cyan}}&lt;br /&gt;
&amp;lt;/div&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; &amp;lt;nowiki&amp;gt;&amp;lt;div style=&amp;quot;background:black; padding:5px 15px; border:3px inset cyan; border-radius:15px; width:300px;&amp;quot;&amp;gt;&lt;br /&gt;
{{Digital clock}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt; &amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background:black; padding:5px 15px; border:3px inset cyan; border-radius:15px; width:300px;&amp;quot;&amp;gt;&lt;br /&gt;
{{User:Anakin101/digiclock|format=12|size=50|color=cyan}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Vertical clocks===&lt;br /&gt;
Wrapping the clock in a &amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt; with the same width as the segments will make it vertical. Borders work as normal. The vertical clock isn&amp;#039;t displayed to prevent inconvenience but this code works perfectly. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; &amp;lt;nowiki&amp;gt;&amp;lt;div style=&amp;quot;float:right; width:40px; border:5px solid black&amp;quot;&amp;gt;&lt;br /&gt;
{{Digital clock}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt; &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Random colors===&lt;br /&gt;
Parser magic can be used to pick a random color each time the page is generated. Use the following code to pick random colors from the colors specified. Note - You can change the colors given according to your preference. This code will produce the clock given below.&lt;br /&gt;
&amp;lt;code&amp;gt; &amp;lt;nowiki&amp;gt;{{Digital clock |color = {{#switch:{{#expr:{{#time:U}} mod 6}} |0=red |1=orange |2=lime |3=yellow |4=cyan |5=magenta}}&amp;lt;/nowiki&amp;gt; &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Digital clock&lt;br /&gt;
|size = 50&lt;br /&gt;
|color = {{#switch:{{#expr:{{#time:U}} mod 6}} |0=red |1=orange |2=lime |3=yellow |4=cyan |5=magenta}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Date and time templates}}&lt;br /&gt;
{{When on basepage|&lt;br /&gt;
[[Category:Time, date, and time zone user templates]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>w&gt;GhostInTheMachine</name></author>
	</entry>
</feed>