NOTE: Many members of this community often disagree with my “UNORTHODOX” approach to doing things. Everything I share is only meant as fun insights into TW behaviour and types of fun things that can be done with TW.
I have a cognitive disability and bad eyesight (Fuchs Dystrophy). So please pay no mind to the many little, surely very odd to you, tricks I use to compensate.
EDIT: The purpose of this post is to demonstrate a possible approach to dynamically BUILDING a filter. How to RUN that dynamically built filter is a different kettle of fish.
Player names for a game are each stored in their own dedicated fields.
The filter to get the list of sorted names is not a hard filter to build.
Although I’ll be using a static filter, I wondered how I’d go about using a dynamic filter.
Using syntax that I prefer, a dynamically built filter assigned to variable “f”, a list widget MIGHT look something like (just my personal preference):
<$list filter={{{ [<f>] }}}>
...
</$list>
PLEASE NOTE: Seasoned users of TiddlyWiki discourage my preference for
{{{ [<f>] }}}; consider using the subfilter operator if you prefer that and/or want to comply with the preferences of seasoned members in this community.
At the moment, the “Games Manager” tiddler gets a list of players with a filter that statically considers at most five players for a game.
The code in the image:
\define l() =[{!!p
\define r() _🧑}!is[blank]]
\define s() +[sort[]]
<$let f1={{{ [range[1],[12]] +[addprefix<l>] +[addsuffix<r>] [<s>] +[join[ ]] }}}>
''the filter I need:'' <<f1>><br><br>
</$let>
