Module:Extra Effect: Difference between revisions

Kuhlau (talk | contribs)
No edit summary
Kuhlau (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
function p._main(args, frame)
function p._main(args, frame)
local displaytext = args[1]
local displaytext = args[1]
local effect = lib.isNotEmpty(args[2]) and args[2] or displaytext
local effect = lib.isNotEmpty(args[2]) and args[2] or displaytext -- refers to the name of the effect
local entry
local entry
Line 28: Line 28:
end
end


return tt._main({ displaytext, entry, header = header, class = "hnaw-ee" }, nil, frame)
return tt._main({ displaytext, entry.effect, header = header, class = "hnaw-ee" }, nil, frame)
end
end


return p
return p