Template:Tree list: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
(Created page with "<templatestyles src="Tree list/styles.css" /><!-- --><div class="treeview"><noinclude> </div> {{Documentation}} </noinclude>")
 
(Test)
Tag: Reverted
Line 1: Line 1:
<templatestyles src="Tree list/styles.css" /><!--
{{#invoke:Tree list|chart}}<noinclude>{{documentation}}[[Category:Diagram templates]]</noinclude>
--><div class="treeview"><noinclude>
</div>
{{Documentation}}
</noinclude>

Revision as of 13:18, 14 October 2021

Script error: No such module "Tree list".

[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: Script error: No such module "Tree list".

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 Script error: No such module "Tree list".

  • 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: Script error: No such module "Tree list".

  • 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