Link Preview for external URLs (aka Link Unfurl, Cards, URL Preview, URL Expansion, Link Expansion)

In terms of the Twitter preview: that’s different from the OpenGraph link information preview (the examples you show later).

The link preview for Twitter is a macro that uses the Twitter embed iframe specs, and you can create your own macros (see Allow me to embed a mastodon post just like I can embed a tweet | GitHub).