This seems to do it:
---
{{!!description}}
Variable: {{!!variablelatex}}
Unit: {{!!unitlatex}}
<$list filter="[title<currentTiddler>listed[vars]tag[Equation]]
-[title<currentTiddler>] +[limit[1]]">
<h2>Used in Equations</h2>
</$list>
<$list filter="[title<currentTiddler>listed[vars]tag[Equation]]
-[title<currentTiddler>]">
<$link><$transclude field="title"/></$link>
<$transclude field="equation"/>
</$list>
I had to look up Skoda. I like they have a whole page for cyclists.
HTH
Mark
On Wednesday, May 3, 2017 at 5:12:00 AM UTC-7, Stephen Wilson wrote:
>
> Extension Question:
>
> template variable searches the equation field of tiddlers tagged equation
> and then returns values of fields which contain the variable of the tidler
> in which the template is called.
>
> Can this be simplified using the new and shiny vars field?
>
> I'm just trying to head off situations in which this filter will cause
> problems where the same letter is used for different values, e.g h for
> height and h for specific enthalpy.
>
> Stephen
>
> \define makePattern()
> ^<.*?(?:=).*?(?:=).*?(?:\b$(var)$\b)
> \end
>
> {{!!description}}
>
> Variable: {{!!variablelatex}}
>
> Unit: {{!!unitlatex}}
>
> <$set name="var" value={{!!variable}}>
> <$set name="varpattern" value=<<makePattern>>>
> <$list filter="[tag[Equation]regexp:equation<varpattern>limit[1]]">
> <h2>Used in Equations</h2>
> </$list>
> </$set>
> </$set>
> <$set name="var" value={{!!variable}}>
> <$set name="varpattern" value=<<makePattern>>>
> <$list filter="[tag[Equation]regexp:equation<varpattern>]">
> <$link><$transclude field="title"/></$link>
> <$transclude field="equation"/>
> </$list>
> </$set>
> </$set>
>
>
>
--
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/67fac147-6006-4827-83f4-cffe5001c13a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.