Module:ScriptItem2: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 394: Line 394:
local entries = p.getIndexedArgs(frame, 'arg')
local entries = p.getIndexedArgs(frame, 'arg')
local isEvent = args.type == 'event'
local isEvent = args.type == 'event'
if isEvent then
table.insert(entries, 1, 'Event event')
end


if isEvent and args.syntax and args.syntax:lower() == 'event event' then
if isEvent and args.syntax and args.syntax:lower() == 'event event' then
elseif #entries == 0 then
elseif #entries == 0 or entries[1] == "void" then
elseif entries[1] == "void" then
table.insert(argsText, 'void')
else
else
for i,arg in ipairs(entries) do
for i,arg in ipairs(entries) do
6,834

edits