plugin:toctweak
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:toctweak [2018-01-06 14:37] – s.sahara | plugin:toctweak [2023-12-04 21:10] (current) – [Control macro for DokuWiki built-in TOC] Fix typo 177.208.41.57 | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : sahara.satoshi@gmail.com | email : sahara.satoshi@gmail.com | ||
type : syntax, action | type : syntax, action | ||
- | lastupdate : 2017-12-09 | + | lastupdate : 2018-01-08 |
- | compatible : Binky, Ponder Stibbons, | + | compatible : Hrun, Detritus, |
depends | depends | ||
conflicts | conflicts | ||
Line 13: | Line 13: | ||
tags : toc | tags : toc | ||
- | downloadurl: | + | downloadurl: |
bugtracker : https:// | bugtracker : https:// | ||
sourcerepo : https:// | sourcerepo : https:// | ||
Line 23: | Line 23: | ||
===== Installation ===== | ===== Installation ===== | ||
- | Install | + | Search and install |
Current development work in progress under Version 2.x series. | Current development work in progress under Version 2.x series. | ||
Line 39: | Line 39: | ||
< | < | ||
- | ~~CLOSETOC~~ | + | ~~CLOSETOC~~ |
- | ~~TOC 2-3~~ Headlines within level 2 to 3 range are picked up in the TOC | + | ~~TOC 2-3~~ Headlines within level 2 to 3 will appear |
- | ~~TOC 2-3 wide~~ | + | ~~NOTOC 2-3~~ No TOC box on the page, but set headline level parameter |
- | ~~TOC_HERE 2-3~~ TOC box will appear | + | ~~TOC 2-3 wide~~ |
- | ~~NOTEC 2-3~~ No TOC box on the page, but set headline level parameters | + | ~~TOC_HERE 2-3~~ Locate the TOC box where the macro is placed in the page |
</ | </ | ||
== Note == | == Note == | ||
- | * The built-in toc box should be one per page, therefore more than once "'' | + | |
- | * use headlines level parameters "// | + | |
==== METATOC: Another method to show TOC (in different looks/ | ==== METATOC: Another method to show TOC (in different looks/ | ||
- | {{ https:// | + | {{ https:// |
- | %%TOC%% Tweak plugin provides following syntax to render toc block in pages where it is located in source. These are implemented as variants of basic **METATOC** syntax, and can be used multiple times in a page. | + | TocTweak |
- '' | - '' | ||
Line 61: | Line 61: | ||
- '' | - '' | ||
- | METATOC syntax family | + | METATOC syntax family |
{{METATOC 3-3 >: | {{METATOC 3-3 >: | ||
Line 69: | Line 69: | ||
== Note == | == Note == | ||
- | * The section title may contains spaces, therefore headline level parameter | + | * The section title may contains spaces, therefore headline level parameter must be given before " |
* set %%TOC%% title blank (given after " | * set %%TOC%% title blank (given after " | ||
* SIDETOC ignores //n-m// parameter, which will be retrieved from metadata of current page. | * SIDETOC ignores //n-m// parameter, which will be retrieved from metadata of current page. | ||
- | |||
---- | ---- | ||
Line 91: | Line 90: | ||
* Above example will exclude the page title (i.e. the first level 1 heading) from the TOC. Headings from level 2 to 4 included in the automatically generated Table of Contents. | * Above example will exclude the page title (i.e. the first level 1 heading) from the TOC. Headings from level 2 to 4 included in the automatically generated Table of Contents. | ||
* You can tweak either top or max level of headings, for example:< | * You can tweak either top or max level of headings, for example:< | ||
- | ~~TOC:2~~ | + | ~~TOC 2~~ |
- | ~~TOC:-3~~ | + | ~~TOC -3~~ |
</ | </ | ||
Line 121: | Line 120: | ||
The plugin can be configured with the Configuration Manager in the admin menu. | The plugin can be configured with the Configuration Manager in the admin menu. | ||
- | ^'' | + | ^'' |
- | |::: | 0: default (top-right) | + | ^'' |
- | |::: | 1: after First Level 1 headline| | + | |::: | 0: default (top-right) |
- | |::: | 2: after First Level 2 headline | | + | |::: | 1: after the First Level 1 headline | |
- | |::: | 6: after First headline | | + | |::: | 2: after the First Level 2 headline | |
- | |::: | 9: disable | + | |::: | 6: after the First headline |
- | ^'' | + | |::: | 9: disable %%auto-TOC%%. |
- | ^'' | + | ^'' |
- | ^'' | + | ^'' |
+ | ^'' | ||
+ | TocTweak plugin supersedes global config settings [[: | ||
---- | ---- | ||
Line 138: | Line 139: | ||
==== Backward incompatible changes ==== | ==== Backward incompatible changes ==== | ||
- | **ver.2 (not yet released)** | + | **ver.2 (2018-01-08)** |
- Previously in version 1.x, '' | - Previously in version 1.x, '' | ||
- DokuWiki %%Auto-TOC%% must exist only one per page whenever it should be shown. Use of '' | - DokuWiki %%Auto-TOC%% must exist only one per page whenever it should be shown. Use of '' | ||
- | + | ==== Change Log from github repository | |
- | === Change Log from github repository === | + | |
{{rss> | {{rss> | ||
- | |||
- | === ToDo/Wish List === | ||
- | |||
- | * better code | ||
- | * move TOC into the sidebar, like %%{{SIDETOC}}%% ? | ||
- | * Option to disable the built-in TOC while keeping the Toctweak TOC enabled \\ -> done at 2014-04-26 release | ||
==== Bug reports and feature requests ==== | ==== Bug reports and feature requests ==== | ||
Line 160: | Line 154: | ||
===== Discussion ===== | ===== Discussion ===== | ||
- | Here are **obsoleted** topics of %%TOC%% Tweak plugin Version 1.x | + | Here are **obsoleted** topics of TocTweak |
---- | ---- |
plugin/toctweak.1515245832.txt.gz · Last modified: 2018-01-06 14:37 by s.sahara