Wrinkle patterns in compressed thin sheets are ubiquitous in nature and technology, from the furrows on our foreheads to crinkly plant leaves, from ripples on plastic-wrapped objects to the protein film on milk. The current understanding of an elementary descriptor of wrinkles--their wavelength--is restricted to deformations that are parallel, spatially uniform, and nearly planar. However, most naturally occurring wrinkles do not satisfy these stipulations. Here we present a scheme that quantitatively explains the wrinkle wavelength beyond such idealized situations. We propose a local law that incorporates both mechanical and geometrical effects on the spatial variation of wrinkle wavelength. Our experiments on thin polymer films provide strong evidence for its validity. Understanding how wavelength depends on the properties of the sheet and the underlying liquid or elastic subphase is crucial for applications where wrinkles are used to sculpt surface topography, to measure properties of the sheet, or to infer forces applied to a film.