I want to wire in a single gang light switch for a lamp
There should be no connection other than live/hot/line to the switch. Therefore, the neutral and earth are connected directly to the fitting. The incoming live connects to com, the outgoing L1 connects to the fitting. L2 indicates that this is a two way switch. Connecting anything else to the switch will cause a dead short. The fitting is switched on the live only.