I did one recently for someone who wanted a power strip inside a cab for his MAME, but wanted the top power switch to work. This is what I did:
1) I had an extra computer power cord lying around not being used, so I cut the ends off and used that as my wiring up and back. it works good because it is long enough, and is insulated.
2) Next, I cut off the plug end of the strip, then used two screws to mount it to the side wall near the bottom (although I could have mounted it to the bottom).
3) Inside the insulation of the strip are three wires - white, black, and green. Inside the insulation of the cord I used for the wiring to the switch are the same three colors (although they could be blue, brown, and green). I stripped and tinned the ends of the wires on both cords.
4) I next found the main power cord I wanted to use for the cab, threaded it through the power plate on the back of the cab, secured it so it couldn't be pulled out from the back (disconnecting or damaging wires and causing loss of power). Inside this cord were also three wires - white, black, and green. I stripped and tinned those also.
5) Now comes connecting the wires. First I connected the power switch. I used my meter to find which lugs where open in one position and closed in the other, then connected the white and black wire from the cord I was using for this purpose to those lugs (white to one and black to the other). I connected the green wire to a screw holding the switch mounting plate to the top of the cab.
6) Next, I connected the other end's black wire to the white wire on the main power cord coming into the cab (with solder and heatshrink on all connections of wires to wires). I connected the white wire from the switch to the white wire on the power strip.
7) Next, I connected the black wire from the main power cord into the cab to the black wire from the strip.
8) Finally, I connected the green wire from the main power cord to both the green wire to the power switch and the green wire from the strip.
Since the power strip had surge protection built in, I didn't install a fuse. If I had used a fuse, I would have put it between the black wire from the main power cord and the black wire from the strip.
Now, with the power strip left always on and the cab plugged into the wall, the top power switch will turn all the power on or off....