mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-06 00:07:11 +00:00
First step of turning the rabbit hole inside out
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
title: TiddlerSlicing
|
||||
modifier: psd
|
||||
created: 20110211110707
|
||||
modified: 20110216111630
|
||||
creator: psd
|
||||
|
||||
TiddlerSlicing 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:
|
||||
{{{
|
||||
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::PrimaryLight
|
||||
}}}
|
||||
TiddlerSlicing 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:|TextSlice Tester|
|
||||
|URL:|http:\\sample.com\TestSliced |
|
||||
|''Type:''| Plugin |
|
||||
|//Source//| http:\\sample.com\TestSliced\src\text.js |
|
||||
}}}
|
||||
The slices defined in that example are:
|
||||
|version|1.2.3.4|
|
||||
|Author|Joe Brown|
|
||||
|Credits|~ASmith ~BBrown ~CCalony|
|
||||
|~SeeAlso|The rise and fall of the M-perium|
|
||||
|Name|TextSlice Tester|
|
||||
|URL|http:\\sample.com\TestSliced|
|
||||
|Type|Plugin|
|
||||
|Source|http:\\sample.com\TestSliced\src\text.js|
|
||||
Reference in New Issue
Block a user