Onions & Garlic

Onions, garlic, a halved red onion, spring onions, shallots and a leek on a wooden table

Which onion a recipe means, how long it really takes to soften, and what garlic does differently crushed, sliced or whole.