How can I connect an Xbox One, Wii, Wii U, and a Nintendo Switch to one TV?

I've heard of people using things like 8 way RCA splitters for older consoles, but I don't think that works with any of my consoles other than the Wii. So what can I do to connect them all to one TV?
7 answers 7