Please consider implementing the use case you are looking for using a LivePage.
- Create multiple links in one step.
- Preview Work Items that will be linked.
- Select link role.
Create Wiki-Space "macros" in Repository-Scope if it doesn't exist.
Create Wiki-Page MultiLink and paste content of MultiLink.txt into the page.