Either way complete these five steps for 3 way light switch wiring. Cable 3 is the switch cable.

Apnt 23 Understanding 2 Wire And 3 Wire Lighting Systems
Wiring a light fitting with two switches. There are different ways to connect up two way lighting circuits one way is to use a twin earth cable between the two light switches. A light fixture can operate with two switches in different locations. When l1 is off l2 would be on. Two way switches have a com terminal as well as l1 and l2 terminals. This cable contains three wires and a ground. For the span between the first and second switch boxes run 3 wire romex.
Also known as three way switching the job calls for a pair of special three way switches and an appropriate length of 14 3 conductor cable to join the switches together. Red black white and bare. Wiring two switches to one light fixture adds convenience to any room with two entryways. On each of the two single pole switches install a hot wire pigtail and a ground wire pigtail that will be used to attach the switches to the wires from the feed cable. Wiring a two way switch two way switching means you can switch the same light fixture from two switches that are located in different sides of a room. Between the lightbox and the first switch box there should be a length of 2 wire a black white and bare wire inside.
Strip about 34 inch of insulation from one end of each black wire. The switch simply cuts off the live current. As you can see more clearly from our diagram in lights and switches this cable interrupts the live flow with a switch. Cut two lengths of black wire and two lengths of bare copper wire about 6 inches long. Turn off the correct circuit at your electrical panel. To add the switch youll use one of two wiring a light switch diagrams shown below depending on whether the power comes to your light switch first the most common situation or to the light fixture first.
This method can be dangerous if the neutral from the ceiling rose is connected to an alternate junction box on a different circuit. The neutrals of cables 1 and 2 are joined together in the neutral terminal block this is where the neutral side of any light fitting will go.