, !
PmWiki 2.2.119, config.php:
$PmTOC
['Enable'] = 1;
Cookbook:AutoTOC :
- , - ;
- (h1,h2,...);
- -, , 3 ;
- , "localStorage", .. ;
- ;
- ;
-
%block notoc%
; -
(:markup:)
. : (:toc:)
( " "), , ;(:notoc:)
, ,(:toc:)
. , - , .
, . . PageUrl#here
:
!! id %block id=here%
!! [[#here]]
,!! [[#here]]
[[#here]]
!! ,
, , : #toc-1.2.1
, 1.2.1 - " " .
PHP
(local/config.php) :
# / , - 0.$PmTOC
['Enable'] = 1;
# , . -, 6, <h1> <h6>.$PmTOC
['MaxLevel'] = 6;
# . :$PmTOC
['MinNumber'] = 3;
# :$PmTOC
['NumberedHeadings'] = '1.1.1.1.1.1';- . , :
$PmTOC
['NumberedHeadings'] = 'I.1.a';
(I, II, ...), , - (a, b, ...), .
- . , :
# "↑", (-, ).$PmTOC
['EnableBacklinks'] = 1;
# CSS- , . -, , . ,$PmTOC
['ParentElement'] = "#wikitext";(:toc:)
(. ).
XLPage, :
- "Contents" => "",
"show" => "", "hide" => "",
: . , , CSS- :
.PmTOCdiv { float: right; margin-left: 5px; }
. : Cookbook:AutoTOC. AutoTOC, $PmTOC
.
PmWikiRu.GroupFooter -
Backlinks
PmWikiRu.GroupFooter: September 10, 2011, at 06:48 PM
PmWiki.GroupFooter: December 16, 2022, at 12:08 PM