Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Module:Hatnote: Difference between revisions

From Amaranth Legacy, available at amaranth-legacy.community
Content deleted Content added
Created page with "local getArgs = require('Module:Arguments').getArgs local p = {} function p.main(frame) local args = getArgs(frame) local wrapper = mw.html.create('div') :attr('class', 'noexcerpt') :attr('role', 'note') return wrapper:toString() end return p"
 
No edit summary
Line 8: Line 8:
:attr('role', 'note')
:attr('role', 'note')
return wrapper:toString()
return tostring(wrapper)
end
end



Revision as of 18:00, January 13, 2025

This module is used for Template:Hatnote. See the template's page for more information.


local getArgs = require('Module:Arguments').getArgs
local p = {}

function p.main(frame)
	local args = getArgs(frame)
	local wrapper = mw.html.create('div')
		:attr('class', 'noexcerpt')
		:attr('role', 'note')
	
	return tostring(wrapper)
end

return p