Insights Into the High-Energy Gamma-ray Emission of Markarian 501 from Extensive Multifrequency Observations in the Fermi Era.