Fellow cj suggests <https://groups.google.com/g/tiddlywiki/c/Vt3CSHxnuc0> that
we should be able to use transclusions with templates to represent special
links. That is a very interesting idea because it would mean you can create
a link with custom functionality and custom appearance using short syntax
like {{this||template}}
Now, that still requires an *explicit *template argument. I hope we could
also create a *default *template (so it doesn't even have to be stated)
that tests things conditionally. E.g {{argument}} tiddler is tagged Foo
then the transclusion shows something whereas if it is tagged Bar then it
shows something else.
So, for the default transclusion, i.e what instructs to "show the text
field", is there a *template* tiddler somewhere? Or is this hard coded,
perhaps in:
$:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js
<https://tiddlywiki.com/prerelease/#%24%3A%2Fcore%2Fmodules%2Fparsers%2Fwikiparser%2Frules%2Ffilteredtranscludeblock.js>
Actually...
If this could somehow be achived direcly with [[bracket link]] syntax,
that'd be even better. I.e you type [[links]] as always but there's a *template
*to control how/what the rendered result is. Is a template involved in this
that, so to say, makes it from [[this]] into *this* ?
(E.g a full blown LinkWidget syntax is not practical in some cases, e.g
during live note taking or when the typing must not disturb ones
thoughts... which, btw, was the original purpose with wikitext, I believe)
Thank you.
<:-)
--
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/d2c1d8d4-d67c-46ca-93d4-cef0af67645fn%40googlegroups.com.