Module:Sandbox/Jts1882/CladeN/doc: Difference between revisions

Content deleted Content added
update and add addition table for grouplabel (not yet modified) Technical background
add group label structure Add right hand labels with grouplabel
Line 117:
! Code using clade template
|-
| style="width:25%;" |
| style="width:25%;" |<p>A simple clade structure with a single child node (or leaf).</p><p>This is an HTML table with two rows and two columns. The upper and lower cells in the left column hold the labels provided by {{para|label}} and {{para|sublabel}} parameters, respectively. The the cells of the righthand column are merged using the rowspan attribute.</p>
<p>Bar adds a solid line to the right of the column containing the leaves.
<p>Group label adds an third column to the basic 2x2 clade structure. As with the leaf the two cells are merged using the rowspan attribute.</p>
|style="padding:50px" |
{| style="line-height:100%;border:1px dotted red;margin:1px;"
|-
| style="border:1px dotted green;border-bottom:3px solid black;text-align:center;" | labelA
| rowspan=2 style="border:1px dotted green;border-right:2px solid blue;padding:0.1em2em;" | Leaf&nbsp;A&nbsp;
| rowspan=2 style="border:1px dotted green;padding:0.2em;" | Grouplabel&nbsp;A
Leaf A
 
|-
| style="border:1px solid green;" | sublabelA
Line 131 ⟶ 134:
|label1=labelA
|sublabel1=sublabelA
|1=Leaf&nbsp;A&nbsp;
|1=LeafA
|bar1=blue
|grouplabel1=Grouplabel&nbsp;A
}}
|style="padding:20px" |<pre>
Line 137 ⟶ 142:
|label1=labelA
|sublabel1=sublabelA
|1=LeafALeaf&nbsp;A
|bar1=blue
|grouplabel1=Grouplabel&nbsp;A
}}</pre>
|-
Line 145 ⟶ 152:
|-
| style="border:1px dotted green;border-bottom:3px solid black;text-align:center;" | labelA
| rowspan=2 style="border:1px dotted green;border-right:2px solid blue; padding:0.1em2em;" |
{| class="clade" style="line-height:100%;border:1px dotted red;margin:1px;"
|-
Line 158 ⟶ 165:
| style="border:1px dotted green;" | sublabel2
|}
| rowspan=2 style="border:1px dotted green;padding:0.2em;" | Grouplabel&nbsp;A
|-
| style="border:1px solid green;" | sublabelA
Line 163 ⟶ 171:
|style="padding:20px" |
{{cladeN |thickness=3
|label1=labelA |sublabel1=sublabelA
|grouplabel1=Grouplabel&nbsp;A
|sublabel1=sublabelA
|bar1=blue
|1={{cladeN |thickness=3
|label1=label1
|sublabel1=sublabel1
|1=&nbsp;leaf1&nbsp;
|label2=label2
|sublabel2=sublabel2
|2=&nbsp;leaf2&nbsp;
}}
}}
|style="padding:20px" |<pre>
{{cladeN |thickness=3
|label1=labelA |sublabel1=sublabelA
|grouplabel1=Grouplabel&nbsp;A
|sublabel1=sublabelA
|bar1=blue
|1={{cladeN |thickness=3
|label1=label1
|sublabel1=sublabel1
|1=leaf1&nbsp;
|label2=label2
|sublabel2=sublabel2
|2=leaf2&nbsp;
}}
}}</pre>