Template:MakeBook

Table of contents
No headers

Version as of 13:11, 23 Apr 2024

to this version.

Return to Version archive.

View current version

<h2>Table of Contents</h2>
<div block="var tree = wiki.tree($0 ?? $hPath)">{{ tree }}
<div block="var p = wiki.getpage($0 ?? $hPath)">
<h1>{{ p.title }}</h1>
{{ wiki.page(p.path) }}</div>
<div block="var p = wiki.getpage(num.cast(xml.text(a, '@pageid')))" foreach="var a in tree['//a']">
<h1>{{ p.title }}</h1>
{{ wiki.page(p.path) }}</div>
</div>