PmWikiRu /
, !
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.TableOfContents -
Backlinks
PmWikiRu.TableOfContents: February 23, 2020, at 01:43 PM EST
PmWiki.TableOfContents: December 17, 2022, at 11:18 AM EST