Difference between revisions of "Template:Clade label/doc"
Jump to navigation
Jump to search
imported>Jts1882 (add comparison to simple label (this won't display correctly until module updated) →Example) |
imported>Jonesey95 (show actual comparison) |
||
| Line 20: | Line 20: | ||
|2={{clade | |2={{clade | ||
|1=Leaf 2 | |1=Leaf 2 | ||
| − | |sublabel2= | + | |sublabel2=long label that stretches the cladogram |
|2={{clade | |2={{clade | ||
|1=Leaf 3 | |1=Leaf 3 | ||
| Line 34: | Line 34: | ||
|2={{clade | |2={{clade | ||
|1=Leaf 2 | |1=Leaf 2 | ||
| − | |sublabel2= | + | |sublabel2=long label that stretches the cladogram |
|2={{clade | |2={{clade | ||
|1=Leaf 3 | |1=Leaf 3 | ||
Latest revision as of 06:54, 7 February 2020
| This is a documentation subpage for Template:Clade label. It contains usage information, categories and other content that is not part of the original template page. |
This is a utility template for labelling cladograms made with the {{clade}} template. In particular it is for use with |labelN= and |sublabelN= to enable long labels without stretching the cladogram horizontally.
Usage
{{clade label|long label that doesn't stretch the cladogram}}
This returns a label in a div element that is positioned absolutely against the right edge of a parent div element.
Example
| Description | Code | Output | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Simple long |sublabel= |
{{clade
|label1=root
|1={{clade
|1=Leaf 1
|2={{clade
|1=Leaf 2
|sublabel2=long label that stretches the cladogram
|2={{clade
|1=Leaf 3
|2=Leaf 4
}}
}}
}}
}} |
| |||||||||||||||||||||
| Use of {{clade label}} |
{{clade |style=float:right;
|label1=root
|1={{clade
|1=Leaf 1
|2={{clade
|1=Leaf 2
|sublabel2={{clade label|long label that doesn't stretch the cladogram}}
|2={{clade
|1=Leaf 3
|2=Leaf 4
}}
}}
}}
}} |
|