If a tiddler has color and icon, then they will be shown in tag pill. I am looking for a simple stylesheet to show links to such tiddler using the color and icon if they are existed, so
if a tiddler has color field, that color will be used as color link (text color)
if a tiddler has icon field, that field will be used as icon in front of link
Links can be displayed everywhere: in tiddler text, in sidebar, …
What solution do you propose? Please note to not overwrite the core tiddlers.
I’m afraid I don’t have the time to look closer at this right now, but I’d think you can get something from looking at https://linkstyle.tiddlyspot.com/
You’re welcome ! Note that my solution is intentionally aimed for svg icon for external links but it can also be used for internal links with some tweaking, let me know if you need help with that
This do not take into account the icon field, instead it will display an icon on tiddlers whose name match the domain field set on image tiddlers. I can add support for that if you want but it will take a bit of time
Something is wrong! I cannot see any icons even with external links! Would you mind having a look?
See for example $:/Libro/ExternalLinksIcon/Settings/HowTo
You need to reload the wiki in order for the style to be generated, did you try it ? You can send me your wiki and I will take a look. Unless you are talking about the demo ? Everything works on my end, what browser do you use ?
Hello @telumire ! I am also having some challenges making the stylesheets work in a new TiddlyWiki; what are the steps to bring over the necessary tiddlers into a fresh notebook (followed by a notebook refresh if I followed well)
If you are using the latest prerelease then the issue come from the new parameters for the core icons, so to fix this you can either import the old icons in your wiki, or use a wikify to get the final svg output, then use this for the background image. I plan to update my code when I’ve finished my exams.