Template:Tree list

From MicrasWiki
Jump to navigationJump to search
[edit] [purge] Template documentation

This family of templates can be used to create a properly structured and accessible tree. This can be used to display family trees, succession to thrones, etc. They comprise:

Syntax

Start and finish of the tree

The tree must include a start and finish, using the templates {{Tree list}} and {{Tree list/end}} respectively. The tree is essentially a series of nested lists built with the asterisk *.

{{Tree list}}
* Here goes the content of the tree using asterisks.
{{Tree list/end}}

The branches of the tree

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}}

produces

  • A first level branch
    • A second level branch
      • A third level branch

Unlabelled branches

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}}

produces the following:

  • 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