[tw] Re: [TW5] list filter; How access particular element and particular output format

2016-05-27 Thread 'Mark S.' via TiddlyWiki

I think that my macros fulfilled your requirements. If not, perhaps the 
example data and the expected output could be refined.


I.e three different macros (presumably using filters) but where each macros 
> deals with the input as multiple items and where the output is in the same 
> "format" regardless if it is a simplestring or a [[brackedted and space 
> separated item]].


>
>

-- 
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/71a12ee0-5cdd-4011-be39-a300d685a845%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] list filter; How access particular element and particular output format

2016-05-27 Thread Jeremy Ruston
Hi Mat

> Makes sense. But what do you think about this approach; update the original + 
> make a new post to (only) notify about the updated original. IMO it makes 
> sense to try and save new readers of the thread from reading the erroneous 
> stuff.

Yes, that's exactly the right approach: make sure that the archive reads 
properly for readers in the future, while also catering for people reading now.

Best wishes

Jeremy

> 
> <:-)
> -- 
> 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/3ba403ad-7e36-4635-af49-7fdeb0393d43%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/AE34009F-B1B9-408E-B060-629F6B75D20F%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] list filter; How access particular element and particular output format

2016-05-27 Thread Mat
c pa and Mark, I'm afraid my question was still poorly phrased (really 
sorry!) but I think Mark figured out most of my intentions. Will get back 
on details (in a few days) but big thanks!

I've also updated the original post to include this:

I.e three different macros (presumably using filters) but where each macros 
> deals with the input as multiple items and where the output is in the same 
> "format" regardless if it is a simplestring or a [[brackedted and space 
> separated item]].



<:-) 

-- 
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/411943a1-400c-4fd6-929e-21b63eebc389%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] list filter; How access particular element and particular output format

2016-05-27 Thread Mat
On Friday, May 27, 2016 at 5:32:15 PM UTC+2, Jeremy Ruston wrote:
>
> Do remember that many of us read this list via email, so it's much better 
> to repost, and not rely on people visiting the forum directly.
>

Makes sense. But what do you think about this approach; update the original 
+ make a new post to (only) notify about the updated original. IMO it makes 
sense to try and save new readers of the thread from reading the erroneous 
stuff.

<:-)

-- 
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/3ba403ad-7e36-4635-af49-7fdeb0393d43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] list filter; How access particular element and particular output format

2016-05-27 Thread 'Mark S.' via TiddlyWiki
Hi Mat,

I'm sure this isn't what you want, but maybe this will help refine the 
question. If you want 3 different kinds of output, then you need 3 
different macros.

\define mymacro1(input) <$list filter="$input$ +[nth[2]]">[[<$view 
field=title/>]]

\define mymacro2(input) <$list filter="$input$ +[nth[2]]"><$view field=title
/>

\define mymacro3(input) <$list filter="$input$ +[nth[2]]">


<>  

<>


<>  

<>



<>  

<>


<>  

<>





On Friday, May 27, 2016 at 5:16:35 AM UTC-7, Mat wrote:
>
> <> and  <>
>
> How do I access bb and [[bb bb]] only if I want the result to be:
>
> 1a) bb  andee ee
> 1b) bb   andee ee
> 1c) [[bb]]   and[[ee ee]]
>
>
> Basic question... but I trip on this constantly and get mixed variants 
> (e.g bb but [[ee ee]], or a monolithic result that includes the whole 
> parameter argument).
>
> I think a comprehensive and comparative answer+examples on this belongs in 
> the docs. (But it's not a hypothetical question, I'd really appreciate the 
> answer).
>
> Anyone brave enough? I'm guessing there are only a handful who even *can* 
> answer it. Also partial answers are welcome, of course.
>
> [Edit The post was clarified after PMarios reply just below.]
>
>
> <:-)
>

-- 
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/783f72d7-8f3d-4efc-b338-5d858d040a4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] list filter; How access particular element and particular output format

2016-05-27 Thread 'c pa' via TiddlyWiki
\define mymacro(first_parameter second_parameter third_parameter)

This is the second parameter: $second_parameter$

\end

\define mymacro2(first_parameter second_parameter third_parameter)

This is the second component of the second parameter: <$set name="part" 
filter="$second_parameter$ +[last[]]">
<>


\end

\define mymacro3(first_parameter second_parameter third_parameter)

This is a link to the second component of the second parameter: <$set 
name="part" filter="$second_parameter$ +[last[]]">
<$link to=<> > <> 


\end

<$macrocall $name="mymacro" first_parameter="aa" second_parameter="bb gg" 
third_parameter="cc" />

<$macrocall $name="mymacro2" first_parameter="aa" second_parameter="bb gg" 
third_parameter="cc" />


<$macrocall $name="mymacro3" first_parameter="aa" second_parameter="bb gg" 
third_parameter="cc" />


-- 
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/0f29ceb0-6e7f-464b-a6a9-76a43ad68c7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] list filter; How access particular element and particular output format

2016-05-27 Thread Jeremy Ruston
Do remember that many of us read this list via email, so it's much better to 
repost, and not rely on people visiting the forum directly.

Best wishes

Jeremy

--
Jeremy Ruston


> On 27 May 2016, at 09:14, Mat  wrote:
> 
> Thanks for input. I rephrased the question so hope it makes sense 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/36c28287-71cc-44d8-9ed6-75539d67bd0f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/F3C8AF06-0926-43BB-96CA-77C8F1DE16BB%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] list filter; How access particular element and particular output format

2016-05-27 Thread Mat
Thanks for input. I rephrased the question so hope it makes sense 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/36c28287-71cc-44d8-9ed6-75539d67bd0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] list filter; How access particular element and particular output format

2016-05-27 Thread PMario
Hi Mat, 
I don't understand your question. ... 

If you use [[bb bb]] in your second example ... there is no bb so you can't 
access it.
-m

-- 
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/1b5da410-d2a5-4a44-9f72-3e5f7e0d5f83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.