All Wikipedia links are nofollow. So as far as I understand, they don't contribute to seo.
Nofollow links aren't going to pump up your stats, but they are vital to diversifying your backlink profile.
Ahrefs goes into a lot more detail here: https://ahrefs.com/blog/nofollow-links/