David,

It was not obvious to me what Tony & Jeremy meant by "using a template 
parameter" as I was not aware of how it is used!

If you look on the last line on the documentation for Table-of-Contents 
Macros <https://tiddlywiki.com/#Table-of-Contents%20Macros>, it says:

*template*         Optionally, the title of a tiddler to use as a template 
> <https://tiddlywiki.com/#TemplateTiddlers> for transcluding the selected 
> tiddler into the right-hand panel


So the correct way is to create a template tiddler, say named : 
*CustomTocTemplate*

Put the following in that tiddler:


<h1><<toc-caption>></h1>
<$transclude mode="block">$missingText$</$transclude>

Then when you define your Table if Contents, you do it similar to this:



<$macrocall
    $name="toc-tabbed-internal-nav"
    tag="TableOfContents"
    *template="CustomTocTemplate"*
    selectedTiddler="$:/temp/toc/selectedTiddler"
    unselectedText="<p>Select a topic in the table of contents. Click the 
arrow to expand a topic.</p>"
    missingText="<p>Missing tiddler.</p>"
/>


Don't forget to undo the changes you made earlier by simply deleting the 
edited shadow tiddler : *$:/core/macros/toc*


Apologies for the earlier not so hot quick fix!



-- 
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/8b8f093a-ed16-428a-aab9-778d4721bdff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to