Link to Confluence page

Hi,

I’m an absolute beginner developer taking my first steps with this getting started tutorial:
https://developer.atlassian.com/cloud/confluence/getting-started/

All went well and now I would like my macro to create a link to a confluence page which result in the icon and page title (same as standard links on a page) and I wonder if there is some magic in the frameworks that let me do this?

Thank you in advance!