Custom tiddler Templates for Medicinal Plant Monographs

380 views
Skip to first unread message

Radium

unread,
May 21, 2016, 10:29:13 AM5/21/16
to TiddlyWiki
Hello,

I want to make and use a tiddler template named "monograph", which has predefined fields such as:

  • scientific name
  • common name
  • useful parts
  • uses
  • habitat
  • physical description
  • chemicals


And most importantly:

  • I need to be able to search and sort plant tiddlers using any of these fields.
  • Some fields (like chemicals and useful parts), might contain multiple values, and each value needs to be counted as a separate entity, not a stream of values like a sentence.

Matabele

unread,
May 22, 2016, 12:10:16 AM5/22/16
to TiddlyWiki
Hi Radium

The $action-listops widget is designed to manipulate fields as lists -- there are various extended filters designed to work with this widget.

regards

Radium

unread,
May 22, 2016, 6:58:41 AM5/22/16
to TiddlyWiki
I'm a power user with an intermediate programming background (Ruby, Xojo, Pascal, Delphi),

But still I find TiddlyWiki quite confusing and uber-geeky.

It's because I haven't yet figured the big picture about how it works, even after reading the docs.

The docs was very subtle IMO and did not explain the system well.
Where can I learn more about TW?

It looks and sounds like a truly powerful and suitable personal wiki for me.
I reeeeeally like to learn it and put it into use.

Alex Hough

unread,
May 22, 2016, 10:16:28 AM5/22/16
to TiddlyWiki
Radium,

It looks like you want to create a temple and a new button



<$button message="tm-new-tiddler" param="Monograph">New Task</$button>

Then create the Monograph tiddler with the fields you require. Note: you can't have spaces in field names

These are the tiddlers to search for on http://tiddlywiki.com/



WidgetMessage: tm-new-tiddler

TemplateTiddlers

Alex

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b8dc41a3-73e8-4874-992b-f66d32f73801%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jed Carty

unread,
May 22, 2016, 10:40:47 AM5/22/16
to TiddlyWiki
I needed a quick project and this is going to be useful for other things I want to do, so I made this. I am on my tablet and don't have access to my server so have a dropbox link: https://www.dropbox.com/s/j1yhvn1u0d2dgd5/EncyclopediaTemplates.html?dl=0

I am not certain I did the sharing correctly, so let me know if that link doesn't work. 

As a side note, I put together a simple implementation of non-tag fields as tag fields. I am pretty certain that other people have already make working versions of this but now there is another one. It just uses some quick modifications to the existing macros and the action-listops widget.

Birthe C

unread,
May 22, 2016, 12:29:31 PM5/22/16
to TiddlyWiki
Hi Jed,

We can download it allright...but for easy viewing I think it work better like this https://dl.dropboxusercontent.com/s/j1yhvn1u0d2dgd5/EncyclopediaTemplates.html


Birthe

cmari

unread,
May 22, 2016, 1:19:48 PM5/22/16
to TiddlyWiki
This is pretty nifty! I was initially confused by one small typo:
In "Medical Plant Template", there's a stray apostrophe at the end of the line
''Scientific Name'': {{!!scientific_name}}'

Also, in case it's useful to anyone else: things didn't initially work when I imported into my TW, which brought to my attention that I needed to manually delete my earlier version of matabele's "listops" widget because it was overriding the ActionListopsWidget (which came in with release 5.1.10, I think?). I hadn't noticed that before, so thank you!
cmari

Alex Hough

unread,
May 22, 2016, 1:55:30 PM5/22/16
to TiddlyWiki

is there a way to automatically convert the Dropbox share link to the dropbox view link?

Alex

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Radium

unread,
May 22, 2016, 3:00:29 PM5/22/16
to tiddl...@googlegroups.com
Oh! Nice!!
I really didn't expect such a nifty job in any reply when I was making this topic!
You surprised me with this.

Now it just needs the ability to be able to hold picture(s) of the plant.

Unfortunately I'm in a hurry for an exam, and need to memorize all these data for 300 different plants by the next monday.
I will learn HTML, CSS, and JS when summer comes (tell me if something else is needed as well).
I want to be able to build/modify similar things like you.

I am examining your file right now to figure how you built the templates and macros.

Radium

unread,
May 22, 2016, 3:17:07 PM5/22/16
to tiddl...@googlegroups.com
In short, I wanted to make a 3D spreadsheet,
where some cells (like "uses", "parts", "chemicals") could store multiple values (adding depth to cells), or in other words, an array inside a cell.

