Eikonal Blog

2011.01.19

Tiddly wiki syntax

Filed under: knowledgeManagement — Tags: — sandokan65 @ 16:43

Inserting images

For remote images use syntax: [img[URL]], e.g. for http://i.creativecommons.org/l/by/3.0/88×31.png ():

[img[http://i.creativecommons.org/l/by/3.0/88x31.png]]

For local images that you want to accompany your copy of local TiddlyWiki, e.g. wiki called VARIOUS.html, make a directory VARIOUS_files next to the html file, place the copy of the image in it (VARIOUS_files/CCLogo.png) and reffer it as:

[img[VARIOUS_files/CCLogo.png]]

The genral syntax is

[img[alternate text|URL of image][tiddler or URL]]

Source: “Inserting Pictures” – http://tiddlywiki.org/wiki/Inserting_Pictures.

Pre-formated text

Source: Eric Shulman – http://groups.google.com/group/tiddlywikidev/browse_thread/thread/5bbf6ace10e15f65

	  
> For some reason, when I try to include preformatted text, using the
> triple curly braces, TiddlyWiki isn't preserving line breaks or
> spaces.

There are two different uses of the tripled curly braces... placing
them on lines by themselves, with no leading or trailing content of
any kind, e.g.:
{{{
stuff
}}}

produce a PRE block that bypasses wiki-syntax processing, uses a
monospaced font, and retains whitespace and newlines.  In addition,
the default CSS TiddlyWiki styles for PRE blocks applies a yellow-ish
background with a 1px border.

However, if *any* content precedes or follows the tripled curly braces
on the same line, e.g.:
{{{stuff}}}
they produce a CODE block that bypasses wiki-syntax processing, and
uses a monospaced font, but does *not* retain whitespace a newlines.

So, perhaps you have used the 2nd (CODE) syntax, but were expecting
the 1st (PRE) results... and also check to make sure there isn't any
trailing whitespace following the tripled curly braces, as this woud
force the CODE syntax to be applied even though it would *look* like
the PRE syntax. 

Example:

Syntax: {{{chage –-list username (or) chage -l username}}}

{{{
$ chage --list dhinesh
Last password change                                    : Apr 01, 2009
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7
}}}

gives following:

Two uses for preformated brackets

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: