mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Updated Template (markdown)
parent
c0f193f9b5
commit
fcb1620211
13
Template.md
13
Template.md
@ -1,9 +1,18 @@
|
|||||||
Template is a note which serves as a kind of "template" for other kind of notes (let's call them instance notes). There are two properties:
|
Template is a note which serves as a kind of "template" for other kind of notes (let's call them instance notes).
|
||||||
|
|
||||||
|
Assignment of a template relation to a note brings these three effects:
|
||||||
|
|
||||||
* all attributes from the template note are [[inherited|attribute inheritance]] to the instance notes
|
* all attributes from the template note are [[inherited|attribute inheritance]] to the instance notes
|
||||||
* note content is copied from the template note to the instance note (if the instance note content is empty at the time of template attribute assignment)
|
* note content is copied from the template note to the instance note (if the instance note content is empty at the time of template attribute assignment)
|
||||||
|
* all template's children notes are deep-duplicated to the instance note
|
||||||
|
|
||||||
A typical example would be a "Book" template note which will define some [[promoted attributes]] - e.g. publication year, author etc, you can also create kind of outline of the book review in the note text - e.g. themes, conclusion etc. .. And then we have instance note - this note has a [[relation|attributes]] to the "Book" template note which will cause that the template note text is used to initialize the instance note text and all attributes from the template note are inherited to the instance note.
|
A typical example would be a "Book" template note which will:
|
||||||
|
|
||||||
|
* define some [[promoted attributes]] - e.g. publication year, author etc
|
||||||
|
* you can also create kind of outline of the book review in the note text - e.g. themes, conclusion etc. ..
|
||||||
|
* you can also create child notes for e.g. highlights, summary etc.
|
||||||
|
|
||||||
|
And then we have instance note - this note has a [[relation|attributes]] to the "Book" template note which will cause that the template note text is used to initialize the instance note text and all attributes from the template note are inherited to the instance note.
|
||||||
|
|
||||||
From the visual perspective template can define a `iconClass` and `cssClass` attributes so that all e.g. books are shown with a particular icon and CSS style.
|
From the visual perspective template can define a `iconClass` and `cssClass` attributes so that all e.g. books are shown with a particular icon and CSS style.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user