When you say "squashed into a single blank" do you mean the appearance, or how many blanks you see when you open the tiddler?TW displays via HTML, and HTML will take an infinite number of spaces and squash them down to one. The old rule of two spaces after a period kind of died in the HTML world.
But if you edit the tiddler, the spaces are still there. Actually, when I ran your example, something weirder occurred. The spaces were replaced with exactly 17 spaces. I'm thinking it's some sort of unicode translation error that may vary by platform.I do not get the square brackets [ ], so that may be a platform thing too.The number on the end is expected. When you use action-create tiddler it generates a new number to make sure that all new tiddlers are unique.What browser and platform are you using?
Have fun,
Some mussings that may help your learning path.
Just to keep it clear {{Tiddler}}
Means transclude Tiddler, by default the text field. You could transclude the content of fieldname as well eg {{Tiddler!!fieldname}}
Whilst calling this transclusion we often refer to as "text reference" because it references other text "in line". Commonly used for storing a tiddller containing a state of something, it also allows you include one or a set of predifined actions into the actions parameter, and thus can work as reusable code/actions.
When you transclude something in something else it clearly gets replaced before the widget or wiki text is interpreted, and usualy itself interpreted before hand. So if you transcluded a tiddler containing a list widget in wikitext it would tranlate into a list as wikitext is want to, but not in a parameter, allowing the widget to act on the parameter.
You can also include actions inside
<$button parms>
Zero or more Action widgets as in your example
Button text or image
</$button>
But the above model with action widgets inside buttons supposed to be avoided, which I do not like as it can sometimes make it harder to read your own code since actions parameter points to somewhere else.
Enjoy
Tony
Enjoy
Tony
\define macroname()
<$action..
<$action..
<$action..
\end<$button actions=<<macroname>> > Text </$button>\define new-tiddler-fields()
fieldname1=value
fieldname2=value
...
\endI think you're saying that style A is better than Bwhere A is<$button actions = {{{Tiddler}}} > Text </$button>and B is<$button>Actions</$button>
To my eye A is better in the sense that less verbose = goodIt might be that B is better since you only have to read one tiddler codeto understand what's going on and if you have no intention of reusing theaction code it makes sense to put everything in one place.Is their a recommended best practise?Cheers/JoeCheers/JoeEnjoy
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+...@googlegroups.com.
To post to this group, send email to tiddl...@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/fb1e0e87-f79b-45e5-bf50-18520723950a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.