Re: Trim gauage
L is correct for the light, I is the ignition +12V (switched) power S is for the signal from the sending unit and G is for the ground.
as for the connector plug you are correct, three are for the trim switch and the other two (black) are one is ground and the other is S for the gage.