At this point, we've seen most of the key concepts in TiddlyWiki. Some more technical and finicky ones remain for full mastery of TiddlyWiki, but before we worry about those, we're going to loop back to fill in a few gaps that we left for the sake of not spending too long on any single topic earlier.
This chapter has two parts. First we'll learn more about writing more complicated filters, as well as splitting filters up into smaller chunks to make them easier to understand. Then we'll cover a bunch of small, simple ideas that don't fit anywhere else, but are worth knowing about: managing scopes, giving tags classifications, attaching images and files to your wiki, putting information in tabs within a tiddler, and storing small nuggets of data together in data tiddlers.
In this chapter
- Multi-Run Filters – Filters can be made more complex and powerful by including more than one run.
- Functions – Functions allow you to break down filter expressions into simpler parts and reuse them in other filter expressions.
- Much More Than You Wanted to Know About Scopes – Procedures and functions can be made available to all tiddlers in the wiki, or to some subset of tiddlers. The names of such procedures should be managed carefully to avoid conflicts.
- Classifying Tags – The colors and icons of tags can be customized to make it easier to tell tags with different functions apart.
- Images and Attachments – Content other than wikitext can be embedded into a TiddlyWiki, or stored outside of it and referenced in a variety of ways.
- Tabs – The
tabs
procedure facilitates compact display of a number of related tiddlers, as in the sidebar of a stock TiddlyWiki. - Data Tiddlers – A data tiddler packs a series of name-value pairs into a single tiddler's text field.