I have made some improvements to the core translink
macro. Thanks to @jeremyruston @pmario @Mohammad for help along the way.
This macro was rather hidden away, as it lacked documentation, and was only discoverable when excising text and replacing it with a macro.
The new documentation and the improvements to the macro can be seen directly under this permaview of the prerelase:
- The macro has improved looks, uses the stylesheet, and adapts to the current palette (uses pre-border and pre-background colours).
- The behaviour of the inline mode has been tweaked, so that the whole macro will be inline (not just the transcluded text).
- The empty message (when translinking a missing tiddler) reuses the missing tiddler hint shown in the body of a missing tiddler, so it is translatable and provides a button to directly edit the missing tiddler.
Before changes:
After changes:
These changes will hopefully make the macro much more inviting to use. Let me know what you think!
Note to anyone using ReLink plugin by @Flibbles: the translink macro is not yet whitelisted among other core macros, so backreferences won’t point to it (I have opened an issue on the plugin’s GitHub).
Edit: changes and documentation available in the prerelease.