Module:CreateButton: Difference between revisions

From Seven Sages of Rome
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:


function p.hello( frame )
function p.hello( frame )
local p = mw.html.create("p")
p
:wikitext('Test')
     local wrapper = mw.html.create( 'html' )
     local wrapper = mw.html.create( 'html' )
wrapper
:tag(p)
return tostring( wrapper )
return tostring( wrapper )
end
end


return p
return p

Latest revision as of 16:34, 12 February 2024

Documentation for this module may be created at Module:CreateButton/doc

local p = {} --p stands for package

function p.hello( frame )
    local wrapper = mw.html.create( 'html' )
	return tostring( wrapper )
end

return p