Template:Tree list/doc

From Wikisource
Jump to navigation Jump to search

This template is used to create a structured and accessible tree. It is used to display family trees, succession lines, etc. It comprises:

{{Tree list}}

{{Tree list/end}}

Usage[edit]

Basic branches[edit]

Each branch of the tree is built using nested lists.

{{Tree list}}
* A first level branch
** A second level branch
*** A third level branch
{{Tree list/end}}
gives
  • A first level branch
    • A second level branch
      • A third level branch

Unlabelled branches[edit]

An unlabelled branch may be formed by using the {{Tree list/branching}} template.

{{Tree list}}
* A first level branch
** {{Tree list/branching}}
*** A third level branch
*** Another third level branch
*** The final third level branch
** A second level branch
** {{Tree list/branching}}                 <!--- This branch ends the second level --->
*** A third level branch
*** The final third level branch
{{Tree list/end}}
gives
  • A first level branch
      • A third level branch
      • Another third level branch
      • The final third level branch
    • A second level branch
      • A third level branch
      • The final third level branch