mediawiki-skins-Citizen/templates/TableOfContents.mustache

31 lines
1.1 KiB
Plaintext

{{#data-toc}}
<div class="citizen-toc citizen-menu-checkbox-container">
<input
type="checkbox"
id="citizen-toc__checkbox"
class="citizen-menu-checkbox-checkbox"
role="button"
aria-labelledby="citizen-toc__buttonCheckbox"
aria-haspopup="true">
<label
id="citizen-toc__buttonCheckbox"
class="citizen-menu-checkbox-button"
for="citizen-toc__checkbox"
title="{{msg-toc}}"
aria-hidden="true">
<span class="citizen-ui-icon mw-ui-icon-wikimedia-listBullet"></span>
<span id="mw-panel-toc-label">{{msg-toc}}</span>
</label>
<nav id="mw-panel-toc" class="citizen-toc__card citizen-menu-checkbox-target" role="navigation" aria-labelledby="mw-panel-toc-label">
<a class="citizen-toc__top citizen-toc__link" title="{{html-citizen-jumptotop}}" href="#top">
<div class="citizen-toc__text">{{msg-citizen-jumptotop}}</div>
</a>
<div id="mw-panel-toc-label" class="citizen-toc__header">{{msg-toc}}</div>
<ul class="citizen-toc__contents" id="mw-panel-toc-list">
{{#array-sections}}
{{>TableOfContents__line}}
{{/array-sections}}
</ul>
</nav>
</div>
{{/data-toc}}