The docs about creating shortcodes has an example using images. Here’s another one. Here’s one you can modify for links.
Please read the docs thoroughly and try the examples.
Once you have tried the examples, if you still have questions, please read Requesting Help and follow the advice there.