Thank you Eric!

Very helpful. My emphasis below.

Josiah

@TiddlyTweeter wrote:
>>
>> ... The "bracketing thing" in TW seems unusual... I get confused because 
>> it almost behaves as if it were* part *of the "code"...
>>
>  
Eric Shulman replied:

> That is a good way to describe it.  The bracketing IS part of the code.  
> It tells the parser what *type* of reference it contains:
>
> * square brackets contain literal tiddler title references (creates a link)
> * angle brackets contain macro invocations (or variable references)
> * curly braces contain tiddler transclusion references
>
> There are two different contexts in which these brackets occur:
> * in WikiText ("normal content")
> * in filters (i.e., as parameters to widgets or macros)
>
> In WikiText, the brackets are all DOUBLED.  This is to avoid confusion 
> with other uses that may occur in normal text.  In particular, single angle 
> brackets are used for normal HTML syntax, so macro invocation uses two 
> angle brackets.  Similarly, though not as technically required, single 
> square brackets and single curly braces are also doubled to avoid mistaken 
> parsing of normal text content containing brackets as if they are macros or 
> transclusions.
>
> Similar to WikiText, the brackets in filter syntax depend upon the type 
> of reference the contain.  However, the brackets do not need to be doubled, 
> since within the filter there is no potential conflict with other usage.  
> Thus:
>
> * SINGLE square brackets contain literal text values
> * SINGLE angle brackets contain macro or variable references
> * SINGLE curly braces contain tiddler transclusion references
>
> Note: filters also use a pair of square brackets to contain separate 
> filter expressions, for example:
>    filter="[tag[foo]] -[tag[bar]]"
>

-- 
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/d3a0454f-c547-4fe0-acd6-7f9511b9e8a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to