Customize Recent Topics Widget

Hello can anyone tell how do I get the forum related to the topic in the recent topics widget.
I’m trying to show the recent topics with the forum and parent where they com from and also show a limited amount of words.
Thank you in advance.