It can only transfer Pokemon from Gen V to Gen VI.
However, you can migrate Pokemon from Gen III to Gen IV, then migrate that Pokemon from Gen IV to Gen V, and then migrate that Pokemon from Gen V to Gen VI, respectively.
And you can only transfer Pokemon through the PokeTransfer and PokeBank and shtuff, which is available as Nintendo 3DS Applications.
Hope I helped. :)