User:Peter coxhead/Test/CladeN

This page tests {{tl|cladeN}} and {{tl|Barlabel}}.

Tests of Barlabel

Height = (2.5 * size)em; Position = (pos * 2.5 - 2)em. This assumes that browsers lay out tables where line-height:100% is set with 2.5em per row, which tests show to be ok for those browsers I've tried. But what about old versions of IE?

=Test 1=

{{Barlabel/sandbox

|size=7

|at1=3|label1=This text should be more-or-less opposite A3|bar1=green

|at2=5.5|label2=This text should be more-or-less opposite a point between G1 and G2|bar2=purple

|cladogram={{cladeN|style=width:auto

|label1=GM

|1={{cladeN

|1=A1

|2=A2|barbegin2=green|state2=double

|3=A3|bar3=green

|label4=M

|4={{cladeN

|1=C1|barend1=green

|label2=C2

|2={{cladeN

|1=G1 |barbegin1=purple

|2=G2|barend2=purple

|3=G3

}}

}}

}}

}}

}}

=Test 2=

{{Barlabel/sandbox|size=6|style=font-size:90%

|label1=Green group|bar1=green|at1=2.5

|label2=Purple group|bar2=purple|at2=5.5

|cladogram=

{{cladeN|style=width:auto

|label1=GM

|1={{cladeN

|1=A1|barbegin1=green

|2=A2|state2=double|bar2=green

|3=A3|bar3=green

|label4=M

|4={{cladeN

|1=C1|barend1=green

|label2=C2

|2={{cladeN

|1=G1 |barbegin1=purple

|2=G2|barend2=purple

}}

}}

}}

}}

}}

=Test 3=

{{Barlabel/sandbox

|size=5|bar1=green|label1="bryophytes"|at1=4

|cladogram={{cladeN

|label1=embryophytes

|1={{cladeN

|1={{cladeN

|1={{cladeN

|label1=polysporangiophytes

|1={{cladeN

|1=tracheophytes

|2=pre-tracheophytes|state2=double

}}

|2=hornworts|barbegin2=green

}}

|2=mosses|bar2=green

}}

|2=liverworts|barend2=green

}}

}}

}}

=Example3=

The brackets can overlap, but the vertical bar can only be of one colour:

{{Barlabel/sandbox

|size=17

|bar1=purple|label1=Purple group|at1=15.5

|bar2=red|label2=Red group|at2=6.5

|bar3=green|label3=Start|at3=1

|bar4=green|label4=End|at4=17

|cladogram={{cladeN

|label1=family

|1={{cladeN

|1=child

|2=child|barbegin2=grey

|3=child|bar3=grey

|4=child|bar4=grey

|5=child|bar5=grey|state5=double

|6=child|barbegin6=red

|7=child|barend7=red

|8=child|barend8=grey

|9=child

|10=child|barbegin10=silver

|11=child|bar11=silver

|12=child|bar12=silver|state12=dashed

|13=child|bar13=silver

|14=child|barend14=silver|barbegin14=purple

|15=child|bar15=purple

|16=child|bar16=purple

|17=child|barend17=purple

}}

}}

}}

=Petter's Example with cladeN only=

