Upcoming calendars events in a markdown card?

Hello

I’m looking for a way to display a list of my upcoming events from my different calendars, in a markdown card, is it technicaly possible ?

Thanks.

You’ll need to set up a trigger-based template sensor to retrieve and store the event data that the card will display.

Ok can i have an exemple to understand how it works ? Can i group all my calendar in one sensor ?

Thanks !