In August 1988, the Japanese ambassador to China urged Prime Minister Noboru Takeshita not to visit the war-linked Yasukuni Shrine, months before his trip to the country, declassified diplomatic records showed Wednesday.