I have removed a two gang switch to replace it with a 2 gang dimmer, to find that there are three cables in the switch, each with 2 wires (1 black, 1 red/green). I wired the dimmer up as per the instructions:
L1 to Neutral + link to second L1,
L2 to Live + first light +...