Gandalf

Gandalf (also known as Olorin, Mithrandir, the Grey Pilgrim, Lathspell, Stormcrow, and several other names) is one of the Istari (wizards) in J.R.R. Tolkien's stories about Middle-earth. Before he his climatic fight with a Balrog in the Mines of Moria, he is known as Gandalf the Grey; when he returns (presumably from death), he is known as Gandalf the White.

In Canon
Gandalf is smart, experienced, and politically savvy, and it is his planning, knowledge, and persuasion that spur people to do the things that need to be done so that evil doesn't take over the world. He's also, at the same time, a humble person who is content to play a supporting role as an advisor, rejecting worldly power as contrary to his duties. This caused him to reject the leadership of the White Council against Galadriel's wishes. At the end of The Return of the King, Gandalf ships out to the Undying Lands with Galadriel, Elrond, Frodo, and many others, and is never seen again in Middle-earth.

In Badfic
In Suefic, he has two main roles: either Designated Misogynistic Bastard or discoverer of the Sue's talents and the person who recommends her for a place in the Fellowship. Probably fortunately for us all, he doesn't feature too often in bad slash, although he does make a fair number of appearances in crackfic.