I added the switch today to power my PIAA fog lights, and I thought I would share how I wired it (Hopefully I am not the only one who is a bit confused initially) . . . . .
There are 4 plugs on the Toyota Tacoma factory fog light switch. What seemed to be the best way to wire it is as follows:
There is a small plastic circle, sort of orange in color, on one side of the switch. This is the back of the light that causes the switch to light up when powered. The plug that is directly under this, on the outside of the unit, is ground [1]. The two middle plugs should be wired together [2+3], and then connected to the fog light relay, or whatever it is you want the switch to turn on. The last plug, on the opposite side from the circle, on the outside, opposite the ground, is your power [4]. This should be spliced from something that only has power when the ignition is on. Or, if you want power all the time, this can be connected to the battery directly. Or, if you want the fog lights to come on only when the parking lights are on, this plug should be spliced into a power line that operates the parking lights.
When this is wired, the switch will be dark and off when not in use. When pushed in, the fog lights will come on, and the switch will light up. I wired plug #4 to a fuse that only has power when the ignition is on, that way I can use the fog lights independantly of the parking lights, but they will go off automatically when the ignitiion is off.