Maybe uni-links <https://wikilabs.github.io/editions/uni-link> would be 
more useful, rather than having to apply multiple hacks?

On Sunday, April 11, 2021 at 4:34:13 PM UTC-7 springer wrote:

> Dear all,
>
> Freelinks are especially great when text gets dumped into a wiki from 
> multiple sources (such as students in a class, or excepts from texts), and 
> where the main author/curator of the wiki can't or shouldn't modify the 
> text generated by other authors. 
>
> Currently,  out of caution around potential performance-drag, I have 
> freelinks picking up titles for only a select set of tiddlers: those tagged 
> with *keyword *... and now also for *keyword-alias*. (In 5.1.24 
> prerelease: Filter defining tiddlers to which freelinks are made: 
> "[tag[keyword]] [tag[keyword-alias]]")
>
> I continue to hope that freelinks will one day work seamlessly with an 
> "aliases" or "title-variants" field... It's hard to imagine any person who 
> finds freelinks useful but who wouldn't benefit from getting title-variants 
> recognized without fuss.
>
> But for now, I'll share a very limited workaround, so that a freelink 
> (virtual link) to *empiricism* (or at least, a functional equivalent) 
> will display whenever tiddler text mentions empiric*ists* (for example).
>
> I actually generate a tiddler called empiricists and then populate it with 
> {{empiricism}}. I then set the caption field to empiricism, and add the tag 
> *keyword-alias*.
>
> Then, two tweaks to the system make it look almost seamless -- assuming 
> you don't really need to *see* titles rather than this more semantically 
> pointed (but not-necessarily-unique) caption field. 
>
> (1a) Modify *$:/core/ui/ViewTemplate/title*
>
> *<$view field="title"/>* can be replaced with 
> *<$transclude field="caption">{{!!title}}</$transclude>*
>
> (1b) Do the same for *$:/core/macros/timeline* (if the Recents sidebar 
> tab is front-and-center, as with a blog). ...  and also modify timeline 
> macro to reflect something like:
>
> *\define timeline(limit:"100",format:"DDth MMM 
> YYYY",subfilter:"!tag[keyword-alias]",dateField:"modified")*
>
> (2) In my case, an additional ViewTemplate footer template (a dynamic 
> table showing rows for each tag-child of the keyword specified in tiddler's 
> title, displaying exactly on tiddlers which serve as tags), and this also 
> needs to be added in to better mimic the original tiddler. So my content 
> for the keyword-alias tiddler empiricists is actually:
>
> {{empiricism}}
> {{empricism||keyword}}
>
> As you can imagine, this is clunky, given that title-variants of X can't 
> be specified in the very process of creating tiddler X, and I need to clone 
> the above solution for each additional variant, such as empiricist 
> (singular) and so on. However the actual "weight" of each tiddler alias is 
> minimal, so effort is the main constraint. 
>
> Still, it's finally possible to ensure that if a student posts about 
> *empiricists*, we'll all see a link that effectively invites us to visit 
> the keyword *empiricism*. 
>
> Unless, of course, they misspell that keyword entirely. : |
>
> Note, of course, this solution is better for a use-case like mine where 
> those who follow these variant-links don't usually need to edit the 
> original. Since my students don't generally edit the keywords directly, 
> that's not yet a problem for me. 
>
> Again, though: Any solution that requires a proliferation of tiddlers (as 
> well as messing with the timeline macro, etc.) feels less than 
> ideal. Freelinks will be better when a field directly in the "beacon" 
> tiddler lists all the title-variant strings that ought to point there. 
> Fingers crossed!
>
> Cheers, and wishing you all a season of resilience...
>
> -Springer
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b7e94710-631e-4b60-a1ff-3149d2b34871n%40googlegroups.com.

Reply via email to