For example, why does this not work?<$button><$action-setfield$tiddler="$:/TLS/exhibition_id"$value={{!!exhibition_id}}/><!--append the exhibition_id to the exhibition id field in each artwork--><$list filter="[tag[Mark]]"><$action-setfield$field="exhibition_id"$value=<<TLSconcatenate {{!!exhibition_id}} {{$:/TLS/exhibition_id}}>>/></$list>Link Artworks to Exhibition</$button>
The result is the string {{!!exhibition_id}} {{$:/TLS/exhibition_id}} stored in the exhibition_id field of each artwork selected and not the transcluded values.TLSconcatenate is a simple macro to concatenate two strings\define TLSconcatenate(head tail) $head$$tail$
<$action-setfield
$field="exhibition_id"
$value={{{ [{!!exhibition_id}addsuffix{$:/TLS/exhibition_id}] }}}
/>
However, within TiddlyWiki *filters*, there is no need doubling the brackets, as HTML is not allowed *within* the filter, so only single <variableName> is used.
...and why I don't have to wrap <fieldname> with [<fieldname>] before giving it to split?
Think of the brackets in filters as part of the operand itself rather than a "container" for the operand. The type of bracket indicates the type of operand being used:
use [...] for literal values, e.g., [texthere]
use {...} for field references, e.g., {!!fieldname}
use <...> for variables e.g. <currentTiddler>
Thus, to split the literal text, "sometext", you could write:
[title[sometext]splitbefore[t]removesuffix[t]]
you would get "some" as a result.
If the value "sometext" is stored in a field named "somefield" in the current tiddler, you could write:
[{!!somefield}splitbefore[t]removesuffix[t]]
and, if the value "sometext" is stored in a variable named "somevariable", you could write:
[<somevariable>splitbefore[t]removesuffix[t]]
As a slightly more complex example, suppose the value to split on was also stored in a variable. Then you could write:
[<somevariable>splitbefore<othervariable>removesuffix<othervariable>]
RegardsTonyaddprefix[ ]join[ ]
addsuffix[ ]
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/jQpUdgQQQWc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/11241312-f1b5-499e-828e-b8a1d7f1a7ebo%40googlegroups.com.
-- -------------------------------- Dr Bob Jansen 122 Cameron St, Rockdale NSW 2216, Australia Ph (Korea): +82 10-4494-0328 Ph (Australia) +61 414 297 448 Resume: http://au.linkedin.com/in/bobjan Skype: bobjtls KakaoTalk: bobjtls http://cultconv.com In line with the Australian anti-spam legislation, if you wish to receive no further email from me, please send me an email with the subject "No Spam"
Oh,One big leap in my understanding occurred when I learned this...
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4cc4b26e-250b-4c7f-8590-fc0ae5dd7db0n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f62ee094-6404-450c-8d7b-e13b7f7982e9n%40googlegroups.com.
The tiddlywiki wiki entry on Variables in Wikitext has the example,<$set name=animal value=zebra><<animal>></$set>
Your cheatsheet, which I know you passed to me before it has been reviewed, has a similar example<$set name='var' value='Foo'><<taggingByVar>></$set>
Note one difference, the use of quotes around the variable name and value attributes. So which is it, are quotes required or not? Do quotes matter? I would assume quotes do matter and if so why does the official documentation leave them out.
I also assume the macro call should read <<taggingby var>> and this is just a mistype.
But this hows that even such a simple statement's documentation is inconsistent.
Now, if quotes don't matter I assume it is because no values have spaces?
But this is an exception rule and as we all know one exception breeds other exceptions and soon we have so many exceptions that the only real exception is the initial idea. In all other programming languages that I know of, strings are quote delimited. A simple lesson learned once and applied all over the place.
Your cheatsheet on the <VAR> element states"Does only work as a filter variable, inside or outside a macro:"As something is either inside or outside of a macro, this should always work as a filter variable then cause it can't be in any other state so the statement doesn't make sense.
Another example, concatenation of strings. Search for concatenate in TW documentation and you get the tiddler, Concatenating text and variables using macro substitution, which categorically states that the only way to do this is to use a macro. So I used a macro. Could not get the macro to function as expected inside a $list loop. You and Eric explained that it can not be used this was inside a $list loop but where does it state that in the documentation?
Many of the examples in the TW documentation use what appears to be a macrocall of some sort to perform the example. So you cannot see the actual statements used, you can only see the result of the macrocall. Not very helpful really is it. Why not just use simple statements that anyone can follow after all we are after a real example to see how things are done.
As for referencing values inside tiddlers, it seems there are many possibilities involving various configurations of quotes/brackets/braces/underscores. Why is there not a single method of referencing content?
Eric, in an earlier email, described it as the calling context's problem to work out what is required. Yet in all other programming languages that I have used over the 40+ years of my programming, referencing a variable is always the same in a particular language, it is not dependent on the calling content, nor is it dependent on how it is being used, it is defined in the grammar of the language.
Now maybe this is an attribute of web applications. Maybe it is the result of organic development as Atro states. Whatever it is, it is bloody difficult to grasp and so becomes very frustrating.
My development progress at this stage is a single wikitext statement at a time involving much input from the helpful people on this group.Each time, I learn a bit more but applying that learning quickly fails with the next statement.Your email to Atro and I asks, "perhaps you can't see the logic yet"
Too right! I don't see any logic yet.
I have studied your cheatsheet and the references it makes to others' work as well as various emails from Eric and the Tiddlywiki documentation and I still don't see any logic in it. Perusing the emails on this list indicates I am not the only one and there seems to be some recognition that this is a real problem for TW uptake.
Someone earlier suggested I contribute to the documentation but I don't understand enough to be able to do that. Any contribution I could make would, right now, be wrong, misleading and totally misunderstanding of the design philosophy behind TW.
I am continuing to use TW for my web app but at some stage will have to make the decision as to whether it is worth my time and effort to continue. I feel TW has a great potential but believe the development side needs to be addressed.
I am nearly 60% way through another TW app that simple involves my editing content and this is working well and is getting welcome acceptance. http://cultconv.com/English/Conversations/MacQueen_Mary/TiddlyWiki/index.html. FYI, for this application, I have created a Filemaker Pro database into which I type the various content elements and then generate the required Wikitext which I then cut and past into the appropriate tiddler. This has proved very efficient over typing directly into TW.
---------------Dr Bob JansenThe Cultural Conversations project Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History122 Cameron St, Rockdale NSW 2216, Australia Ph (Korea): +82 10-4494-0328 Ph (Australia) +61 414 297 448 Resume: http://au.linkedin.com/in/bobjan Skype: bobjtls KakaoTalk: bobjtls
In line with the Australian anti-spam legislation, if you wish to receive no further email from me, please send me an email with the subject "No Spam"--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/jQpUdgQQQWc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fc76e5e6-c223-4fa8-95d0-2e3a0fb47222o%40googlegroups.com.
Please accept this reply in the spirit it is intended, as constructive input into the issue of learning TW wikitext and not as an attack on anyone, TW or this group.
Your cheatsheet, which I know you passed to me before it has been reviewed, has a similar example<$set name='var' value='Foo'><<taggingByVar>></$set>
Note one difference, the use of quotes around the variable name and value attributes. So which is it, are quotes required or not? Do quotes matter? I would assume quotes do matter and if so why does the official documentation leave them out. I also assume the macro call should read <<taggingby var>> and this is just a mistype. But this hows that even such a simple statement's documentation is inconsistent. Now, if quotes don't matter I assume it is because no values have spaces? But this is an exception rule and as we all know one exception breeds other exceptions and soon we have so many exceptions that the only real exception is the initial idea. In all other programming languages that I know of, strings are quote delimited. A simple lesson learned once and applied all over the place.
Your cheatsheet on the <VAR> element states"Does only work as a filter variable, inside or outside a macro:"As something is either inside or outside of a macro, this should always work as a filter variable then cause it can't be in any other state so the statement doesn't make sense.
Another example, concatenation of strings. Search for concatenate in TW documentation and you get the tiddler, Concatenating text and variables using macro substitution, which categorically states that the only way to do this is to use a macro. So I used a macro. Could not get the macro to function as expected inside a $list loop. You and Eric explained that it can not be used this was inside a $list loop but where does it state that in the documentation?
Many of the examples in the TW documentation use what appears to be a macrocall of some sort to perform the example. So you cannot see the actual statements used, you can only see the result of the macrocall. Not very helpful really is it. Why not just use simple statements that anyone can follow after all we are after a real example to see how things are done.
As for referencing values inside tiddlers, it seems there are many possibilities involving various configurations of quotes/brackets/braces/underscores. Why is there not a single method of referencing content? Eric, in an earlier email, described it as the calling context's problem to work out what is required. Yet in all other programming languages that I have used over the 40+ years of my programming, referencing a variable is always the same in a particular language, it is not dependent on the calling content, nor is it dependent on how it is being used, it is defined in the grammar of the language. Now maybe this is an attribute of web applications. Maybe it is the result of organic development as Atro states. Whatever it is, it is bloody difficult to grasp and so becomes very frustrating.
My development progress at this stage is a single wikitext statement at a time involving much input from the helpful people on this group.Each time, I learn a bit more but applying that learning quickly fails with the next statement.
Your email to Atro and I asks, "perhaps you can't see the logic yet"Too right! I don't see any logic yet. I have studied your cheatsheet and the references it makes to others' work as well as various emails from Eric and the Tiddlywiki documentation and I still don't see any logic in it. Perusing the emails on this list indicates I am not the only one and there seems to be some recognition that this is a real problem for TW uptake.
Someone earlier suggested I contribute to the documentation but I don't understand enough to be able to do that. Any contribution I could make would, right now, be wrong, misleading and totally misunderstanding of the design philosophy behind TW.I am continuing to use TW for my web app but at some stage will have to make the decision as to whether it is worth my time and effort to continue. I feel TW has a great potential but believe the development side needs to be addressed.I am nearly 60% way through another TW app that simple involves my editing content and this is working well and is getting welcome acceptance. http://cultconv.com/English/Conversations/MacQueen_Mary/TiddlyWiki/index.html. FYI, for this application, I have created a Filemaker Pro database into which I type the various content elements and then generate the required Wikitext which I then cut and past into the appropriate tiddler. This has proved very efficient over typing directly into TW.
Hope this helps. Happy to discuss further and do what I can to address these concerns/issues.bobj
<<macro tiddlername subtiddler>>Many of the examples in the TW documentation use what appears to be a macrocall of some sort to perform the example. So you cannot see the actual statements used, you can only see the result of the macrocall. Not very helpful really is it. Why not just use simple statements that anyone can follow after all we are after a real example to see how things are done.