sobriquet
A nickname, often descriptive or humorous, that someone earns from a trait, a deed or a reputation. The broad, somewhat bookish word.
Tell
a nickname earned by a deed or trait
Best when
You mean a name people give someone beyond their real one and do not need to say whether it is fond, mocking or descriptive.
Example
“General Patton earned the sobriquet Old Blood and Guts.”