, !
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) :
$PmTOC
['Enable'] = 1;
# / , - 0.
$PmTOC
['MaxLevel'] = 6;
# , . -, 6, <h1> <h6>.
$PmTOC
['MinNumber'] = 3;
# . :
$PmTOC
['MinNumber'] = 2;
# ;
$PmTOC
['MinNumber'] = 9999999;
# , (:toc:)
. , !
$PmTOC
['NumberedHeadings'] = '1.1.1.1.1.1';
# :
- . , :
$PmTOC
['NumberedHeadings'] = 'I.1.a';
(I, II, ...), , - (a, b, ...), .
$PmTOC
['EnableBacklinks'] = 1;
# "↑", (-, ).
$PmTOC
['ParentElement'] = "#wikitext";
# CSS- , . -, , . , (:toc:)
(. ).
XLPage, :
- "Contents" => "",
"show" => "",
"hide" => "",
: . , , CSS- :
.PmTOCdiv {
float: right;
margin-left: 5px;
}
. : Cookbook:AutoTOC. AutoTOC, $PmTOC
.
PmWiki.TableOfContents -
PmWikiRu.TableOfContents -
Rückverweise
PmWikiRu.TableOfContents: 23.02.2020 19:43 Uhr
PmWiki.TableOfContents: 29.12.2023 12:02 Uhr