I don't think it will lead to all out nuclear war. I think that will be avoided. The reason I said "detonation" is to leave open various possibilities such as a nuclear test run by Russia in order to send a strong signal (in violation of a treaty), or a tactical nuke launched against Ukraine which also probably wouldn't escalate, at least not rapidly.