Module:Lilytest: Difference between revisions

From TestWiki
Content added Content deleted
mNo edit summary
mNo edit summary
Line 8: Line 8:
:attr('target', '_blank')
:attr('target', '_blank')
:wikitext( 'Link Testtext' )
:wikitext( 'Link Testtext' )
return tostring( mylink )
end
end



Revision as of 20:00, 11 January 2021

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

local p = {}
-- {{#invoke:Lilytest|html}}
function p.html(frame)
	local mylink = mw.html.create( 'a' ) 
	mylink
	:attr( 'id', 'testdiv' )
	:attr( 'href', 'https://publictestwiki.com')
	:attr('target', '_blank')
	:wikitext( 'Link Testtext' )
	return tostring( mylink )
end

return p