From the Super Mario Wiki
Elevators are obstacles which appear throughout the Mario series. They are simply platforms which go up or down, in order to transport a game character or object to different heights. Some move by themselves, while others are controlled by the player.
 Donkey Kong series
 Donkey Kong
In Donkey Kong, two sets of elevators appear in 75m: one set going up, the other set going down. Elevators appear to work via a chain-like mechanism. When an elevator reaches the end of its path, it disappears, and a new one appears at the beginning of the path, as opposed to a single elevator going up and down.
 Donkey Kong (Game Boy)
 Donkey Kong Country
 Donkey Kong Country 3: Dixie Kong's Double Trouble!
In Donkey Kong Country 3: Dixie Kong's Double Trouble!, Elevators are wooden planks. Some are activated when Dixie Kong or Kiddy Kong ride them, and some are activated automatically.
 Super Mario series
 Super Mario Bros.
 Super Mario 64
There are self-moving elevators in the Hazy Maze Cave and Wet-Dry World courses. A special elevator is used in the Elevate For 8 Red Coins mission in Hazy Maze Cave. Mario can control it stepping on arrow pads.
 Super Mario Galaxy 2
In Super Mario Galaxy 2, elevators appear as yellow platforms that raise Mario up, then flash blue and disappear. They cannot be controlled by the player. They appear in Sky Station Galaxy and giant versions in Supermassive Galaxy.
 Super Mario 3D Land
 Paper Mario series
 Paper Mario: The Thousand-Year Door
In Poshley Heights, Riverside Station, and the X-Naut Fortress, Elevator Keys are usually required to use them. When entered, the game sometimes asks which floor the player wants to travel to. Then, a brief cutscene kicks in which shows Mario and his partners in the elevator, after which they are let off.
 Super Paper Mario
A few elevators are found in The Bitlands, from Super Paper Mario. This time, they are pixelated and resemble the yellow ones found in Super Mario Bros.. Elevators from Paper Mario: The Thousand-Year Door also return, in Flipside and Fort Francis.
 Mario vs. Donkey Kong series
 Mario vs. Donkey Kong
 Mario vs. Donkey Kong 2: March of the Minis
The object has an attached platform connected onto the level pole. In addition, it also features a button that has two red arrows facing away vertically.
To use them, the toy has to get onto an elevator first by guiding with the player's stylus to get onto it. Then, the player must use the button by using the stylus to tap on one of the two arrows if the elevator would elevate or rise down. Once tapped, the elevator cannot be interrupted by tapping on the button again until it reaches to a certain level to stop on. In addition to using them, the elevator can hold up to two Mini-Marios.
 Super Smash Bros. series
 Super Smash Bros. Brawl
In Super Smash Bros. Brawl, elevators appear in the Subspace Emissary. They can be moved up or down as the player ducks or jumps. Elevators also appear in the stage 75m. They act exactly the same as they do in the original Donkey Kong due to the stage being an exact remake of how the original level.