Temp gauge/Fuel Gauge problem

Sounds like a bad ground somewhere. The only places the headlamps and gages interact is in the +12 V supply and the ground. Turning on the lights would only drop the supply, which would tend to make gages read low. A bad ground would do the opposite.