Is there a 3rd place playoff between losing semi-finalists in cup competitions?

its just I have noticed some teams have a 3rd place cup shield in their trophy cabinet and I wondered how this was decided.