Wii - 100 Million
DS - 150 Million
Whatever strategy they used clearly worked.
As far as the 3DS goes, it's simply the decline of dedicated HH's due to mobile competition. Nintendo couldn't do much against that.
As for the Wii U? Nintendo failed to build a strong console brand since the PS was introduced. It's not the Wii's fault.