Template:Clade/doc

This template is used for drawing branching trees with the node and base labels being clickable links. Such diagrams are especially suited to represent evolutionary trees (cladograms).

See Cladex for two extra features:
 * Double lines leading to a node can be produced as easily as dotted lines.
 * Brackets or bars of a chosen colour can be placed to the right of a set of leaf nodes in the cladogram, thus allowing paraphyletic groups to be identified.

Usage
produces

produces

produces

Note that the order of the parameters does not matter. Exactly the same output is produced by

produces

To replace a solid line leading to the Nth child with a dashed line, use |stateN=dashed.

produces

Tips
An easy way of creating larger cladograms is to use the Newick format and proceed to edit it using a suitable text editor to produce the markup.


 * 1) Start with Newick format ((a,b),(c,d))
 * 2) Replace "(" with ""
 * 3) Edit to replace commas with pipes and numbers
 * 4) Edit clade labels if needed

Example Perl script to automate the conversion:

Using a box
You can nest the templates and use links around the text. You may use non-breaking spaces (&amp;nbsp;) to obtain spaces or to have labels that have spaces.

The entire cladogram can be placed in a box so that text flows nicely around it. You can use undefined to produce the box.

Limitations
Clade works by producing hidden tables. The horizontal and vertical lines making up the tree are actually the edges of table cells. The tables are then drawn by the browser or user agent using its internal algorithms. As these differ from browser to browser, the trees drawn produced will not look the same on all browsers.

Clade has some size limitations.
 * It currently allows only a maximum of 17 children per node. It may seem that this could easily be increased by editing the templates, but see the next point.
 * It will only expand a cladogram up to a certain level of complexity. The cladogram at APG_III_system has had to be broken into two parts, because Clade will not handle the entire cladogram; it runs out of the allowed resources for template expansion. Any change to the template could result in large cladograms failing to display correctly.

ast:Plantía:Clade ar:قالب:كلاد de:Vorlage:Clade dsb:Pśedłoga:Clade eo:Ŝablono:Klado es:Plantilla:Clade fr:Modèle:Clade gl:Modelo:Clade he:תבנית:קלד hr:Predložak:Klad hsb:Předłoha:Clade hy:Կաղապար:Clade id:Templat:Klad it:Template:Clade ja:Template:Clade ka:თარგი:Clade mk:Шаблон:Клад nl:Sjabloon:Clade pl:Szablon:Klad pt:Predefinição:Clade ru:Шаблон:Clade th:แม่แบบ:Clade uk:Шаблон:Clade zh:Template:Clade