Slices allows you to use special notation to pull out a chunk of specially marked text from within a tiddler. Each slice has a name and a value which can be specified anywhere within a tiddler in any of these formats:
Finally, here's an example of some more complex slice formatting:
theName: textSlice
|theName:| textSlice |
|theName| textSlice |
The name may contain any of the characters a-ZA-Z_0-9, and may also be decorated with '' or // markers for bold and italic formatting that are ignored. For example:|''theName:''| textSlice |Slices can be then be referenced by qualifying the parent tiddler name with the symbols "::" and the name of the slice. For example:
ColorPalette::PrimaryLightSlices doesn't work eveywhere; at this point it is mainly intended to support the ColorPalette and similar usages.
Finally, here's an example of some more complex slice formatting:
version: 1.2.3.4 Author: Joe Brown ''Credits:'' ~ASmith ~BBrown ~CCalony //~SeeAlso:// The rise and fall of the M-perium |!Name|!Value| |Name:|Slice Tester| |URL:|http:\\sample.com\TestSliced | |''Type:''| Plugin | |//Source//| http:\\sample.com\TestSliced\src\text.js |The slices defined from the above example render as:
version: 1.2.3.4
Author: Joe Brown
Credits: ASmith BBrown CCalony
SeeAlso: The rise and fall of the M-perium
Name Value Name: Slice Tester URL: http:\\sample.com\TestSliced Type: Plugin Source http:\\sample.com\TestSliced\src\text.js