Re: [twdev] [TW5] Transclusion: {{tiddler||template}} - Why || and not |?

2014-04-03 Thread Stephan Hradek


Am Donnerstag, 3. April 2014 19:22:47 UTC+2 schrieb Jeremy Ruston:

 Hi Stephan

  Why do we have double pipes for seperating the tiddler title from the 
 template in the transclusion rule?

 Because I used the single pipe to separate 


??? Is there something missing? This sentence does not parse to well in my 
small german brain ;) 

-- 
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 tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] [TW5] Transclusion: {{tiddler||template}} - Why || and not |?

2014-04-03 Thread Jeremy Ruston
Sorry Stephan I pressed send too early - still drafting the rest of the
reply :)

Best wishes

Jeremy


On Thu, Apr 3, 2014 at 6:29 PM, Stephan Hradek stephan.hra...@gmail.comwrote:



 Am Donnerstag, 3. April 2014 19:22:47 UTC+2 schrieb Jeremy Ruston:

 Hi Stephan

  Why do we have double pipes for seperating the tiddler title from the
 template in the transclusion rule?

 Because I used the single pipe to separate


 ??? Is there something missing? This sentence does not parse to well in my
 small german brain ;)




-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
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 tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] [TW5] Transclusion: {{tiddler||template}} - Why || and not |?

2014-04-03 Thread Jeremy Ruston
Hi Stephan

 Why do we have double pipes for seperating the tiddler title from the
template in the transclusion rule?

Because originally I used the single pipe to separate a tooltip, copying
from the TWC image syntax which also marks a tooltip with a pipe. The idea
was to be able to apply a tooltip to an image:

{{MyImage|Another picture for you to look at}}

Then, later, I added the double pipe to separate templates. Later still, I
dropped the tooltip facility because I felt it wasn't relevant for most
transclusions.

I kept the double pipe because I thought it was much less brittle than
using a single pipe; it's tolerant of single pipes, for instance.

 Now imagine what could be possible had we a way to pass more parameters
like:

Given that the tiddler you're transcluding is a macro definition and
associated macro call, this looks a lot like a use-case for global macros.

The rough plan there is to allow macros to be included with an `\include
tiddlertitle` pragma; then the rest of the tiddler would be able to
access any macros defined in that tiddler.

Then there'd be a mechanism to include all tiddlers that are tagged as
global macros within the page macros tiddler.

Best wishes

Jeremy




On Thu, Apr 3, 2014 at 6:22 PM, Jeremy Ruston jeremy.rus...@gmail.comwrote:

 Hi Stephan

  Why do we have double pipes for seperating the tiddler title from the
 template in the transclusion rule?

 Because I used the single pipe to separate


 On Wed, Apr 2, 2014 at 2:06 PM, Stephan Hradek 
 stephan.hra...@gmail.comwrote:

 Mainly @Jeremy I guess.

 Why do we have double pipes for seperating the tiddler title from the
 template in the transclusion rule?

 Would this be a nice place to put transclusion parameters?

 For example: I have a template tiddler Wikipedia which looks like this:
 ___

 \define Wikipedia(title)
 a href=http://de.wikipedia.org/wiki/$title$; target=_blank$view
 field=title//a
 \end
 $macrocall $name=Wikipedia title={{!!title}}/
 ___

 At the moment I can write: {{JavaScript||Wikipedia}}, but no chance to do
 {{DOM-Navigation||Wikipedia}} as the proper title is
 Document_Object_Model.

 Now imagine what could be possible had we a way to pass more parameters
 like:

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


  --
 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 tiddlywikidev+unsubscr...@googlegroups.com.
 To post to this group, send email to tiddlywikidev@googlegroups.com.
 Visit this group at http://groups.google.com/group/tiddlywikidev.
 For more options, visit https://groups.google.com/d/optout.




 --
 Jeremy Ruston
 mailto:jeremy.rus...@gmail.com




-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
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 tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] [TW5] Transclusion: {{tiddler||template}} - Why || and not |?

2014-04-03 Thread Stephan Hradek


Am Donnerstag, 3. April 2014 19:33:14 UTC+2 schrieb Jeremy Ruston:

 Given that the tiddler you're transcluding is a macro definition and 
 associated macro call, this looks a lot like a use-case for global macros. 

 The rough plan there is to allow macros to be included with an `\include 
 tiddlertitle` pragma; then the rest of the tiddler would be able to 
 access any macros defined in that tiddler.


Still you would need to add something to any tiddler you want to use the 
macro in. Not so much difference to adding the full maco definition except 
for the fact that it's fewer text and easier to change.
 

 Then there'd be a mechanism to include all tiddlers that are tagged as 
 global macros within the page macros tiddler.


You mean similar to $:/tags/stylesheet we'll have $:/tags/globalmacro 
and all of them will readily be available in every tiddler? That would be 
good.

-- 
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 tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] [TW5] Transclusion: {{tiddler||template}} - Why || and not |?

2014-04-03 Thread Jeremy Ruston
Hi Stephan

Am Donnerstag, 3. April 2014 19:33:14 UTC+2 schrieb Jeremy Ruston:

 Given that the tiddler you're transcluding is a macro definition and
 associated macro call, this looks a lot like a use-case for global macros.

 The rough plan there is to allow macros to be included with an `\include
 tiddlertitle` pragma; then the rest of the tiddler would be able to
 access any macros defined in that tiddler.


 Still you would need to add something to any tiddler you want to use the
 macro in.


Yes, unless you tagged the tiddler $:/tags/macro.


 Not so much difference to adding the full maco definition except for the
 fact that it's fewer text and easier to change.


 Then there'd be a mechanism to include all tiddlers that are tagged as
 global macros within the page macros tiddler.


 You mean similar to $:/tags/stylesheet we'll have $:/tags/globalmacro
 and all of them will readily be available in every tiddler? That would be
 good.


That's the idea, yes,

Best wishes

Jeremy.




-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
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 tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.