FWIW, here are the NYC rules:
(1) No tipping for takeaway. (You go to the restaurant and get your food)
(2) Tip a couple of dollars for delivery. A little more if he stops at a deli to pick up beer if requested. (The delivery guy comes to your building and delivers your order to your door)