From Amaranth Legacy, available at amaranth-legacy.community
More actions
This module is used for Template:Hatnote. See the template's page for more information.
local getArgs = require('Module:Arguments').getArgs
local yesno = require('Module:Yesno')
local p = {}
function p.main(frame)
local args = getArgs(frame)
local wrapper = mw.html.create('div')
:attr('class', 'noexcerpt')
:attr('role', 'note')
if args['color'] then
wrapper:css('--color-amaranth-legacy-scope', args['color'])
if yesno(args['color_applies_to_links']) or true then
wrapper:css('--color-link', args['color'])
end
end
if not yesno(args['remove_hr']) or false then
wrapper:wikitext('<hr/>')
end
wrapper:wikitext('ababa')
return tostring(wrapper)
end
return p