Module:ScriptItem2: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 627: Line 627:
end
end
end
end
callbackSyntax = p.loadTemplate(frame, 'CodeSyntax', {
'function('..(#callbackSyntax == 0 and 'void' or table.concat(callbackSyntax, ', ')..')')
})


rows[i2] = { i2..') ', p.formatType(parameterType, frame), p.formatName(parameterName, frame), description }
rows[i2] = { i2..') ', p.formatType(parameterType, frame), p.formatName(parameterName, frame), description }
end
end
local callbackSyntax2 = p.loadTemplate(frame, 'CodeSyntax', {
'function('..(#callbackSyntax == 0 and 'void' or table.concat(callbackSyntax, ', ')..')')
})
if #parameterTokens > 0 then
if #parameterTokens > 0 then
local syntaxLine = parameterTokens[1]..' '..parameterTokens[2]..'('..callbackSyntax..')'
local syntaxLine = parameterTokens[1]..' '..parameterTokens[2]..'('..callbackSyntax2..')'
syntaxLine = p.loadTemplate(frame, 'CodeSyntax', {syntaxLine})
syntaxLine = p.loadTemplate(frame, 'CodeSyntax', {syntaxLine})
table.insert(html, syntaxLine)
table.insert(html, syntaxLine)
6,834

edits

Navigation menu