I admit to being stumped at first about how to interpret.
And I’m not one of the advanced folks! But I do care about supporting folks who have a vision, and I think once I understand what you’re trying to do, it’s the kind of thing I would be able to cobble together.
I’m imagining that you want to have a set of links available on your page, where each link looks like an image, and each of those images points to a specific tiddler or external url link (and has its own witty tooltip). Or maybe you want that, plus some randomness magic thrown in, which can be done.
One thing that’s difficult, at least at my level of usage, is to accomplish much with image tiddlers themselves. It’s true that you can import images to make tiddlers out of them, and you can add fields to those image tiddlers. But here are the two challenges:
(1) If images are large (or if there are many of them) they start to weigh down a TiddlyWiki, performance-wise. So I keep actual imports to a minimum. Maybe that’s fine for your project because these images are relatively small, and not a huge number of them…
(2) The imported image tiddler’s content is the image itself. That means it’s a bit harder to use it to do business. I’m sure there are workarounds, but I generally end up having non-image tiddlers do the real work, and point to the image tiddlers (or image links on a file or server somewhere) just to add the pretty face to the action.
If I understand right, the following “B” tiddler is a good model of the effect you’re aiming for:
<$link to="My Fab Tiddler Example" tooltip="Don't be playa hatin' cuz I be doing this!">{{image.png}}</$link>
When you say you want to “attach the link attributes of B to A” (where A is image.png), it sounds like you want A to behave always as a link in this way. But A is stuck being a plain-old image tiddler. Yes?
But if you add fields to tiddler A (the image.png tiddler) you can still set up a link that looks like this:
<$link to={{image.png!!link-to}} tooltip={{image.png!!tooltip}}>{{image.png}}</$link>
In other words, you’re having the link widget “find” the destination and tooltip within the image tiddler’s fields…
If you like this, then you can add these fields as needed to your imported images, and use the <$link>
widget in this way.
Last step — the one I know I can do, but which others here can do in their sleep — is to make a custom fab-link macro so that you can type something convenient like
<<fab-link src:"image.png">>
… to get this kind of result for any of your doctored-up imported images – each one “knowing” where to point based on fields in the image tiddler itself.
But let me pause and see whether I’m remotely understanding what you’re trying to set up.