Template:ListSubpages

<p>&lt;% // Inserts a tree of subpages of the specified page. // // Parameters: // $0 - The path of the page whose subpages should be listed // $1 - The depth of the tree to build; if not specified, only one level is listed // $2 - If specified and non-zero, the list is sorted in reverse // $3 - If specified and non-zero, the list is output as</p>
<ol>
  <li>instead of the default
    <ul>
      <li>var path = $0 || env.path; var depth = $1 || 1; var reverse = $2 || 0; var ordered = $3 || 0; %&gt; &lt;%- wiki.tree(path, depth, 0, reverse, ordered) %&gt;</li>
    </ul>
  </li>
</ol>
Search for pages that use Template:ListSubpages to see example use cases and how many pages use this macro.

Document Tags and Contributors

Contributors to this page: nasirkhan
Last updated by: nasirkhan,