Template:Tree list: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
Tag: Undo |
No edit summary |
||
Line 3: | Line 3: | ||
</div> | </div> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | [[Category:Diagram templates]]</noinclude> |
Latest revision as of 13:41, 14 October 2021
[edit] [ ] 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:
- {{Tree list}}
- {{Tree list/end}}
- {{Tree list/branching}}
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
- A second 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
-
The above documentation is transcluded from Template:Tree list/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |