I'm with PMario – I'm just not sure that this makes much sense in the TiddlyWiki idiom. It's like you're used to driving a car, and TiddlyWiki is a train, and looking at the train, you go, “But where are the rubber tires?” It just doesn't have rubber tires...but it still rolls just as well, it just works a different way. TiddlyWiki is almost completely non-hierarchical, so inheritance seems like a particularly bad fit.
> I also found Trilium's attributes extra functionalities very useful, esp the ability to use them to define custom relations between different Notes, which is similar to what tiddlymap does but has several advantages, e.g. to query Notes based on their relations.
If I'm understanding the ability to "query Notes based on their relations" correctly, this works exactly the same way in TW...just put the name of another tiddler or tiddlers in a field, and then use a filter. E.g., for a parent/child relationship where the child stores its parent in a 'parent' field:
[parent[MyTiddler]] – finds all children of MyTiddler
[parent[MyTiddler]related[MyOtherTiddler]tag[Source]] – finds all sources that are children of MyTiddler and related to MyOtherTiddler
[tag[Source]parent[MyTiddler]links[]] – finds all notes linked to by sources that are children of MyTiddler
(If you want to allow more than one tiddler to be in the field for relations, you would make the field contain a
title list and use 'contains:parent` instead of just 'parent'.)
For standard inheritance, in TW you would normally just compose your filter to look for the parent tiddlers when determining what value a field has. I would probably need an example of how you use this to avoid giving you something really convoluted, so I'll pass on trying to provide one up front, but if there's something you're looking for let me know.
For copy inheritance, as PMario mentioned, you would create a custom button on the parent tiddler (or anywhere else you like) that prepopulates the fields. In fact this is more flexible because you can set the fields to whatever you like. For example, here's a button that would copy the tags and description of the current tiddler to the newly created tiddler, set the `year` field to the current year, and set the `url` field to the contents of some configured tiddler containing a base URL plus the title of the current tiddler.
<$button>
<$action-sendmessage
$message="tm-new-tiddler"
title="New Child"
tags={{!!tags}}
description={{!!description}}
url={{{ [{MyBaseUrl}addsuffix<title>] }}}
year=<<now "YYYY">> />
New Child
</$button>