TiddlyWiki enhancement

6 views
Skip to first unread message

ardchoille

unread,
Apr 30, 2008, 5:28:33 PM4/30/08
to TiddlyWiki
I'm loving TiddlyWiki and I have what I think is a nice enhancement.

The EditTemplate lays out the look of the page used to edit a tiddler.
At the bottom of that page I would like to place a small table or text
showing some basic TW markup examples. I have tried to edit the
EditTemplate to include <<tiddler EditorMarkupExamples>> (the table of
markup examples is in EditorMarkupExamples) so that the small example
table shows up at the bottom of the edit tiddler (below the tags
line).

I have tried these in the EditTemplate:
<div class='examples' tiddler='EditorMarkupExamples'></div>
<div class='examples' <<tiddler EditorMarkupExamples>>></div>
<span><<tiddler EditorMarkupExamples>></span>
<span tiddler ='EditorMarkupExamples'></span>

But none of them work.. obviously I'm doing something wrong.

What is the best way to include a table or text into the EditTemplate?

Ian MacGregor

Eric Shulman

unread,
Apr 30, 2008, 5:54:19 PM4/30/08
to TiddlyWiki
> showing some basic TW markup examples. I have tried to edit the
> EditTemplate to include <<tiddler EditorMarkupExamples>> (the table of
> markup examples is in EditorMarkupExamples) so that the small example
...
> <div class='examples' tiddler='EditorMarkupExamples'></div>
> <div class='examples' <<tiddler EditorMarkupExamples>>></div>
> <span><<tiddler EditorMarkupExamples>></span>
> <span tiddler ='EditorMarkupExamples'></span>

In TW templates, to invoke a macro (such as <<tiddler>>) you use this
syntax:

<div class='...' macro='tiddler EditorMarkupExamples'></div>

where 'class' can be whatever you want, and the contents of
macro='...' are exactly the same as what occurs between the << and >>
when the macro is invoked from normal tiddler content.

enjoy,
-e

ardchoille

unread,
Apr 30, 2008, 7:34:42 PM4/30/08
to TiddlyWiki
> In TW templates, to invoke a macro (such as <<tiddler>>) you use this
> syntax:
>
> <div class='...' macro='tiddler EditorMarkupExamples'></div>
>
> where 'class' can be whatever you want, and the contents of
> macro='...' are exactly the same as what occurs between the << and >>
> when the macro is invoked from normal tiddler content.

Thank you very much, works perfectly :)

Ian MacGregor

ardchoille

unread,
Apr 30, 2008, 8:08:40 PM4/30/08
to TiddlyWiki
In case anyone else wants to do this, I thought the basic items would
be as follows:

|>|!Basic Formatting|
|bold font|{{{''bold''}}}|
|italic type|{{{//italic//}}}|
|underlined text|{{{__underlined__}}}|
|strikethrough text|{{{--strikethrough--}}}|
|superscript text|{{{^^super^^script}}}|
|subscript text|{{{~~sub~~script}}}|
|highlighted text|{{{@@highlighted@@}}}|
|preformatted text|{{{{{{source code}}}}}}|
|Colored text|{{{@@color(green):green colored@@}}}|
|Colored background|{{{@@bgcolor(#ff0000):color(#ffffff):red
colored@@}}}|
|Headings|{{{!Heading 1, !!Heading 2, !!!Heading 3, !!!!Heading
4, !!!!!Heading 5}}}|
|Unordered List|{{{* level 1, ** level 2, *** level 3}}}|
|Ordered List|{{{# level 1, ## level 2, ### level 3}}}|
|Blockquotes|{{{> level 1, >> level 2, >>> level 3}}}|
See TiddlyWikiMarkup for more examples.

(note: my TiddlyWikiMarkup tiddler contains in-depth TW formatting)

FND

unread,
May 1, 2008, 10:39:01 AM5/1/08
to Tiddl...@googlegroups.com
Nice!

> my TiddlyWikiMarkup tiddler contains in-depth TW formatting

Could you share those as well - e.g. by creating a site on Tiddlyspot*?

You might also want compare it to this:
http://www.tiddlywiki.org/wiki/TiddlyWiki_Markup/Tiddler


-- F.


* http://tiddlyspot.com

ardchoille

unread,
May 1, 2008, 12:51:40 PM5/1/08
to TiddlyWiki
> Nice!
>
> > my TiddlyWikiMarkup tiddler contains in-depth TW formatting
>
> Could you share those as well - e.g. by creating a site on Tiddlyspot*?
>
> You might also want compare it to this:
> http://www.tiddlywiki.org/wiki/TiddlyWiki_Markup/Tiddler
>
If I remember correctly, that's where I got my TW markup info from.
I'll have a look and post my info there if it's not already there.

Ian MacGregor
Reply all
Reply to author
Forward
0 new messages