I do not know the "keying", but one set of terminals in your photo will be "hot". The other terminals will be connected to the dimmer switch and the other to the parking lights and the tail lights/dash lights. Paired on the back side with the "hot" will be the wire to the brake light switch. In the headlight position one terminal will connect to "hot, one terminal will connect to the dimmer switch and one terminal will connect to the tail lights and dash lights. In the parking light position one terminal will again be the "hot", one terminal will be parking lights and again one terminal will be the tail lights and dash lights. So, the "hot" is paired with the brake light switch and hot all the time. It is active to the other terminals in either headlight position or the parking position. The tail light and dash lights will be active in either the headlight position or the parking position. The other two terminal are single connections, one to the parking lights and one to the headlights.
Try to locate the "hot" wire, it is Yellow and should be lighter than the other wires. It is paired on the back of the switch plate with the brake wire which is Green and should also be fairly light. These two, the Yellow and Green, will be on the same strip on the back side. There will be another Yellow wire (I'm ignoring the tracer colors if they are badly faded) will be a single wire on its strip and is the dimmer wire. A single Black wire on the backside strip will be the parking lights. And the pair of Black wires will be the tail lights and dash lights.
The Yellow wires could be a bit confusing because the "hot" is Yellow with a Red tracer, the parking lights is Black with a Yellow tracer (and the Yellow and Black section on the wire can be close to the same size) and the headlight is Yellow with a Black tracer (and again can be close to the same spacing size). Figuring out a couple of the wires should give you a major clue as to what the others should be.