Some Pokémon only exist after a trade, and some editions only get half a game’s roster. From Generation 6 on, players agree on a numeric link code before trading — built from the traded Pokémon’s regional Pokédex number, a community convention rather than a game mechanic. Generations 1-5 have no link code at all.
RBY — Red, Blue and Yellow (Kanto): Species list + codes
GSC — Gold, Silver and Crystal (Johto & Kanto): Species list + codes
RSE — Ruby, Sapphire and Emerald (Hoenn): Species list + codes
FRLG — FireRed and LeafGreen (Kanto, Sevii Islands): Species list + codes
DPPt — Diamond, Pearl and Platinum (Sinnoh): No link code in this game
HGSS — HeartGold and SoulSilver (Johto & Kanto): No link code in this game
BW — Black and White (Unova): No link code in this game
B2W2 — Black 2 and White 2 (Unova): No link code in this game