2022-02-07 19:20:17 +00:00
|
|
|
<li id="toc-{{anchor}}" class="sidebar-toc-list-item sidebar-toc-level-{{toclevel}}">
|
|
|
|
<a class="sidebar-toc-link" href="#{{anchor}}">
|
|
|
|
<div class="sidebar-toc-text">
|
|
|
|
<span class="sidebar-toc-numb">{{number}}</span>{{{line}}}</div>
|
|
|
|
</a>
|
|
|
|
{{!
|
|
|
|
The following <ul> is placed on *one* line in order to leverage the
|
|
|
|
CSS `:empty` selector and hide the downTriangle icon when there are no sub-sections.
|
|
|
|
(`:empty` means no whitespace).
|
|
|
|
}}
|
|
|
|
<ul class="sidebar-toc-list">{{#array-sections}}{{>TableOfContents__line}}{{/array-sections}}</ul>
|
2022-02-15 22:43:04 +00:00
|
|
|
<button class="mw-ui-icon mw-ui-icon-wikimedia-downTriangle mw-ui-icon-small sidebar-toc-toggle"></button>
|
2022-02-07 19:20:17 +00:00
|
|
|
</li>
|