Transclusion mode using excision tool

120 views
Skip to first unread message

stevesuny

unread,
Nov 17, 2016, 8:54:20 PM11/17/16
to TiddlyWiki
I've noticed that using the excision tool, my excised text is transcluded without formatting (such as blockquotes). While I can use the <$transclude> widget and specify block="mode" to retain my formatting, this seems to defeat the purpose of the excision tool. Is there a way to set the default transclusion of excised text to block mode? Or would I need to create a macro to do that?

Assuming I would need a macro, how would I reference the excised text in the macro?

Thanks,

//steve.

Mark S.

unread,
Nov 17, 2016, 9:32:15 PM11/17/16
to TiddlyWiki
If you did go with the macro route, your code might look like:

\define excise(title) <$transclude tiddler="""$title$""" mode=block/>


When you do a macro excision, it asks you for the name of the tiddler and the name of a macro. The text gets excised to the named tiddler, and replaced with a macro invocation like <<excise """title of excised tiddler""">> .

HTH
Mark

Thomas Elmiger

unread,
Nov 18, 2016, 11:47:48 AM11/18/16
to TiddlyWiki
Hi Steve

Just to be shure: Do you have linebreaks before and after your transclusion? This used to work for me:

Some text ...

{{Trascluded with excise}}

… more text.

Cheers, Thomas

stevesuny

unread,
Nov 18, 2016, 1:15:24 PM11/18/16
to TiddlyWiki

Thanks, Thomas & Mark. I don't have linebreaks -- I am trying to excise the 2nd half of a paragraph, and then the next paragraph, which is set as a >blockqote

So:

There is other stuff in the paragraph first. And, then, this is the beginning of the text I am excising.

>This is the quote that I also want to include in the excision

When I select that body of text, and it is replaced with {{excide-test-1}} I get this as code:
There is other stuff in the paragraph first. And, then, {{excide-test-1}}

and this as display:


So not sure how to get this to work quite properly.

//steve.





I get this:




Jeremy Ruston

unread,
Nov 18, 2016, 1:33:41 PM11/18/16
to tiddl...@googlegroups.com
Hi Steve

One solution is to ensure that the transclusion appears on a line by itself, followed by two blank lines, which forces the transclusion into block mode.

The other way is to use the excision tool in “macro” mode. With the default macro name of “translink”, you’d then create a global macro definition along these lines:

\define translink(title)
<$transclude tiddler="""$title$""" mode="block"/>
\end

Best wishes

Jeremy.

--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/dab856ec-077d-42d5-93c3-0d2e4bbcecc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steven Schneider

unread,
Nov 21, 2016, 9:39:16 PM11/21/16
to TiddlyWiki
ah yes, thanks Jeremy, that works. //steve.
Reply all
Reply to author
Forward
0 new messages