User:Bawolff/sandbox/utcclockthingy

From Wikinews, the free news source you can write!
Jump to navigation Jump to search
Wednesday
20
November
01:58:00 UTC

01:58: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.