[tw] Re: A question on Transclusion and Templating (TW5)

2016-08-03 Thread Miles Smith
Thanks, that was exactly what I was looking for and helped me understand 
how templates work. 

One note, I had to add "mode="block" to stop it from breaking my formatting.

On Wednesday, 3 August 2016 14:57:36 UTC+1, Jed Carty wrote:
>
> I think you may find a better way to do what you want, but for now you can 
> make a tiddler and call it something like ShowTiddler and put this as the 
> content:
>
> !!{{!!title}} 
>
> ---
>
> <$transclude/>
>
> Then when you want to display the tiddler MyNote you put 
> {{MyNote||ShowTiddler}} 
>
> Depending on what you want you may find the things I wrote about using 
> lists here http://inmysocks.tiddlyspot.com/#Lists%20in%20WikiText useful
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/2d406c90-eb5e-4f7b-bad4-b9297a402589%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A question on Transclusion and Templating (TW5)

2016-08-03 Thread The Bo
Hi Miles,

you could create a macro like this:

Tiddler:$:/core/macros/tiddlertitle
Tag: $:/tags/Macro
\define tiddlertitle(param)

!!{{$param$!!title}}
---
{{$param$}}

\end

And use it inside a tiddler:
<>

Regards
The Bo

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/3175f31f-b8de-47eb-9554-126203733ced%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A question on Transclusion and Templating (TW5)

2016-08-03 Thread Jed Carty
I think you may find a better way to do what you want, but for now you can make 
a tiddler and call it something like ShowTiddler and put this as the content:

!!{{!!title}} 

---

<$transclude/>

Then when you want to display the tiddler MyNote you put 
{{MyNote||ShowTiddler}} 

Depending on what you want you may find the things I wrote about using lists 
here http://inmysocks.tiddlyspot.com/#Lists%20in%20WikiText useful

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/06380f24-aec5-4f36-a8e4-606b037a5fc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.