Module:Extra Effect: Difference between revisions

Kuhlau (talk | contribs)
No edit summary
Kuhlau (talk | contribs)
No edit summary
 
(3 intermediate revisions 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 25: Line 25:
if not entry then
if not entry then
local cat = '[[Category:Pages Referencing Unknown Extra Effects]]'
local cat = '[[Category:Pages Referencing Unknown Extra Effects]]'
return tostring(tt._main({ displaytext })) .. cat
return tostring(tt._main({ displaytext }, nil, frame)) .. cat
end
end