All, I’ve started playing around with procedures today and I have a couple of questions.
First, I’ve noticed that the system tag $:/tags/Global doesn’t work, but the system tag $:/tags/Global/View does. I must not be understanding the differences between the two.
Also, I’m having trouble passing tiddler fields as parameters when I do a procedure call. How do I do a procedure call using one of the tiddlers fields as a paremeter value? I’ve tried the following and none of the work:
date:{{!!mydate}}
date:{{{ [<currentTiddler>get[mydate]] }}}
date:<<thedate>> where thedate is defined as mydate with a let widget
It works fine when I used and explicit date in quotes such as date:“1886-05-20”, but not the field. What am I missing?
[Edited] by TW_Tones, to place backticks around code
For some reason if I tag the tiddler that contains my procedure with $:/tags/Global or $:/tags/Global/View/Body, the procedure isn’t found in the tiddler I’m trying to call it from.
Only tagging it with $:/tags/Global/View will it work.
Any suggestions on how to troubleshoot this? I’m working in my Kansas Railroad TW with copyrighted content so I can’t share it unfortunately.
Edit: I confirmed that it works properly at tiddlywiki.com. There’s something about my file that is amiss.
You can use the transclusion widget for every macro, procedure and function call now, which “unifies” the mechanism. But – The macrocall-widget works fine with procedures too.
\procedure test() some text
<$macrocall $name="test" />
Basically every thing which can be activated with <<something>> can be activated with a transclusion or a macrocall now. This gives us the possibility to update the existing TW UI without compatibility problems.
@pmario no that is not one of the overwritten shadows listed. $:/core/ui/PageTemplate is, but i reverted back to the original and no behavior changed. None of the other overwritten shadow tiddlers look as obvious as that one does.
Is there a debugging techinique that I could use to narrow this down?
I hope all can reach it. If not, please let me know. This is the first time I’ve used tiddlyhost.
I have a tiddler that contains the procedure called Date to String Conversion. It is currently tagged with $:/tags/Global. This is the failing state. If you change it to $:/tags/Global/View, then a date shows up in the Example Tiddler.
Hopefully, someone can take a look at this and help solve the problem. If nothing else, this allows me to showcase my Kansas Railroad TW without the copyrighted contains (which is approximately 1700 railroads).
By the way, there are many external images missing from this.