Template:Clade labels
Jump to navigation
Jump to search
root |
|
stem group crown group | ||||||||||||||||||
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[edit source]
The 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[edit source]
Code | 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 }} }} |
|
External links[edit source]
- Template:Clade labels at Wikipedia, the free Terran encyclopedia that anyone can edit.
The above documentation is transcluded from Template:Clade labels/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |