mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-28 04:19:56 +00:00
80256b4dab
* Add string '.htm' to 'Saving with TiddlyIE' * Change external links to match locale with wiki language * Add instructions for use to 'Saving on Android' * Change string in 'task' * Change instructions for use in 'Saving on iPad/iPhone' * Add newline to 'TiddlyDesktop Releases' * Remove caption from 'Serving TW5 from Android' * Change link to external in tiddlers which tagged 'Editions' * Remove string 'index.html' from 'Some of the things you can do with TiddlyWiki' * Change link 'TiddlyWiki Groups' to 'Forums' in tiddlers which tagged 'Community' * Remove CamelCase link 'TiddlyWiki' from tiddlers tagged 'Community' * Change string 'done' to 'Upgrade' in 'UpgradeMechanism' * Change buttons to images in 'How to export tiddlers' * Add images about buttons to tiddlers * Add quotation mark to text 'edit' in 'Signing the Contributor License Agreement' * Rename 'UsingSVG' to 'Using SVG' * Change link 'TypedBlockWikiText' to 'Typed Blocks in WikiText' in 'Using SVG' * Add tiddler 'Using Stamp' * Add 'rel="noopener noreferrer"' to external links * Add description about 'rel="noreferrer"' to 'HTML in WikiText' * Add link of prerelease version about translators edition, and how to translate on Node.js, in 'Translate TiddlyWiki into your language' * Change string 'dropdown' to 'tab' in 'Installing a plugin from the plugin library' * Add download button to 'Empty Edition'
21 lines
908 B
Plaintext
21 lines
908 B
Plaintext
created: 20160424150551727
|
|
modified: 20160608122742084
|
|
tags: [[Customise TiddlyWiki]]
|
|
title: Adding a Table of Contents to the Sidebar
|
|
type: text/vnd.tiddlywiki
|
|
|
|
A customisable [[table of contents|Table-of-Contents Macros]] can be added to the sidebar with the following steps:
|
|
|
|
# Create a tiddler called [[TableOfContents]]
|
|
# Give it the tag ''~$:/tags/SideBar''
|
|
# Set the text to <div><pre><code><$text text="""
|
|
<div class="tc-table-of-contents">
|
|
|
|
<<toc-selective-expandable 'TableOfContents'>>
|
|
|
|
</div>"""/></code></pre></div>
|
|
# Add a ''caption'' field with the text ''Contents''
|
|
# Add a ''list-after'' field with the text ''~$:/core/ui/SideBar/Open''
|
|
|
|
Add entries to the table of contents by creating tiddlers tagged ''~TableOfContents''. An easy way is to choose {{$:/core/images/new-here-button}} ''new here'' from the tiddler toolbar. To create sub-entries, tag them with the name of the parent entry.
|