Master Light Switch

Can anybody help me with the coding to create a master switch

you are going to have to give us way more information than that.