Rest-frame FUV-to-FIR view of Lyman break galaxies at $z\sim3$: Templates and dust attenuation.