Well, just tried it myself. Didn't want to spend a lot of time to it so I did it the easiest way I could think of.
Let's say you normally post your article body by pulling spintax out of one file, which also contains the anchor link to your main site, and you save the post url to posted.txt. Let's also say that your linkwheel posts must contain an anchor link to your main site, and an anchor link to the previous linkwheel post.
When you want to create a linkwheel, you not only save your post urls to posted.txt, but also to linkwheel.txt.
Also, instead of pulling your post text out of one file, you pull it out of 3 files.
So you create 3 macroses.
-first one: pulls text out of spintax file, which contains link to your main site, and ends with this: <a href="
eg.
{First|1st} part, this {is|was} link to <a href="http://mainsite.com">main site</a> and this {is|was} link to <a href="
- second one: pulls you url from your linkwheel.txt file
eg.
http://linkwheel.com
- third one: pulls the second part of text out of a second spintax file with in the beginning the rest of the anchor link html
eg.
">link to previous post</a>, you {see|understand}?
Now paste the results of the 3 macroses in the part where you normally only pull one spintax file from, and you'll have the outcome of the following spintax:
{First|1st} part, this {is|was} link to <a href="http://mainsite.com">main site</a> and this {is|was} link to <a href="http://linkwheel.com">previous post</a>, you {see|understand}?
When you want it to be able to rebuild broken links then you'll have to remember to identify the urls with a number when you create them.