1) If I take a shower, I will go to the park.
This may or may not happen. If I don't take a shower, then I won't go to the park. Maybe you'll be at the park. Maybe you won't be at the park.
2) When I take a shower, I will go to the park.
You are taking a shower, and you are going to the park. You'll be at the park.