Пређи на садржај

Модул:Clade/док

С Википедије, слободне енциклопедије

Ово је документациона подстраница за Модул:Clade


This module is designed to be used with the clade template to draw phylogenetic trees or cladograms. The new template-module combination extends the feature available with the clade and cladex templates, while replicating the behaviour of the older templates written with the template language. This module is copied from the test version en:Module:Sandbox/Jts1882/CladeN, which was used with the template en:Template:CladeN to test the features during development.

Additionally, the module has the code for a prototype [User:Jts1882/sandbox/templates/NewickConverter|NewickConverter] template, which converts Newick strings into clade structure. This is not to be used in wikipedia articles, but is a utility to help construct cladograms for inclusion in articles.

The diagram below gives an overview of the features. See the template documentation for a more detailed description of how to use the templates.

{{#invoke:Clade|main|style={{{style}}}}}

Simple examples mimicking the clade template:

Example demonstrating more advanced features of cladeN:

Example demonstrating features available:

Template:CladeN
Demo
Node structure
label1

leaf 1

label2

leaf 2

label3
label A

leaf A

label B

leaf B

 leaf 3 is a transcluded cladeN structure
(brackets)

 

Leaf styling
thicknessN

1 (default)

2

 line thickness

3

colorN

black (default)

red

blue

 #00ff00

stateN

solid (default)

dotted

dashed

 line styles

none

double

(branches)
node styling
thickness

I

J

K

color

A

B

C

state

X

Y

Z

(brackets)
newick
subtree
panthera

lion

jaguar

leopard

tiger

siberian

bengal

snow leopard

 expanded Newick string
string

((lion,jaguar,leopard),((siberian,bengal)tiger,snow leopard))panthera

paraphyly example 

Geraniales

Myrtales

x

Crossosomatales

Picramniales

Sapindales

Huerteales

Brassicales

Malvales

 paraphyletic group x

A cladogram illustrating cladeN features.