Link to Confluence page


I’m an absolute beginner developer taking my first steps with this getting started tutorial:

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!