mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 17:40:12 +00:00
301e09916d
Bug: T300167 Change-Id: If1150a9e018b232da900187383aaee9c9cf331a1
14 lines
652 B
Plaintext
14 lines
652 B
Plaintext
<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>
|
|
<button class="mw-ui-icon mw-ui-icon-wikimedia-downTriangle mw-ui-icon-small sidebar-toc-toggle"></button>
|
|
</li>
|