Le lundi 9 mars 2020 17:32:38 UTC+1, Mat a écrit :
>
> OK, so maybe this:
>
>
>
> \define mymacro() [[user|$(nom)$]]
>
> ....
> <$list filter="[tag[Annuaire]sort[title]]">
> <tr>
> <td><$link/></td>
> <$set name=nom filter="[{!!url}removeprefix[https://forum.tiddlywiki.fr/u/ 
> <https://forum.tiddlywiki.fr/u/Sylvain>]]>
> <$set name=prettylink value=<<mymacro>>>
> <td><<prettylink>></td>
> </$set>
> </$set>
> </tr>
> </$list>
> ...
>
> <:-)
>

Nope, sorry, it gives me error about <$set and don't execute it, also it 
seem to don't understand removeprefix.

And I guess in your example user is not a variable, but it's my !!forum 
user in my example, so it's dynamic to and I have no !!url field, bref.. ;-)

At the moment, I can just return URL like this (but not like I want) :

\define link(site, user)
$site$$user$
\end

\define url(site:"https://forum.tiddlywiki.fr/u/";, user)
<$macrocall $name="link" site="$site$" user="$user$" />
\end


<$list filter="[tag[Annuaire]sort[title]]">
<tr>
<td><$link/></td>
<td><$macrocall $name="url" user={{!!forum}} /></td>
</tr>
</$list>

But it's not my first intention. Have to put a file to share and demo.
Sylvain

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c560430e-1753-4e4b-8f48-4f6d24732b29%40googlegroups.com.

Reply via email to