Ted主 came谓 for the weekend状 wearing only some shorts状语,表示伴随 and a T-shirt(wear的宾语),与some shorts并列, which is a stupid thing to do in such weather定语从句,先行词是前面整个句子。泰德周末来的时候只穿了短裤和一件t恤,在这种天气里这样做是很愚蠢的。
不理解可以去问一下英语老师。
作状语,表明Ted周末过来时候的状态。