{{Barlabel|style=font-size:85%

|size=23

|at1=8.5|label1="Osteolepiforms"|bar1=green

|cladogram=

{{cladeN

|label1=Tetrapodomorpha 

|1={{cladeN

|1=Kenichthys

|2={{cladeN

|label1= Rhizodontida 

|1={{cladeN

|1=Barameda

|2=Gooloogongia}}

|2={{cladeN

|1={{cladeN

|1=Gogonasus | barbegin1=green

|2=Osteolepis | bar2=green

}}

|2={{cladeN

|1={{cladeN

|1={{cladeN

|1=Megalichthys |bar1=green

|2=Cladarosymblema |bar2=green

}}

|2=Ectosteorhachis |bar2=green

}}

|2={{cladeN

|1=Medoevia |bar1=green

|2={{cladeN

|1={{cladeN

|1={{cladeN

|1=Koharolepis |bar1=green

|2=Canowindra |bar2=green

}}

|2=Beelarongia |bar2=green

}}

|2={{cladeN

|1=Gyroptychius |barend1=green

|2={{cladeN

|label1= Tristichopteridae 

|1={{cladeN

|1={{cladeN

|1={{cladeN

|1={{cladeN

|1={{cladeN

|1=Eusthenodon

|2=Mandageria

}}

|2=Cabonnichthys

}}

|2=Platycephalichthys

}}

|2=Jarvikina

}}

|2=Eusthenopteron

|3=Tristichopterus

}}

|2={{cladeN

|1=Panderichthys

|label2= Tetrapoda 

|2={{cladeN

|1=Acanthostega

|2=Ichthyostega

}} }} }} }} }} }} }} }} }} }} }}

}}

=Lilioid monocots=

{{Barlabel

|size=7|bar1=purple|label1=lilioid monocots|at1=4

|cladogram={{cladeN

|label1=monocots

|1={{cladeN

|1=Acorales

|2={{cladeN

|1=Petrosaviales|barbegin1=purple

|2={{cladeN

|1={{cladeN

|1=Dioscoreales|bar1=purple

|2=Pandanales|bar2=purple

}}

|2={{cladeN

|1=Liliales|bar1=purple

|2={{cladeN

|1=Asparagales|barend1=purple

|2=commelinids

}}

}}

}}

}}

}}

}}

}}

Tests of cladeN

=Example 1=

Two groups marked: green = paraphyletic, purple = monophyletic.

{{cladeN|style=width:auto

|label1=GM

|1={{cladeN

|1=A1

|2=A2|barbegin2=green|state2=double

|3=A3|bar3=green

|label4=M

|4={{cladeN

|1=C1|barend1=green

|label2=C2

|2={{cladeN

|1=G1 |barbegin1=purple

|2=G2|barend2=purple

}}

}}

}}

}}

=Example 2=

The start bar on the following cladogram (where green marks the bryophytes) is perhaps a bit ugly. Note that this version of the cladeN template produces a double line for child N by simply specifying stateN = double.

{{cladeN

|label1=embryophytes

|1={{cladeN

|1=liverworts|barbegin1=green

|2={{cladeN

|1=mosses|bar1=green

|2={{cladeN

|1=hornworts|barend1=green

|label2=polysporangiophytes

|2={{cladeN

|1=pre-tracheophytes|state1=double

|2=tracheophytes

}}

}}

}}

}}

}}

Drawing the cladogram the other way round gives:

{{cladeN

|label1=embryophytes

|1={{cladeN

|1={{cladeN

|1={{cladeN

|label1=polysporangiophytes

|1={{cladeN

|1=tracheophytes

|2=pre-tracheophytes|state2=double

}}

|2=hornworts|barbegin2=green

}}

|2=mosses|bar2=green

}}

|2=liverworts|barend2=green

}}

}}

You can just omit the start and end bars and use an ordinary one, but an inherent feature of the way {{tl|cladeN}} works makes the bar always to the right of the rightmost leaf:

{{cladeN

|label1=embryophytes

|1={{cladeN

|1=liverworts|bar1=green

|2={{cladeN

|1=mosses|bar1=green

|2={{cladeN

|1=hornworts|bar1=green

|label2=polysporangiophytes

|2={{cladeN

|1=pre-tracheophytes|state1=double

|2=tracheophytes

}}

}}

}}

}}

}}

=Example3=

The brackets can overlap, but the vertical bar can only be of one colour:

{{cladeN

|label1=family

|1={{cladeN

|1=child

|2=child|barbegin2=grey

|3=child|bar3=grey

|4=child|bar4=grey

|5=child|bar5=grey|state5=double

|6=child|barbegin6=red

|7=child|barend7=red

|8=child|barend8=grey

|9=child

|10=child|barbegin10=silver

|11=child|bar11=silver

|12=child|bar12=silver|state12=dashed

|13=child|bar13=silver

|14=child|barend14=silver|barbegin14=purple

|15=child|bar15=purple

|16=child|bar16=purple

|17=child|barend17=purple

}}

}}

