New tiddler with user-defined “title” and “tag”

Hello,
I am looking for a way to automatically add the title of the current tiddler to the “title” and ‘tag’ in the call. (Placeholder: “Folie-x”)

Thank you.

Guten Tag,
ich suche eine Möglichkeit, in dem Aufruf den “Titel” und den “Tag” automatisch mit dem Titel des aktuellen Tiddlers zu versehen. (Platzhalter: “Folie-x”)

Danke schön.

\procedure neueFolie()
  <$action-sendmessage
    $message="tm-new-tiddler"
    title="Folie-x"
    tags="Folie-x"
 />
\end
<$button actions=<<neueFolie>>>
neue Folie
</$button>

Hi Walter,

There are some setting in the

That you can use to predefine a name for your new tiddler button in the right sidebar. So the “+” icon will use the title as a basetitle, and one or more tags if you want.

Once you have a new tiddler and you want to create a new one, which uses that title as a tag, you can use the new here button in the tiddler toolbar.

You can show this “New here” button using the toolbar (i)nfo settings, so it will be shown on every tiddler.

Hope that helps.
Mario

Hello,
Sorry, I guess I didn’t express myself very well.
I wanted to execute the posted call from a tiddler (A), which would then create a new tiddler (B) from there—with the title of the old tiddler (A) and a tag with the name of the old tiddler (A).

Unfortunately, in the description of the function, I only found an example of a specific name for the title/tag, and my attempts to change the syntax were… (I don’t want to talk about it) :slight_smile:

https://tiddlywiki.com/#ActionCreateTiddlerWidget

Sorry for the poor description.

Hallo,
sorry, ich habe mich wohl schlecht ausgedrückt.
Ich wollte den geposteten Aufruf aus einem Tiddler (A) ausführen, der mir dann von dort einen neuen Tiddler (B) erstellt - mit dem Titel des alten Tiddler (A) und einem Tag mit dem Namen des alten Tiddlers (A).

In der Beschreibung der Funktion hatte ich leider nur das Beispiel einer konkreten Namensangabe des Titels / Tags gefunden und meine Syntax-Versuche, dies zu ändern, waren … (ich will nicht darüber reden) :slight_smile:

https://tiddlywiki.com/#ActionCreateTiddlerWidget

Entschuldigung für die schlechte Beschreibung.

Give this a try…

replace the literal quoted parameter values, like this:

\procedure neueFolie()
  <$action-sendmessage
    $message="tm-new-tiddler"
    $param=<<currentTiddler>>
    tags={{{ [<currentTiddler>format:titlelist[]] }}}
 />
\end
<$button actions=<<neueFolie>>>neue Folie</$button>

Notes:

  • title=<<currentTiddler>> will use the current tiddler’s title, causing it to be overwritten.
  • In comparison, $param=<<currentTiddler>> uses the current tiddler title as a template, and will automatically add a number to the new title so it doesn’t overwrite the existing tiddler.
  • tags={{{ [<currentTiddler>format:titlelist[]] }}} uses the current tiddler’s title as a tag. The filtered transclusion syntax and the format:titlelist[] operator ensures that, if the current tiddler’s title contains spaces (e.g., “Some Tiddler”), the tag value will be enclosed in doubled square brackets so it will be seen as a single tag, rather than creating two separate tags, “Some” and “Tiddler”.

enjoy,
-e

Hi,
Thank you for your reply. I’ll use it tomorrow. It’s game over for today.
My alarm goes off at 4:40 a.m.

Thanks and good night.

Moin,
vielen Dank für die Antwort. Ich werde sie morgen anwenden. Für heut ist game over.
04:40 geht der Wecker,

Danke und Gute Nacht.

Good morning,

Quick reply @EricShulman, it works perfectly—thank you very much for your solution.

Guten Morgen,

kurze Rückantwort @EricShulman, es funktioniert wunderbar - vielen Dank für Deine Lösung.