<a href="https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1={{!!tracking_number}}">USPS Tracking</a><a href="https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=<$transclude field="tracking_number" />">USPS Tracking</a>[[USPS Tracking|https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=<$transclude tiddler=<<item>> field="tracking_number" />]]One way to look at what you tried to do is give a parameter that was made of two parameters a literal and transclusion in the same parameter in this case href.
Imagin if you were tiddlywiki yourself. First you need to evaluate what the result of the transclusion is then remember it was part of the same value as the literal string then combine them and only then use the result as the value to pass as a parameter.
This is like Eisenstein sitting on a light beam. When you think about it from tiddlywikis's perspective you are asking too much. You should take responcibility for concatenation of disparit values before you ask tiddlywiki to consider it a single value for a parameter.
Does this make sense to you?
regards
Tony
item is being set for the loop, as the iterator. So I tried this and it didn't work...<a href={{{[[https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]addsuffix{<item>!!tracking_number}]}}}>USPS Tracking</a>For example parmname={{!!fieldname}} not only transcludes the value found in fieldname but it also uses the same curly braces to delimit the beginning and end of the parameter. Imagin the fieldname value contained spaces or quotes or tiddler titles with square braces etc. If it did not also use the braces to delimit the beginning and end of the parameter you could be in trouble.
Then you asked it to understand parm="literal{{!!fieldname}}", you were asking too much. As I did until I sat on tiddlywiki shoulder and considered what I was asking from tiddlywiki perspective.
Regards
Tony
When you use the triple curly braces the result is returned between the braces. It is not necessarily suitable for filters that generate a list because the whole list is passed as a single parameter.
I think this a case for putting that filter in to a list widget and generate multiple a tags. One for each result of the filter.
Regards
Tony
But what about being in a tiddler that is looping with the ListWidget over the tiddlers that all have tracking_number fields ?The variableitemis being set for the loop, as the iterator. So I tried this and it didn't work...<a href={{{[[https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]addsuffix{<item>!!tracking_number}]}}}>USPS Tracking</a>
<a href={{{[<item>get[tracking_number]addprefix[https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]}}}>USPS Tracking</a>
In most scripting language that use html markup within them, like PHP, the < a > tag is not really parsed on a display page. It's just a string literal, and PHP just looks inside that string to see if it finds some PHP code. If it does, it replaces that code wherever it is found with whatever literal is the calculated result.
Give this a try:<a href={{{[<item>get[tracking_number]addprefix[https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]}}}>USPS Tracking</a>
Start with the tiddler title stored in <item>Then get the tracking_number field value from that tiddlerThen add the URL stuff onto the *front* of the retrieved value.
<a href={{{ [{!!tracking_number}addprefix[https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=] }}}>USPS Tracking</a>
<a href={{{ [[https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]addsuffix{!!tracking_number}] }}}>USPS Tracking</a><$tiddler tiddler=<item>>
<a href={{{ [[https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]addsuffix{!!tracking_number}] }}}>USPS Tracking</a>
</$tiddler>