Thanks for responding.
@pmario see below for the code.
@TW_Tones I understand what you mean but I don’t know what to do about the part that is now wikified. Any suggestions?
Code
I have never used the LetWidget, unusedTitle Macro and ActionCreateTiddlerWidget before. I want to try those because it seems more convenient than my own solutions.
So thank you for your patience.
I have 3 tiddlers for the code.
-
auto-btn-multi
for the actual button
-
macro-tabs
for the macro’s e.g. unusedTitle Macro
-
button-main-menu
to put the above together and showing the button
auto-btn-multi
<$button class=<<class>> tooltip=<<tooltip>>>
<$action-createtiddler
$basetitle=<<new-name>>
tags=<<new-tag>>
caption=<<caption>>
/>
<$action-createtiddler
$basetitle=<<new-name-1>>
tags=<<new-tag-1>>
caption=<<caption-1>>
sort=<<sort-1>>
/>
<$action-createtiddler
$basetitle=<<new-name-2>>
tags=<<new-tag-2>>
caption=<<caption-2>>
sort=<<sort-2>>
/>
<<actions>>
<<btn-txt>></$button>
macro-tabs
\define page-name()
<<unusedtitle baseName:page separator:"-" template:"$basename$$separator$$count:5$">>
\end
\define tab-name(name-suf)
<<unusedtitle baseName:$name-suf$ separator:"-" template:"$basename$$separator$$count:5$">>
\end
\define tab-tag-1(tab-suf)
pt/$tab-suf$
\end
\define tab-tags(tag-no)
<<page-name>> pt/tab <<tag-$tag-no$>>
\end
button-main-menu
<$wikify name="new-name" text=<<page-name>>>
<$wikify name="new-name-1" text=<<tab-name tab-inf>>>
<$wikify name="new-name-2" text=<<tab-name tab-lnk>>>
<$wikify name="new-tag-1" text=<<tab-tags 1>>>
<$wikify name="new-tag-2" text=<<tab-tags 2>>>
<$let
new-name=<<new-name>>
new-tag="page"
caption="change the caption to something meaningful"
btn-txt="NEW PAGE"
new-name-1=<<new-name-1>>
tag-1=<<tab-tag-1 tab-inf>>
new-tag-1=<<new-tag-1>>
caption-1="<<tsl tab-inf>>"
sort-1="1"
new-name-2=<<new-name-2>>
tag-2=<<tab-tag-1 tab-lnk>>
new-tag-2=<<new-tag-2>>
caption-2="<<tsl tab-lnk>>"
sort-2="2"
>
<$transclude tiddler="auto-btn-multi"/>
</$let>
</$wikify></$wikify></$wikify></$wikify></$wikify>