Note: An alternative skin, TW4MW (work in progress), is available from the user preferences.

TiddlyTemplating/Customizing Tiddlers

TiddlyWiki Community Wiki

Jump to: navigation, search

TiddlyTemplating is not just about publishing files from a TiddlyWiki, it is also used to customize the appearance of tiddlers. This is not the same thing as editing a tiddler's ViewTemplate.

[edit] Simple Example

This line in a tiddler:

<<templateTiddlers template:SimpleTemplate filter:myTiddler raw:true>>

where SimpleTemplate is:

<div class="wrap1">
	<div class="wrap2">
		<div class="wrap3">
			<!--<<view text wikified>>-->
		</div>
	</div>
</div>

and myTiddler is:

[img[http://farm1.static.flickr.com/45/155839601_fcf69ea21a_o.gif]]

would create this HTML when the first tiddler is opened:

<div class=\"wrap1\">
	<div class=\"wrap2\">
		<div class=\"wrap3\">
			<img src=\"http://farm1.static.flickr.com/45/155839601_fcf69ea21a_o.gif\">
		</div>
	</div>
</div>

NB: without the "raw:true" parameter, the resulting HTML would be encoded into text would just appear in the tiddler.

Personal tools