m test |
m something |
||
| Line 2: | Line 2: | ||
-- when this module is targeted. | -- when this module is targeted. | ||
local p = {} | local p = {} | ||
function p.GenerateUI( frame ) | function p.GenerateUI(frame) | ||
local date = os.date("%c", os.time()) | local date = os.date("%c", os.time()) | ||
local time = mw.html.create( 'p' ) | local time = mw.html.create('p') | ||
time:tag('div'):wikitext(date):done() | time:tag('div'):wikitext(date):done() | ||
return tostring(time) | |||
end | end | ||
return p | return p | ||
Latest revision as of 17:18, 3 December 2025
Test here:
Thu Dec 11 13:12:30 2025
-- Package definition to return to Scribunto - this allows us to define methods that can be called
-- when this module is targeted.
local p = {}
function p.GenerateUI(frame)
local date = os.date("%c", os.time())
local time = mw.html.create('p')
time:tag('div'):wikitext(date):done()
return tostring(time)
end
return p