[tw5] Re: Transclude via template *field* - does it work in short form?

2019-07-07 Thread TonyM
Mat,

I am not suggesting we document every permutation of replaceable parameters but 
that most examples include at least one especially when the appropriate ones 
are limited. I also think a full macrocall version for macros also makes sense 
because it can contain all the key=value pairs for parameters so we can copy 
it, paste it and alter the parameters as needed. The macrocall version works 
well with most replaceable parameters. 

When there are different forms of a widget they could be spelt out in an 
example. 

The gap we need to address is examples with only literals do not demonstrate 
the best approach to coding.

When a designer creates a macro to capture the parameters to supply one or more 
widgets they open the design to allow the passing of parameters of most 
variables etc... 

Personally I am happy to raise the Push requests or documentation changes 
because it saves me time in the end.

Using the double curly braces raised in this thread only the $(var)$ and $var$ 
are workable and they only operate in macros. Also using {{||template}} is easy 
because it assumes currentTiddler so a good design pattern is to write most 
macros to operate on current Tiddler. If we can give users these hints in the 
doco I think we reduce the barriers to adoption. 

Personally I find most of the examples illustrative but I never use them 
because they contain named tiddlers and are unusable in any way except specific 
cases, Not in global macros or the view template.

regards
Tony

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/f7ae0f76-f732-45d7-ba07-2091b3a5d5f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Transclude via template *field* - does it work in short form?

2019-07-06 Thread Mat
TonyM wrote:
>
> That we also provide such examples.
> ...
> If for no other reason we have an example to copy to clipboard,
>

That would have to be a lot of extra examples if you want them directly 
useful. One with $direct$, another with $(indirect)$ a third with both, etc.

I'm not saying it's undoable or even a bad idea but we can't expect it for 
tiddlywiki.com (or who would do all the pr's?). IMO the *only* reasonable 
way to get a comprehensive, or at least a large, collection of such 
examples is TWederation that would allow for gradually accumulated and 
collectively contributed such examples. It is a huge difference between 
making a PR to github and to merely, say, tag a tiddler in your own 
connected wiki to allow it to be publicly accessible. (Because that is how 
sharing could be done.)

...any year now ;-)

<:-)

>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/09b1e3ff-319f-4cb7-afeb-616b158ef5a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Transclude via template *field* - does it work in short form?

2019-07-05 Thread TonyM
That we also provide such examples.

The one you show must be in a macro I believe, others work outside macros, 
in widgets and others do not.

If for not other reason we have an example to copy to clipboard,

Regards
Tony

On Saturday, July 6, 2019 at 9:51:40 AM UTC+10, Mat wrote:
>
> allmost every method or syntax documented has literals for tiddlername 
>> filenames etc.. And it is not always straitforward to add replaceable 
>> values.
>
>
> ...so are you saying the examples should be in the form
>
> {{$(tiddler)$!!$(field)$}}
>
> or what are you suggesting?
>
> <:-)
>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/491a2d1e-5bad-475e-b871-273a7282e078%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Transclude via template *field* - does it work in short form?

2019-07-05 Thread Mat

>
> allmost every method or syntax documented has literals for tiddlername 
> filenames etc.. And it is not always straitforward to add replaceable 
> values.


...so are you saying the examples should be in the form

{{$(tiddler)$!!$(field)$}}

or what are you suggesting?

<:-)

>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/2f2473e0-61b1-4dd3-bc97-56de0ba08191%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Transclude via template *field* - does it work in short form?

2019-07-05 Thread TonyM
Just an aside

I use the transclusions of field content a lot but of note I often have 
replaceable values so that I write reusable code. Ie the tiddler name or field 
name varies.

Now this is an ongoing frustration for me because allmost every method or 
syntax documented has literals for tiddlername filenames etc.. And it is not 
always straitforward to add replaceable values.

Regards
Tony 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/8c42b8cb-39e5-4c1e-be79-8d128d8c7d48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Transclude via template *field* - does it work in short form?

2019-07-05 Thread Mat
Thanks. I made a PR.

<:-)

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/26788a44-5499-4b03-8020-f1eb5e88ebcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Transclude via template *field* - does it work in short form?

2019-07-05 Thread PMario
 Hi, 

It doesn't. ... and I think it doesn't make sense either.

-


-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/fc478743-88ac-4cb2-8f8d-3acdaf515409%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.