On Monday, June 29, 2020 at 7:45:15 AM UTC-7, Eric Shulman wrote:
>
> Give this a try:
> <a href={{{[<item>get[tracking_number]addprefix[
> https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]}}
> <https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]addsuffix%7B!!tracking_number%7D]%7D%7D>}>USPS
>
> Tracking</a>
>
> Start with the tiddler title stored in <item>
> Then get the tracking_number field value from that tiddler
> Then add the URL stuff onto the *front* of the retrieved value.
>
Note: if your <$list> widget just used the default "currentTiddler"
variable, then you could simplify the above to:
<a href={{{ [{!!tracking_number}addprefix[https://tools.usps.com/go/
TrackConfirmAction_input?qtc_tLabels1=] }}
<https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]addsuffix%7B!!tracking_number%7D]%7D%7D>
}>USPS Tracking</a>
or, if you prefer:
<a href={{{ [[https://tools.usps.com/go/TrackConfirmAction_input?
qtc_tLabels1=]addsuffix{!!tracking_number}] }}
<https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=]addsuffix%7B!!tracking_number%7D]%7D%7D>
}>USPS Tracking</a>
and, if you do want to use the "item" variable, you could still write one
of the above... just wrap the whole thing inside a <$tiddler> widget, like
this:
<$tiddler tiddler=<item>>
<a href={{{ [[https://tools.usps.com/go/TrackConfirmAction_input?
qtc_tLabels1=]addsuffix{!!tracking_number}] }}}>USPS Tracking</a>
</$tiddler>
-e
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/1fc2381a-6f71-4306-ba73-62de40686b40o%40googlegroups.com.