As per @etardiff simple approach before you can use a procedure to contain the name/icons and also use a function within it to generate a text only icon.
- This is a procedure and can be used as a macro
\procedure result-symbol(fieldname:won)
\define yes() ✅
\define no() ❌
\define pending() ◎
\function get.symbol() [all[current]get<fieldname>getvariable[]]
<<get.symbol>>
\end result-symbol
<<result-symbol>>
- This acts on the current tiddler so if it is the candidacy tiddler, or inside a list widget will work.
- This also allows you to provide a different fieldname with won the default
Note:
I and others have pointed out some delayed rendering of functions after a change, I need to close and open, the tiddler or preview, sometimes to see a change.
- This has made this work fiddly at times and sometimes a change is not reflected eg; if the won field changes, unless the tiddler is refreshed.
- This needs fixing.
Alternatively if you want to use it in a filter or as a filter operator you can ditch the procedure
\define yes() ✅
\define no() ❌
\define pending() ◎
\function get.symbol(fieldname:won) [all[current]get<fieldname>getvariable[]]
<<get.symbol>> on the current tiddler
{{{ [<candidacy>get.symbol[]] }}}