Module:ScriptItem: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 63: Line 63:
-- item page types
-- item page types
function p.showVariablePage(frame)
function p.showVariablePage(frame)
local parts = { "Description", "Value", "Settable" }
local parts = { "Value", "Settable" }
return p.showPage(frame, parts)
return p.showPage(frame, parts)
end
end


function p.showFunctionPage(frame)
function p.showFunctionPage(frame)
local parts = { "Description", "Parameters", "Return", "Callbacks" }
local parts = { "Parameters", "Return", "Callbacks" }
return p.showPage(frame, parts)
return p.showPage(frame, parts)
end
end


function p.showPropertyPage(frame)
function p.showPropertyPage(frame)
local parts = { "Description", "Value", "Settable", "Types" }
local parts = { "Value", "Settable", "Types" }
return p.showPage(frame, parts)
return p.showPage(frame, parts)
end
end


function p.showMethodPage(frame)
function p.showMethodPage(frame)
local parts = { "Description", "Parameters", "Return", "Callbacks", "Types" }
local parts = { "Parameters", "Return", "Callbacks", "Types" }
return p.showPage(frame, parts)
return p.showPage(frame, parts)
end
end


function p.showEventPage(frame)
function p.showEventPage(frame)
local parts = { "Description", "Parameters", "Cancellable" }
local parts = { "Parameters", "Cancellable" }
return p.showPage(frame, parts)
return p.showPage(frame, parts)
end
end
Line 113: Line 113:
table.insert(lines, "Available since "..p.since(frame).."<br>\n")
table.insert(lines, "Available since "..p.since(frame).."<br>\n")
table.insert(lines, p.syntax(frame))
table.insert(lines, p.syntax(frame))
table.insert(lines, p.description(frame))
return lines
return lines
end
end
6,833

edits