6,834
edits
No edit summary |
No edit summary |
||
Line 301: | Line 301: | ||
function p.onlineBox(frame) | function p.onlineBox(frame) | ||
local args = p.getArgs(frame) | local args = p.getArgs(frame) | ||
if args.sp == 'true' then | if args.sp == 'true' or args.online == 'false' then | ||
return p.loadTemplate(frame, 'RedInformationBox', {'Offline Only',id='online'}); | return p.loadTemplate(frame, 'RedInformationBox', {'Offline Only',id='online'}); | ||
elseif args.sp == 'false' or args.offline == 'false' then | |||
return p.loadTemplate(frame, 'RedInformationBox', {'Online Only',id='online'}); | |||
else | else | ||
return p.loadTemplate(frame, 'GreenInformationBox', {'Online and Offline',id='online'}); | return p.loadTemplate(frame, 'GreenInformationBox', {'Online and Offline',id='online'}); |
edits