![]() | This is a documentation subpage for Template:Clade labels. It may contain 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 |grouplabelN=
and adding multiple labels with defined positions.
The functionality of this template is similar to {{barlabel}}.
Parameters
editThe following parameters apply to each label:
|labelN=
(where N is 1,2, ... N) – the text to place in the label|topN=
– the position of the label from the top of the table cell containing the group label. It is recommended that the value be given in %, e.g. 50% to center the label. This is the CSS property so the values can also be given in other units.|bottomN=
,|leftN=
,|leafN=
– similar to|topN=
these parameters position the bottom, left and right of the label. The behaviour is counter-intuitive. Because|leftN=
shifts the left edge of the label, the result is a shift to the right.|styleN=
– add CSS styleing specific to the numbered label.|colorN=
– changes the color of text in the label.
The following parameters apply to all the labels in the group:
|width=
– fixes the width of the element containing the group of labels. This is useful because the positioning uses absolute CSS positions so they don't automatically change the size of the parenet element. As a result the labels can appear outside the parent element.|style=
– applies a common CCS style to all the labels|left=
– shifts all the labels to the right.|top=
,|bottom=
,|right=
– similar to|left=
these shift the positions of all the labels|color=
– changes the color of text in all the labels.
Example
editCode | Output | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{clade
|label1=root
|1={{clade
|1=Leaf 1 |bar1=green
|2={{clade
|1=Leaf 2 |bar1=green
|bar2=red
|2={{clade
|1=Leaf 3
|2=Leaf 4
}}
}}
}}
|grouplabel1={{clade labels |width=10em;
|label1=stem group |top1=20% |color1=green
|label2=crown group |top2=70% |color2=red
}}
}}
|
|