Transclusion using AndTidWiki

120 views
Skip to first unread message

Papa Piper

unread,
Oct 22, 2015, 5:14:33 PM10/22/15
to TiddlyWiki
I'm unable to make Transclusion work, using AndTidWiki.

When I insert {{TiddlyA}} inside the text field of TiddlyB, no data whatsoever renders from TiddlyA.

Instead, I only get this:

TiddlyA}}

Has anyone else encountered this issue?

Tobias Beer

unread,
Oct 22, 2015, 6:06:37 PM10/22/15
to TiddlyWiki
Are you using TW2 or TW5 in AndTidWiki and if the former, which version?

Best wishes,

— tb

Papa Piper

unread,
Oct 22, 2015, 6:28:01 PM10/22/15
to TiddlyWiki
Tobias, I'm using TW5. For what it is worth, I get the exact error when I display the file in a browser. --pp

Mark S.

unread,
Oct 23, 2015, 6:33:47 PM10/23/15
to TiddlyWiki
Is it literally "TiddlerA", or some other title? You haven't accidentally changed the tiddler type, by any chance?

I suppose it's possible you corrupted your TW somehow. If you drag tiddler A and B into a fresh empty.html and view it in a browser, do the tiddlers render then?

Mark

Papa Piper

unread,
Oct 25, 2015, 1:38:06 PM10/25/15
to TiddlyWiki
Okay, I downloaded a new TW5 empty file, and so now transclusion works as it is supposed to.

Only problem, the new TW5 empty file is about 5 times larger than the empty file I had been using. The new TW5 also takes much longer to load using AndTidWiki. So I guess my empty file that I had first started with wasn't a TW5 but a TW2.

So now I'm looking for a plugin or macro to make transclusion work with TW2, which I like because it's leaner and faster.

BTW, I've been using Windows NoteTab (not NotePad), since the 90's, for its extensive text linking and file linking, macros, etc., all of which beautifully navigate my 110,000 files (text, mp3, jpg, html, etc.) on my hard drive. My objective now is to migrate all of these files to Android. I talked to the folks at NoteTab.com, however, they have no plans for a smartphone version for neither iPhone nor Android. Their response led me to discovering TW only last week.

I can see TW's potential, for its linking to sd storage, for replacing NoteTab. Of course, TW's tagging and other features make TW far superior to NoteTab, a huge bonus, providing TW can handle tens of thousands of links and tags without getting bogged down. The links, of course, would all point to sd storage and online, for the most part.

Eric Shulman

unread,
Oct 25, 2015, 2:40:27 PM10/25/15
to TiddlyWiki
On Sunday, October 25, 2015 at 10:38:06 AM UTC-7, Papa Piper wrote:

Only problem, the new TW5 empty file is about 5 times larger than the empty file I had been using. The new TW5 also takes much longer to load using AndTidWiki. So I guess my empty file that I had first started with wasn't a TW5 but a TW2.

So now I'm looking for a plugin or macro to make transclusion work with TW2, which I like because it's leaner and faster.


Transclusion in TWClassic (note the name) is done via the <<tiddler>> macro:

<<tiddler NameOfTiddler>>

You can also pass parameters to the tiddler using:
<<tiddler NameOfTiddler with: param1 param2 param3 ...>>

where NameOfTiddler contains "replacement markers" using $1, $2, $3, ... $9, corresponding to the parameters passed in.

Thus, <<tiddler NameOfTiddler with: "foo" "bar" "baz">>
where [[NameOfTiddler]] contains:
  This is $1.
  and this is $2 and $3.
would produce output:
  This is foo.
  and this is bar and baz.

Also note that in TWClassic, the syntax and use of the curly braces is very different from modern TW:

* {{classname{...content...}}} is a "CSS wrapper" used to style the enclosed content
* {{{...content...}}} produces a "pre" block with fixed-width font and literal newlines
* {{...js code...}}, when used as a macro parameter, evaluates the enclosed javascript code to calculate the parameter value

enjoy,
-e
Eric Shulman
TiddlyTools: "Small Tools for Big Ideas!"
InsideTiddlyWiki: The Missing Manuals

Mark S.

unread,
Oct 25, 2015, 2:57:48 PM10/25/15
to TiddlyWiki
NoteTab was great, but I imagine the guy that wrote it must be getting up there. It was also Windows only.

Hyperlinking is one of those ideas that sounds really neat, but then turns out to have limitations. For one thing, if you change a title, you have to find and rewrite all those links. In the end, I usually use search features.

The meta-problem with TW2 is that it is on its way out. But TW5, we are told, has a 25 year intended support plan. I think this might be done a bit tongue-in-cheek, but at least some thought is being given to it. There are a lot of orphan open source information managers out there.

Wow, TW5 is a lot larger -- 10 times as large!! Oh well, that's technology. As time goes on, computing power and memory increases, making increased file sizes less of a concern.

Have you tried using TW5 under firefox with tiddlyfox on the Android?

Good luck!
Mark







On Sunday, October 25, 2015 at 10:38:06 AM UTC-7, Papa Piper wrote:

Papa Piper

unread,
Oct 25, 2015, 4:18:55 PM10/25/15
to TiddlyWiki
Thanks, Eric. Your advice Is working perfectly, already. Not having transclusion in TW2 would be a dealbreaker for me.


Papa Piper

unread,
Oct 25, 2015, 4:49:08 PM10/25/15
to TiddlyWiki
Mark, I haven't tried Android Firefox yet, but I'm saving that option for when I get a new and bigger phone.

Same thing with TW5, which should work much better on a new and bigger phone. Then all I will have to do is import all of my TW2 tiddlers into TW5, and then I'll be all set.

NoteTab, it sure was something. Well, it still is, too. I've tried every PIM out there but nothing measured up like NoteTab has. NoteTab, together with MS Explorer, is a perfect relational database. It may be bare-bones but it's bullet-proof, simple, and fully transportable on a usb drive.

I'm really counting on TW (AndTidWik and eventually Firefox) as Android replacements for NoteTab.


Reply all
Reply to author
Forward
0 new messages