Module:ScriptItem: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 124: Line 124:
if args.type == 'variable' or args.type == 'property' then
if args.type == 'variable' or args.type == 'property' then
table.insert(topBoxes, "settable")
table.insert(topBoxes, "settable")
elseif args.type == 'event' then
table.insert(topBoxes, "cancellable")
end
end
Line 309: Line 311:
else
else
return p.loadTemplate(frame, 'GreenInformationBox', {'Read and Set',id='settable'});
return p.loadTemplate(frame, 'GreenInformationBox', {'Read and Set',id='settable'});
end
end
function p.cancellableBox(frame)
local args = p.getArgs(frame)
if p.isCancellable(frame)then
return p.loadTemplate(frame, 'GreenInformationBox', {'Cancellable',id='cancellable'});
else
return p.loadTemplate(frame, 'RedInformationBox', {'Not Cancellable',id='cancellable'});
end
end
end
end
6,833

edits