Hi, all —
I have a wiki where many of the tiddlers have a phone number field (stored as ten digits, no spaces). Most often, there’s a single value in the field. But some tiddlers have two or three values in [[1234567890]] [[0987654321]]
format. I’m using <$list filter...>
to pull the values, then using <$wikify>
to render the resulting list as a variable, which I can pass to an inner filter — with the aim of removing duplicate entries via enlist
.
This is what my effort looks like:
<ol>
<$list filter=<<filter>> variable="phone_history_numbers">
<$wikify text=<<phone_history_numbers>> name="phone_history_numbers_wikified">
<$list filter="[enlist<phone_history_numbers_wikified>]">
<li>{{!!title}}</li>
</$list>
</$wikify>
</$list>
</ol>
Except — I still have duplicates in the resulting list.
Am I using the enlist
operator incorrectly?
Shouldn’t I also be able to accomplish my aim with something like <$list filter="[<phone_history_numbers_wikified>unique[]]
? Because that doesn’t seem to work for me, either.
I think I’m missing something that’s staring me in the face … .
—
One (possibly) relevant detail: The reason I wikified <<phone_history_numbers>>
was to turn the list of, say:
1234567890
[[2345678901]] [[3456789012]]
[[2345678901]] [[4567890123]]
2345678901
… into a list more like:
1234567890
2345678901
3456789012
2345678901
4567890123
2345678901
… which, of course, I’d like to ultimately look like this:
1234567890
2345678901
3456789012
4567890123