The concept of temperature in magnetism