List enlist complications?

I have a variable “varname” containing the follwing as exact text;

[[Recursion and branch improvment with 5.3.x?]] [[New Tiddler 59]] [[New Tiddler 59]] [[New Tiddler 60]] [[New Tiddler 62]] [[New Tiddler 63]]

If I use <<varanme>> it produces a list of tiddler titles and they become links to the tiddlers.

However I want to manipulate the list, in a filter, to remove the first and last title, however using enlist, enlist-input and [<varname>], a filter is just not working for me, for example if I did;

{{{ [<varname>enlist-input[]butfirst[]butlast[]] }}}
or
{{{ [enlist<varname>]butfirst[]butlast[]] }}}

None of these are working.

  • I also want to determin if the current tiddler is in the list and more.

How can I get such a variable to become a list I can use inside my filter again?

  • In a way it requires a split that honors [[tiddler name]] or tiddlername.

This ended up working the third time I tried, must have being an error elsewhere;

{{{ [enlist<varname>butfirst[]butlast[]] }}} 

(in your initial post that one has an extra ] after <varname>)

I’d been playing with something very much like this, glad to see what I thought was hacky to be correctly functional.