Module:Lilytest: Difference between revisions

From TestWiki
Content added Content deleted
mNo edit summary
mNo edit summary
Line 2: Line 2:


function p.html(frame)
function p.html(frame)
local _ = '<>'
local mylink = mw.html.create( 'a' )
mylink
:attr( 'id', 'testdiv' )
:attr( 'href', 'https://publictestwiki.com')
:attr('target', '_blank')
end
end



Revision as of 19:55, 11 January 2021

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

local p = {}

function p.html(frame)
	local mylink = mw.html.create( 'a' ) 
	mylink
	:attr( 'id', 'testdiv' )
	:attr( 'href', 'https://publictestwiki.com')
	:attr('target', '_blank')
end

return p