Editing Module:Extra Effect
Appearance
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 6: | Line 6: | ||
function p.main(frame) | function p.main(frame) | ||
local args = require('Module:Arguments').getArgs(frame) | local args = require('Module:Arguments').getArgs(frame) | ||
return p._main(args | return p._main(args) | ||
end | end | ||
function p._main(args | function p._main(args) | ||
local displaytext = args[1] | local displaytext = args[1] | ||
local effect = lib.isNotEmpty(args[2]) and args[2] or displaytext -- refers to the name of the effect | local effect = lib.isNotEmpty(args[2]) and args[2] or displaytext -- refers to the name of the effect | ||
| Line 28: | Line 28: | ||
end | end | ||
return tt._main({ displaytext, entry.effect, header = header, class = "hnaw-ee" } | return tt._main({ displaytext, entry.effect, header = header, class = "hnaw-ee" }) | ||
end | end | ||
return p | return p | ||