<$list filter='[tag[Word]butlast[]removeprefix[Word: ]]'><$link><$view field="title"/></$link>,</$list>
<$list filter='[tag[Word]last[]removeprefix[Word: ]]'><$link><$view field="title"/></$link></$list><$list filter='[tag[Word]]' >
<$list filter='[all[current]removeprefix[Word: ]]' variable="word"><$link><<word>></$link>,</$list>
</$list>I am trying to display a comma-delimited list of tiddlers tagged with "Word" but would like each link to not include the "Word: " prefix, yet still link to the appropriate tiddler.
<$list filter='[tag[Word]butlast[]removeprefix[Word: ]]'><$link><$view field="title"/></$link>,</$list>
<$list filter='[tag[Word]last[]removeprefix[Word: ]]'><$link><$view field="title"/></$link></$list>
<$list filter='[tag[Word]butlast[]]'><$link>{{{ [<currentTiddler>removeprefix[Word: ]] }}}</$link>,</$list><$list filter='[tag[Word]last[]]'> <$link>{{{ [<currentTiddler>removeprefix[Word: ]] }}}</$link> </$list>Instead of removing the "Word:" prefix in the main <$list> widget, just match the desired titles as-is, so that the <$link> widget will get the correct tiddler title for *navigation* purposes.Then, separately apply the removeprefix["Word:" ] to the currentTiddler using an 'inline filter' (the triple curly brace syntax) to produce the desired text for *display* purposes.Something like this:<$list filter='[tag[Word]butlast[]]'><$link>{{{ [<currentTiddler>removeprefix[Word: ]] }}}</$link>,</$list><$list filter='[tag[Word]last[]]'> <$link>{{{ [<currentTiddler>removeprefix[Word: ]] }}}</$link> </$list>
<$list filter='[tag[word]butlast[]]'><$link><$text text={{{ [<currentTiddler>removeprefix[Word: ]] }}}/></$link>,</$list>
<$list filter='[tag[word]last[]]'> <$link><$text text={{{ [<currentTiddler>removeprefix[Word: ]] }}}/></$link> </$list>
This should work now.
<<dictionary {{!!title}}>><$macrocall $name="dictionary" word={{{ [<currentTiddler>removeprefix[Word: ]] }}} />\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
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=
American Heritage Baidu Chambers Collins Dictionary.com DuckDuckGo Etymology Google Merrium-Webster OneLook Oxford Qwant The Free Dict. Wikipedia Wiktionary Yandex
d avarice
dd avarice
t avarice
e avarice