They even managed to get 3 new IP on the system, where in previous consoles they were berated for never coming up with new IP and simply rehashing things over and over again. Splatoon in particular looks like it will stick around for a long time, Mario Maker probably as well (they even mentioned possibly doing a Zelda Maker in the future...I really hope that comes true).
It meant that the Wii was not really viable as your "only" system if you were interested in those games. While the NES, SNES, N64, and Gamecube were either competitive or the leaders technically in their gen.
People who don't know about other franchises, and perhaps don't want the more mature subject matter of the three big franchises you mention, were more than happy with the fun a Wii gave them.
The Wii was a huge opportunity for Nintendo but they couldn't adapt to modern game play or sales to take full advantage of it. So perhaps it wasn't a failure but it was a huge disappointment.
But still, Nintendo just hasn't been "king" ever since the SNES. The N64, GameCube, Wii and Wii U all disappointed a lot of people and each stumbled in significant ways.
(I'm not one of them, I'm a huge Nintendo fan)