This way I could store all the data for all the 300 plants,
then sort them in whatever way I liked,
to look at them from different views,
to help me build more connections between them in my brain,
and hopefully retain/retrieve the info better in my memory.

For example:
- listing all the plants belonging to X family.
- listing all plants with medicinal "root bark"
- all plants containing Y
- all plants having sedative properties

(But I'm still figuring how to relate the "useful parts" data with the "uses" data.
i.e. how to link the "sedative" property to the "blossoms", and the "antiseptic" property to the "leaf"
Any ideas???)


I tried MS Excel and Apple Numbers, none supported depth for cells (AFAIK), and none had GET functions for extracting multiple values out of a text stream based on a delimiter.
I also asked a friend who had access to FileMaker Pro Advanced 14, and he couldn't find a way to do it either.

Jed Carty and all of you who contributed to this topic,
You solved the large part of my problem so far.
I am really grateful.

Alex Hough

unread,
May 22, 2016, 3:53:59 PM5/22/16
to TiddlyWiki
Radium,

"In short, I wanted to make a 3D spreadsheet,
where some cells (like "uses", "parts", "chemicals") could store multiple values (adding depth to cells), or in other words, an array inside a cell"

I think you are describing Jed's latest contribution [1]

It sounds like an interesting project.

If you've not already done so, I'd have a look at TiddlyMap [2] and have a play


Alex


On 22 May 2016 at 20:17, Radium <mhr...@gmail.com> wrote:
In short, I wanted to make a 3D spreadsheet,
where some cells (like "uses", "parts", "chemicals") could store multiple values (adding depth to cells), or in other words, an array inside a cell.

This way I could store all the data for all the 300 plants,
then sort them in whatever way I liked,
to look at them from different views,
to help me build more connections between them in my brain,
and hopefully retain/retrieve the info better in my memory.

For example:
- listing all the plants belonging to X family.
- listing all plants with medicinal "root bark"
- all plants containing Y
- all plants having sedative properties

(But I'm still figuring how to relate the "useful parts" data with the "uses" data.
i.e. how to link the "sedative" property to the "blossoms", and the "antiseptic" property to the "leaf"
Any ideas???)


I tried MS Excel and Apple Numbers, none supported depth for cells (AFAIK), and none had GET functions for extracting multiple values out of a text stream based on a delimiter.
I also asked a friend who had access to FileMaker Pro Advanced 14, and he couldn't find a way to do it either.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Jed Carty

unread,
May 22, 2016, 4:32:44 PM5/22/16
to TiddlyWiki
I would also recommend TiddlyMap, but it may get a bit unwieldy if you have 300 nodes.

I doubt that anything will be finished in time to be very useful by monday, but I am hoping to make a generic encyclopedia model for TiddlyWiki using a lot of things I have made. While it isn't immediately obvious a lot of the functionality you want is already in what I made. Unfortunately one of the biggest problems with TiddlyWiki at the moment is the difficultly going from understanding the very basic use as something like a journal or linked notebook to understanding more complex uses. We are working on it.

In the meantime, everything in your list (all the plants belonging to X family, listing all plants with medicinal "root bark", etc.) can be done relatively simply using what you inspired me to make from your request (here). I am working to find a reasonable way for someone who isn't familiar with TiddlyWiki to use them effectively.

Once I get the new changes added into the encyclopedia demo I made than just clicking on the tag pill for each section will list everything that has that entry. So everything that has antiseptic listed under uses will appear if you click on the pill antiseptic in the uses list.
There are other ways it will be able to be sorted or searched through as well, like a drop down menu where you can select from all the uses to get a list of things that match it.

Hegart Dmishiv

unread,
May 22, 2016, 9:59:23 PM5/22/16
to TiddlyWiki
Hi Radium,

Interesting project. It reminds me of a fellow student, Kira Gregory's HyperPlants exercise, as part of the {{DesignWrite}} course. I'd really recommend you look at this course as a great place to start learning about TiddlyWiki.

Hegart.

Mark S.

unread,
May 22, 2016, 11:01:39 PM5/22/16
to TiddlyWiki
Wow, that's really cool. And you did all that on a tablet?

To turn it into a standardized database application, could those use and part options come from a drop down list?

Without a standardized list, what happens is that you get variant spellings for the same thing (e.g. "Leaves" vs "leafs", "antispetic" vs "antiseptic") Those variants will make analyzing the data later much harder.

Mark

Jed Carty

unread,
May 23, 2016, 4:54:00 AM5/23/16
to TiddlyWiki
Mark,

