Glad the problem was solved so elegantly!

Since I have a similar interest of making tiddlers of words I find 
interesting, I will take the opportunity to share a macro I use to easily 
look up the meanings of any special words.

I make the New Interesting Words tiddler using a Template, and the template 
contains the line:
<<dictionary {{!!title}}>>
The tiddler's title is simply the word itself, for example: *avarice*

In your case, the template line could be replaced with:

<$macrocall $name="dictionary" word={{{ [<currentTiddler>removeprefix[Word: 
]] }}} />

In a tiddler tagged with $:/tags/Macro , I have defined the *dictionary* 
macro as follows:

\define dataLinkCreator(data-file index word)
\rules except wikilink
<$wikify name="input" text="{{$data-file$##$index$}}$word$">
<a href=<<input>> target="_blank">$index$</a>
</$wikify>
\end

\define dictionary(word datafile:"$:/_data/dictionaryLinks")
<small>
<$list filter="[[$datafile$]indexes[]]" variable="index">
<$macrocall $name="dataLinkCreator" data-file="$datafile$" index=<<index>> 
word=$word$/>
</$list>
</small>
\end



In a tiddler titled: *$:/_data/dictionaryLinks*
And with its Content Type set to : *application/x-tiddler-dictionary*
I have the following:

Dictionary.com: https://www.dictionary.com/browse/
The Free Dict.: http://www.thefreedictionary.com/
Merrium-Webster: https://www.merriam-webster.com/dictionary/
Collins: https://www.collinsdictionary.com/dictionary/english/
Oxford: https://en.oxforddictionaries.com/definition/
Chambers: http://chambers.co.uk/search/?title=21st&query=
OneLook: http://www.onelook.com/?w=
American Heritage:https://ahdictionary.com/word/search.html?q=
Wikipedia: https://en.wikipedia.org/wiki/
Wiktionary: https://en.wiktionary.org/wiki/
Etymology: http://www.etymonline.com/index.php?term=
Google: https://www.google.com/#q=
DuckDuckGo: https://duckduckgo.com/html/?q=
Yandex: https://www.yandex.com/search/?lr=10619&text=
Baidu: http://www.baidu.com/s?wd=
Qwant: https://www.qwant.com/?q=


Thus, if you had a tiddler named: *Word: avarice*
And that tiddler had in its text: *<$macrocall $name="dictionary" word={{{ 
[<currentTiddler>removeprefix[Word: ]] }}} />*

This line of links would appear in the tiddler: 

*American Heritage <https://ahdictionary.com/word/search.html?q=avarice>* * 
Baidu <http://www.baidu.com/s?wd=avarice>* *Chambers 
<http://chambers.co.uk/search/?title=21st&query=avarice>* *Collins 
<https://www.collinsdictionary.com/dictionary/english/avarice>* *Dictionary.com 
<https://www.dictionary.com/browse/avarice>* *DuckDuckGo 
<https://duckduckgo.com/html/?q=avarice>* * Etymology 
<http://www.etymonline.com/index.php?term=avarice>* *Google 
<https://www.google.com/#q=avarice>* *Merrium-Webster 
<https://www.merriam-webster.com/dictionary/avarice>* * OneLook 
<http://www.onelook.com/?w=avarice>* * Oxford 
<https://en.oxforddictionaries.com/definition/avarice>* *Qwant 
<https://www.qwant.com/?q=avarice>* *The Free Dict. 
<http://www.thefreedictionary.com/avarice>* *Wikipedia 
<https://en.wikipedia.org/wiki/avarice>* *Wiktionary 
<https://en.wiktionary.org/wiki/avarice>* *Yandex 
<https://www.yandex.com/search/?lr=10619&text=avarice>* 

Of course you could tweak the macro to do the removal of the prefix, so 
that you can simply use: *<<dictionary {{!!title}}>>*
However that would mean the macro could not be used elsewhere for a set of 
links for a word, like <<dictionary tiddlywiki>>

Hope you find this useful.

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3b7724b2-80fe-4fcf-bbdf-aeedd9a9a0a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to