Highlights not to be missed in 2023

As mentioned above I think the new Conditional Shortcut Syntax is also going to be a highlight of 2023. I will explain why, but not how to use it here, I am still learning where it is best used and the pros and cons.

Until now, to do things conditionally we were limited to the widgets $list and $reveal and the use of filtered transclusions {{{ filter }}} which have a limited output.

  • See above why functions may be better than filtered transclusions

Now we have Conditional Shortcut Syntax

  • We have a third way to conditionally display content
  • It is less verbose and easy to follow
  • else and elseif are trivial and more logical than the existing method, the emptyMessage or emptyValue.
  • We can now nest and construct sophisticated logical structures, easily and in a way that resemble pseudocode.
  • Such structures can be used in wikitext, transcluded templates, in procedures and even custom widgets.

Although seemingly only a step wise solution I think we will all benefit from easier to read and write wikitext and TiddlyWiki Script.

Example applications include;

  • Simple conditional display
  • Nested conditions without the list widget
  • Other structure like CASE statements
  • Leverage custom filter operators in the if and elseif filters for plan language looking TiddlyWiki script.

I have raised this in relation to filters because if simple logical tests were available this structiure would be even more useful Design Challenge simple AND, OR NOT conditions in filters