On Wednesday, April 2, 2014 4:24:56 PM UTC+2, Stephan Hradek wrote:
>
> Ochmario!
>
> You know that I know that.
>

do I?

But you also know that (up to 5.0.9beta) macros are not global.
>

Javascript macros are global and the macro syntax is well known by users. 
 

> The main question is: Why is it || and not| in transclusion. In Linking we 
> have just have one |.
>
> So I got the idea of putting stuff between those 2 pipes.
>

I could see your intention. IMO the TW syntax is already too complicated to 
remember. 
I think, it doesn't make sense, to have 2 mechanisms, that look different, 
but do the same thing. It's only confusing. 

I think, for standard users we should keep the basic syntax simple. 

 - {{transclusion}}
 - {{transclusion!!withTextReference}}
 - {{transclusion||withTemplate}}

TWclassig did transclusion like <<tiddler "myTiddler##section">> and <<tiddler 
"myTiddler::slice">> ... So I think that's why we have 2 seperators here. 


we have a very similar syntax for filtered lists

 - {{{ [tag[mechanism]] }}}
 - {{{ [tag[mechanism]] ||TemplateTitle}}}


more configurable lists will use the <<list>> macro:

 - <<list filter:"[tag[myList]sort[title]]">> 
 - <<list filter:"[tag[myList]sort[title]]" template:abc>> 
 - <<list filter:"[tag[myList]sort[title]]" template:abc type:ul>> 

and if you need the full power and like it complicated use the <$list> 
widget.


I think at the moment, the syntax is relatively consistent. ... but if you 
have

 - {{DOM-Navigation|alternativ="Document_Object_Model"|Wikipedia}}

As a user I'd expect the following to work too. 

 - {{{ [tag[mechanism]] |param:"asdf"|TemplateTitle}}}


so where do we draw the line. I think it would be more useful to get 
"global macros" working. So standard users don't need to mess around with 
<$widgets>
I personally would like to have less syntax elements, that do the same 
thing or elements that look very similar, but do a completely different 
thing. 

just my 2€ents
have fun!
-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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 http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to