=Example 4=

{{cladeN|style=line-height:100%

| 1=† Eophyllophyton

| 2={{cladeN|state1=double

| 1=† basal groups (Psilophyton crenulatum, Ps. dawsonii)

| 2={{cladeN

| 1=moniliforms (ferns; extant and extinct members)

| 2={{cladeN|state1=double

| 1=† basal groups (Pertica, Tetraxylopteris)

| 2=spermatophytes (seed plants; extant and extinct members)

}}

}}

}}

}}

=Example 5=

{{cladeN | style=font-size:100%;line-height:120%

|label1=angiosperms and some test text

|1={{cladeN

|1=Amborellales

|2={{cladeN

|1=Nymphaeales

|2={{cladeN

|1=Austrobaileyales

|label2=mesangiosperms 

|2={{cladeN

|1={{cladeN

|1=Chloranthales

|label2=magnoliids 

|2={{cladeN

|1={{cladeN

|1=Canellales

|2=Piperales

}}

|2={{cladeN

|1=Magnoliales

|2=Laurales

}}

}}

}}

|2={{cladeN

|label1=monocots 

|1={{cladeN

|1=Acorales

|2={{cladeN

|1=Alismatales

|2={{cladeN

|1=Petrosaviales

|2={{cladeN

|1={{cladeN

|1=Dioscoreales

|2=Pandanales

}}

|2={{cladeN

|1=Liliales

|2={{cladeN

|1=Asparagales

|label2=commelinids 

|2={{cladeN

|1=Dasypogonaceae

|2=Arecales

|3=Poales

|4={{cladeN

|1=Commelinales

|2=Zingiberales

}}

}}

}}

}}

}}

}}

}}

}}

|3={{cladeN

|1=Ceratophyllales

|label2=eudicots 

|2={{cladeN

|1=Ranunculales

|2={{cladeN

|1=Sabiaceae

|2=Proteales

|3={{cladeN

|1=Trochodendrales

|2=Buxales

|label3=core eudicots 

|3={{cladeN

|1=Gunnerales

|2={{cladeN

|1=Dilleniaceae

|2={{cladeN

|1=Saxifragales

|label2=rosids 

|2={{cladeN

|1=Vitales

|label2=eurosids 

|2={{cladeN

|label1=fabids 

|1={{cladeN

|1=Zygophyllales

|2={{cladeN

|1={{cladeN

|1=Celastrales

|2={{cladeN

|1=Oxalidales

|2=Malpighiales

}}

}}

|2={{cladeN

|1=Fabales

|2={{cladeN

|1=Rosales

|2={{cladeN

|1=Fagales

|2=Cucurbitales

}}

}}

}}

}}

}}

|label2=malvids 

|2={{cladeN

|1={{cladeN

|1=Geraniales

|2=Myrtales

}}

|2={{cladeN

|1=Crossosomatales

|2={{cladeN

|1=Picramniales

|2={{cladeN

|1=Sapindales

|2={{cladeN

|1=Huerteales

|2={{cladeN

|1=Brassicales

|2=Malvales

}}

}}

}}

}}

}}

}}

}}

}}

}}

|3={{cladeN

|1=Berberidopsidales

|2={{cladeN

|1=Santalales

|2={{cladeN

|1=Caryophyllales

|label2=asterids 

|2={{cladeN

|1=Cornales

|2={{cladeN

|1=Ericales

|label2=euasterids 

|2={{cladeN

|label1=lamiids 

|1={{cladeN

|1=Garryales

|2={{cladeN

|1=Boraginaceae

|2=Gentianales

|3={{cladeN

|1=Solanales

|2=Lamiales

}}

}}

}}

|2=campanulids*

}}

}}

}}

}}

}}

}}

}}

}}

}}

}}

}}

}}

}}

}}

}}

}}

}}

}}