User:Bawolff/sandbox/utcclockthingy

From Wikinews, the free news source you can write!
Jump to navigation Jump to search
Friday
28
February
00:31:00 UTC

00:31:00

Basically, this makes anything enclosed in a tag with calss utcautoclock auto update. For example:

<span class="utcautoclock">{{#time: H":"i":"s |{{CURRENTTIME}}}}</span>

Note: we need the {{#time: H":"i":"s |{{CURRENTTIME}}}} for non-js users. If there is anything other than {{#time: H":"i":"s |{{CURRENTTIME}}}} it will be replaced.