Modal PopUp in the wiki

I am trying to have pop ups for the pages in my wiki. Instead of navigating to a new page (for eg. When there is an article with a “see more” link I want to open the other page as a modal popup there it self). Could not properly follow instructions in this link:
Can anyone help me on this.

Thanks in advance.

You can also use Bootstrap modals if you want, see JavaScript · Bootstrap