<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/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://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ADigital_clock%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Digital_clock/doc&amp;action=history"/>
	<updated>2026-05-11T03:39:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Digital_clock/doc&amp;diff=36065&amp;oldid=prev</id>
		<title>imported&gt;Jonesey95: Fix Linter errors. (bogus image options)</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Digital_clock/doc&amp;diff=36065&amp;oldid=prev"/>
		<updated>2023-01-13T01:04:06Z</updated>

		<summary type="html">&lt;p&gt;Fix &lt;a href=&quot;/mediawiki/index.php/Special:LintErrors&quot; class=&quot;new&quot; title=&quot;Special:LintErrors (page does not exist)&quot;&gt;Linter&lt;/a&gt; errors. (bogus image options)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:04, 13 January 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l33&quot;&gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Size===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Size===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&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 = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;20px&lt;/del&gt;}}&amp;lt;/nowiki&amp;gt; &amp;lt;/code&amp;gt; and it will display something like this: {{Digital clock|size = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;20px&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&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 = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;20&lt;/ins&gt;}}&amp;lt;/nowiki&amp;gt; &amp;lt;/code&amp;gt; and it will display something like this: {{Digital clock|size = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;20&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Color===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Color===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key uk_vapewiki:diff:1.41:old-21267:rev-36065:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Jonesey95</name></author>
	</entry>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Digital_clock/doc&amp;diff=21267&amp;oldid=prev</id>
		<title>Richardpruen: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Digital_clock/doc&amp;diff=21267&amp;oldid=prev"/>
		<updated>2022-01-02T13:48:09Z</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;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:48, 2 January 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key uk_vapewiki:diff:1.41:old-21266:rev-21267 --&gt;
&lt;/table&gt;</summary>
		<author><name>Richardpruen</name></author>
	</entry>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Digital_clock/doc&amp;diff=21266&amp;oldid=prev</id>
		<title>2605:E000:141A:1113:D9BF:1441:CF04:2509: /* Random colors */</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Digital_clock/doc&amp;diff=21266&amp;oldid=prev"/>
		<updated>2020-10-25T05:28:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Random colors&lt;/span&gt;&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;
&lt;br /&gt;
This clock uses one of the most complicated structures to produce an &amp;#039;&amp;#039;&amp;#039;digital clock that displays time in the offset you set!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{{notice|1=&amp;lt;big&amp;gt;This template does &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; put a working clock on your page.&amp;lt;/big&amp;gt;  The clock will &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; update the time on your screen every minute.  Instead, it records the time that the page was most recently edited or [[WP:PURGE|purge]]d.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;If you want a clock that constantly updates, then go to [[Special:Preferences#mw-prefsection-gadgets]] and enable the Appearance item, &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;.&amp;lt;/small&amp;gt;}}&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 = 20px}}&amp;lt;/nowiki&amp;gt; &amp;lt;/code&amp;gt; and it will display something like this: {{Digital clock|size = 20px}}&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>2605:E000:141A:1113:D9BF:1441:CF04:2509</name></author>
	</entry>
</feed>