Module:Lilytest: Difference between revisions

From TestWiki
Content added Content deleted
mNo edit summary
mNo edit summary
Line 1: Line 1:
local p = {}
local p = {}
-- {{#invoke:Lilytest|html}}

function p.html(frame)
function p.html(frame)
local mylink = mw.html.create( 'a' )
local mylink = mw.html.create( 'a' )
Line 7: Line 7:
:attr( 'href', 'https://publictestwiki.com')
:attr( 'href', 'https://publictestwiki.com')
:attr('target', '_blank')
:attr('target', '_blank')
:wikitext( 'Link Testtext' )
end
end



Revision as of 19:56, 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' )
end

return p