Module:ScriptItem2: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 425: Line 425:
end
end


return p.loadTemplate(frame, 'CodeSyntax', {
if isEvent then
returnType
return p.loadTemplate(frame, 'CodeSyntax', {
..' '..p.getDisplayedName(frame)
p.getDisplayedName(frame)
..'('..(#argsText == 0 and 'void' or table.concat(argsText, ', '))..')'
..'('..(#argsText == 0 and 'void' or table.concat(argsText, ', '))..')'
})
})
elseif type == 'property' or type == 'variable' then
return p.loadTemplate(frame, 'CodeSyntax', {
returnType..' '..p.getDisplayedName(frame)
})
else
return p.loadTemplate(frame, 'CodeSyntax', {
returnType
..' '..p.getDisplayedName(frame)
..'('..(#argsText == 0 and 'void' or table.concat(argsText, ', '))..')'
})
end
end
end


6,834

edits

Navigation menu