To support the rendering of the table of components templates, we need recursive template parsing. While we could restrict this to Vector, it seems useful enough for all skins. In future for example, we're likely to mirror what we do on Vector inside Minerva
TableOfContents
<nav id="mw-panel-toc" class="sidebar-toc" role="navigation" aria-labelledby="sidebar-toc-header"> <div class="sidebar-toc-header"> <h2 class="sidebar-toc-title" aria-hidden="true">Contents</h2> </div> <ul id="table-of-contents"> {{#array-sections}} {{>TableOfContents__row}} {{/array-sections}} </ul> </nav>
TableOfContents__row
<li class="sidebar-toc-level-{{toclevel}}"> <a href="#{{anchor}}"> <div class="sidebar-toc-text"> <span class="sidebar-toc-numb">{{number}}</span>{{{line}}}</div> </a> <ul> {{#array-sections}}{{>TableOfContents__row}}{{/array-subsections}} </ul> </li>