Well, I have a keyboard and I have spent a while getting everything set up so I can do some work effectively on my tablet. But most of my work is done on a nice desktop with multiple monitors.

I am working on some things that will address those problems by extending how tags work in tiddlywiki. When I am finished than all of the fields should work identically to the tags field in how you add and remove things or search in them.

Radium

unread,
May 23, 2016, 6:43:36 AM5/23/16
to TiddlyWiki
Some fields like "medicinal plants" have a mind blowing number of "bits & pieces",
So a drop-down list for "parts" seams logical, but think twice about "uses" if your desktop doesn't have 50 monitors stacked on top of each other ;)
A simple text-field armed with a "suggestions as typing" function is far better for "uses".

Radium

unread,
May 23, 2016, 6:50:21 AM5/23/16
to tiddl...@googlegroups.com
Jed,
Regarding your current plants TW plugin/extension/edition (what shall I call it?)
Is it possible for text-fields to get clear after clicking the "add" button or ENTER key?

Since:
writing + ENTER (or clicking the "Add" button)
<repeat>

is better than:
writing + ENTER (or clicking the "Add" button) + select the old input inside textfield + DELETE
<repeat>

Especially when you're going to enter data by hand all night :D

Jed Carty

unread,
May 23, 2016, 7:02:39 AM5/23/16
to TiddlyWiki
Radium,

The updated version clears the input when you click add as well as many other improvements. I haven't gotten around to updating the encyclopedia part of it yet though. There are many improvements in what I am making so if you are planning on using this in any sort of long term sense you may want to wait a bit until I get around to updating this part.

Or you could try creating one yourself if you wish using the generic tags field plugin I am working on. Look at the other thread about generic tag fields, I will be posting an updated version of that in the next hour or so.

Radium

unread,
May 23, 2016, 7:07:12 AM5/23/16
to TiddlyWiki
I'm going to use the system and data for the rest of my life.
I'm a pharmacist, with lots of info about drugs and plants to "organize in my own way", and use it when I need it throughout my career.
So yeah, I'm in for the long-term.
But along making your stuff to use,
I will try to learn from you how to catch a fish as well,
To be able to do the tiny detail tweaks myself.

Radium

unread,
May 23, 2016, 7:26:41 AM5/23/16
to TiddlyWiki
Idea for relating the values between TWO different TagTypes (uses, parts, chems, etc):

For scientific fields which require this level of detail, like pharmacognosy (study of medicinal plants and making drugs out of them).


Example uses:
- sorting the plants with "tyramine" inside their "root".
- sorting the plants with "stimulant" effects within their "bark"

Obviously we need a Dict datatype here which can optionally store arrays as both key and value:
[[key]:[value]]

1:n examples:
- [root:[stimulant, antiseptic, neuroprotective]] (part:effect pair)
- [root:[tyramine, caffeine, yohimbine, capsicin]] (part:chem pair)

n:m examples:
- [[root, leaf, bark]:[depressant, cardiotoxic]]
- [[branch, blossom]:[tyramine, tannins]]

Alex Hough

unread,
May 23, 2016, 10:23:00 AM5/23/16
to TiddlyWiki
Radium,

It would be interesting (to me at least) to see your works in progress. It would be fantastic to see how your thinking, Jed's work and Matt's contributions develop....



best wishes

Alex

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Matabele

unread,
May 23, 2016, 10:34:56 AM5/23/16
to TiddlyWiki
Hi Radium

An alternative to dropdowns, is to cycle through available options -- like the keep operator example on the ActionListops widget demo site: http://listops.tiddlyspot.com/

You'll need the x-listops filter set from the site, which includes the cycle[] and keep[] operators used for this demo.

regards

Mark S.

unread,
May 26, 2016, 11:35:04 AM5/26/16
to TiddlyWiki
I'm thinking that the practical way to deal with this, at least using Jed's system, would be to create a set of separate tiddlers as Definitions.

Each tiddler would be tagged with Definition (instead of as a plant) and would have a compound title. Like:

Root-Antiseptic

It would then have two fields, "useful_part" and "effect".

You would set these up in advance, mostly, to save time during data entry.

Because they're tagged as Definitions, a drop-down list could be used in the Edit template to allow you to select appropriate items. Possibly a compound select using one of the fields could be used to help make the selection easier (a compound list is a list separated into categories).

You would do the same thing for other associations (e.g. plant part - chemical)

Have fun,
Mark
Reply all
Reply to author
Forward
0 new messages