On Thursday, February 18, 2016 at 2:13:09 PM UTC-8, stevesuny wrote:
>
> I am exploring the use of the next operator, and want to build "next" and
> "previous" buttons using tag lists etc.
>
> Putting this code in the Tuesday tiddler http://tiddlywiki.com/#Tuesday
> in Tiddlywiki.com the first line returns "Wednesday" and the second,
> nothing.
>
> 1 <<list-links filter:"[[Tuesday]next[Days of the Week]]">>
> 2 <<list-links filter:"[[{{!!title}}]next[Days of the Week]]">>
>
> I have trouble with syntax getting the {{!!title}} to work when embedded
> in code like this. What am I missing?
>
You have too many brackets and braces... within filter syntax, there are
three ways to specify a value, using brackets, chevrons and braces, like
this:
[Tuesday] is a constant literal text value
<variable> retrieves the value of a variable currently in scope
{TextReference} retrieves the value from a text reference
Think of the brackets, chevrons and braces as different kinds of quotes
that indicate how the enclosed content should be handled. This is similar
to the way wikitext syntax uses [[...]] for literal links,
{{TextReference}} for transclusion, and <<macroname>> for variables/macros.
Note however that the filter syntax uses *single* brackets, chevrons, and
braces, while the wikitext syntax uses *doubled* brackets, chevrons, and
braces.
Thus, starting with your first example:
<<list-links filter:"[[Tuesday]next[Days of the Week]]">>
replace the [Tuesday] with {!!title} to use a TextReference to the title of
the current tiddler:
<<list-links filter:"[{!!title}next[Days of the Week]]">>
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
InsideTiddlyWiki: The Missing Manuals
--
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/1634611a-3f70-4c8f-ab69-28e0121df045%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.