[email protected] wrote:
> 1) Why am I tagging the Tiddler that has the code with /tags/EditTemplate
> and not core/ui/EditTemplate as the others are listed when I'm reordering
> the tags?
>
The $:/tags/EditTemplate is the common tag for all edittemplates. When you
click that tag you see all tiddlers tagged such. They are typically
tiddlers titled $:/core/ui/something because they are part of the core TW
plugin. Your tiddler is not part of the core plugin so you can call it
whatever you want (also with or without a prefixing $:/ )
> 2) I originally tried pasting Mat's code into the custom edit area of
> Stroll, which also uses the /tags/EditTemplate tag but the define line
> wouldn't activate. Given that both tiddlers follow the same instructions is
> there a reason why one worked and one didn't? The only difference was the
> existence of two other tags and some instructions already in the body of
> the tiddler.
>
All pragmas, i.e all commands with a prefixing \ character, must be grouped
at top of tiddler. If you study some system tiddlers, you'll understand
what is meant with this. That could be one reason why your attempt didn't
work. Another thing is that e.g a \define can be a single row or it is a
multirow that ends with an \end marker. Again, check out some macros or
similar and you'll get the idea.
> 3) Is there a specific place on the TiddlyWiki website where the above
> information is described? When I was attempting to troubleshoot the \define
> line not working I was having a heck of a time trying to follow what was
> written so I'm curious if I was looking in the wrong place.
>
Yes, again, all \ prefixed stuff are called pragmas. You are specifically
concerned with macros here, i.e the thingies that are created with a
\define pragma (and that often end with \end )
As for getting the original name of a tiddler when you're in edit mode, I
thought there should be some filter op for this (is[draft]) but maybe I'm
wrong. Anyway, you should be able to do this to get the non-draft title
when you're in the draft:
\define t() [[$(nondraft)$]] OhterTAG
<$vars nondraft={{{ [<currentTiddler>removeprefix[Draft of
']removesuffix[']] }}} >
<$button><$action-createtiddler $basetitle="MyBase" tags=<<t>>/> x
</$button>
</$vars>
<:-)
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/9a6e73d0-3808-4d03-b370-6f7cc47232f3n%40googlegroups.com.