Module:ScriptItem2: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 409: Line 409:
end
end


return p.loadTemplate(
return p.formatCode(
frame,
'code',
returnType
returnType
..' '..p.getDisplayedName(frame)
..' '..p.getDisplayedName(frame)
..'('..(#argsText == 0 and 'void' or table.concat(argsText, ', ')..')')
..'('..(#argsText == 0 and 'void' or table.concat(argsText, ', ')..')')
)
)
end
end