Module:Sandbox/Raph Williams65/Clock
Jump to navigation
Jump to search
File:Test Template Info-Icon - Version (2).svg Module documentation[create] [purge]
local time = {}
function time.main()
time = os.date('<span class="hour">%I</span>:<span class="minute">%M</span>:<span class="second">%S</span> <span class="ampm">%p</span>')
fullpagename = mw.title.getCurrentTitle().prefixedText
return time .. '<div class="purge">[[Special:Purge/' .. fullpagename .. '|Purge]]</div>'
end
return time