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 <[email protected]>wrote:
> 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
> <[email protected]>wrote:
>
>> 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 [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.
>>
>
>
>
> --
> Jeremy Ruston
> mailto:[email protected]
>
--
Jeremy Ruston
mailto:[email protected]
--
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.