Mall:Tree list/end
[visa] [redigera] [rensa sidcachen]
Dokumentation
Den här mallen använder TemplateStyles. Stilmallarna finns på Mall:Tree list/Styles.css |
Den här mallen är importerad från engelskspråkiga Wikipedia.
This family of templates can be used to create a properly structured and accessible tree. This can be used to display cladograms, family trees, succession to thrones, etc. They comprise:
{{Tree list}}
{{Tree list/end}}
Syntax
[redigera wikitext]Start and finish of the tree
[redigera wikitext]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
[redigera wikitext]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
Final branches
[redigera wikitext]It will be noticed that the example above has a rouge link below the last entry. In order to display the final branches properly, it is necessary to use the template {{Tree list/final branch}}
like so:
{{Tree list}} * A first level branch ** A second level branch *** A third level branch *** Another third level branch *** {{Tree list/final branch}} The final third level branch ** Another second level branch ** {{Tree list/final branch}} The final second level branch {{Tree list/end}}
which produces
- A first level branch
- A second level branch
- A third level branch
- Another third level branch
- The final third level branch
- Another second level branch
- The final second level branch
- A second level branch
Unlabelled branches
[redigera wikitext]An unlabelled branch may be formed by using the {{Tree list/branching}}
template or, if it is the final branch, the {{Tree list/final branching}}
template.
{{Tree list}} * A first level branch ** {{Tree list/branching}} *** A third level branch *** Another third level branch *** {{Tree list/final branch}} The final third level branch ** A second level branch ** {{Tree list/final branching}} <!--- This branch ends the second level ---> *** A third level branch *** {{Tree list/final 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
-