Hanley Ramirez was back in the Dodgers lineup Friday, batting third and playing shortstop, after a one-game absence. He was struck on the left hand by a pitch Wednesday in San Francisco.