Difference between revisions of "Template:Clade/doc/common"
Jump to navigation
Jump to search
imported>Peter coxhead (→Large cladograms: update) |
imported>Jts1882 (create styling section for branches and brackets →Usage) |
||
| Line 83: | Line 83: | ||
}} | }} | ||
| − | <pre> | + | |
| + | ===Styling brackets and branches=== | ||
| + | |||
| + | {| class="wikitable" | ||
| + | !Description | ||
| + | !Template code | ||
| + | !Resulting output | ||
| + | |- | ||
| + | | style="width:25%;vertical-align:top;" | '''Styling brackets''' | ||
| + | |||
| + | The thickness, colour and state (solid, dashed, etc) of bracket lines can be changed using the <code>thickness=</code>, <code>|color=</code> and <code>|state=</code> parameters. | ||
| + | |||
| + | |<pre> | ||
<nowiki> | <nowiki> | ||
{{clade | {{clade | ||
| − | |1={{ | + | |label1=Bracket styling |
| − | + | |sublabel1=(no suffix) | |
| − | |1= | + | |style1x=background-color:#ffffee; |
| − | + | |1={{Clade | |
| + | |label2=color | ||
| + | |2={{Clade |color=red | ||
| + | |1=A | ||
| + | |2=B | ||
| + | |3=C | ||
| + | }} | ||
| + | |label1=thickness | ||
| + | |1={{Clade |thickness=3 | ||
| + | |1=I | ||
| + | |2=J | ||
| + | |3=K | ||
| + | }} | ||
| + | |label3=state | ||
| + | |3={{Clade |state=dashed | ||
| + | |1=X | ||
| + | |2=Y | ||
| + | |3=Z | ||
| + | |||
| + | }} | ||
}} | }} | ||
| − | + | }} | |
| − | + | ||
| − | + | </nowiki> | |
</pre> | </pre> | ||
| − | + | | | |
{{clade | {{clade | ||
| − | |1={{ | + | |label1=Bracket styling |
| − | + | |sublabel1=(no suffix) | |
| − | |1= | + | |style1x=background-color:#ffffee; |
| − | + | |1={{Clade | |
| + | |label2=color | ||
| + | |2={{Clade |color=red | ||
| + | |1=A | ||
| + | |2=B | ||
| + | |3=C | ||
| + | }} | ||
| + | |label1=thickness | ||
| + | |1={{Clade |thickness=3 | ||
| + | |1=I | ||
| + | |2=J | ||
| + | |3=K | ||
| + | }} | ||
| + | |label3=state | ||
| + | |3={{Clade |state=dashed | ||
| + | |1=X | ||
| + | |2=Y | ||
| + | |3=Z | ||
| + | |||
| + | }} | ||
}} | }} | ||
| − | |||
| − | |||
}} | }} | ||
| − | + | |- | |
| − | + | | style="width:25%;vertical-align:top;" |'''Styling individual branches''' | |
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | The thickness, colour and state of individual branch lines can be changed using the <code>thicknessN=</code>, <code>|colorN=</code> and <code>|stateN=</code> parameters, where N is the number of the branch to be styled. | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | < | ||
| − | + | |<pre> | |
| − | |||
| − | <pre> | ||
<nowiki> | <nowiki> | ||
{{clade | {{clade | ||
| − | |1={{ | + | |label1=Branch styling |
| − | |1={{ | + | |sublabel1=(append branch number) |
| − | |1= | + | |style1x=background-color:#eeeeee; |
| − | + | |1={{Clade | |
| + | |label2=colorN | ||
| + | |2={{Clade | ||
| + | |1=black (default) |color1=black | ||
| + | |2=red |color2=red | ||
| + | |3=blue |color3=blue | ||
| + | |4= #00ff00 |color4=#00ff00 | ||
| + | }} | ||
| + | |label1=thicknessN | ||
| + | |1={{Clade | ||
| + | |1=1 (default) |thickness1=1 | ||
| + | |2=2 |thickness2=2 | ||
| + | |3=3 |thickness3=3 | ||
| + | }} | ||
| + | |label3=stateN | ||
| + | |3={{Clade | ||
| + | |1=solid (default) |state1=solid | ||
| + | |2=dotted |state2=dotted | ||
| + | |3=dashed |state3=dashed | ||
| + | |4=none |state4=none | ||
| + | |5=double |state5=double | ||
| + | }} | ||
}} | }} | ||
| − | |||
| − | |||
}} | }} | ||
| + | |||
</nowiki> | </nowiki> | ||
</pre> | </pre> | ||
| − | + | ||
| + | | | ||
{{clade | {{clade | ||
| − | |1={{ | + | |label1=Branch styling |
| − | |1={{ | + | |sublabel1=(append branch number) |
| − | |1= | + | |style1x=background-color:#eeeeee; |
| − | + | |1={{Clade | |
| + | |label2=colorN | ||
| + | |2={{Clade | ||
| + | |1=black (default) |color1=black | ||
| + | |2=red |color2=red | ||
| + | |3=blue |color3=blue | ||
| + | |4= #00ff00 |color4=#00ff00 | ||
| + | }} | ||
| + | |label1=thicknessN | ||
| + | |1={{Clade | ||
| + | |1=1 (default) |thickness1=1 | ||
| + | |2=2 |thickness2=2 | ||
| + | |3=3 |thickness3=3 | ||
| + | }} | ||
| + | |label3=stateN | ||
| + | |3={{Clade | ||
| + | |1=solid (default) |state1=solid | ||
| + | |2=dotted |state2=dotted | ||
| + | |3=dashed |state3=dashed | ||
| + | |4=none |state4=none | ||
| + | |5=double |state5=double | ||
| + | }} | ||
}} | }} | ||
| − | |||
| − | |||
}} | }} | ||
| − | } | + | |} |
| + | |||
===Tips=== | ===Tips=== | ||
Revision as of 13:02, 1 August 2018
50px Template documentation
This is the common part of the documentation for what used to be two templates {{Clade}} and {{Cladex}}, and needs to be replaced. For now, set the first parameter to "cladex" to select the full version.
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |