Vorlage:Clade/Doku

Aus Kitakien

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Doku - erstmal auf englisch via c&p)
Zeile 1: Zeile 1:
-
<includeonly>{{template doc page transcluded}}</includeonly>
 
-
<noinclude>{{template doc page viewed directly}}</noinclude>
 
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE
Zeile 120: Zeile 118:
</nowiki>
</nowiki>
</pre>
</pre>
-
 
+
<!--
==Using a box==
==Using a box==
You can nest the templates and use links around the text. You may use non-breaking spaces (&amp;nbsp;) to obtain spaces or to have labels that have spaces.
You can nest the templates and use links around the text. You may use non-breaking spaces (&amp;nbsp;) to obtain spaces or to have labels that have spaces.
Zeile 174: Zeile 172:
   }}
   }}
}}</pre>
}}</pre>
 +
 +
-->
<includeonly>
<includeonly>

Version vom 19:06, 6. Aug. 2009

How to use the template

This template is used for illustrating branching trees with the nodes and base labels being clickable links. They are especially suited to represent evolutionary trees.


{{clade
|label1=Base
|1=Node
}}

produces


Base

Node



{{clade
|1={{clade
   |label1=[[Subtree1]]
   |1=Leaf1
   |label2=Subtree2
   |2=[[Leaf2]]
   }}
}}

produces



Subtree1 

Leaf1


Subtree2 

Leaf2




{{clade| style=font-size:75%;line-height:75%
|1={{clade
   |label1=Subtree1
   |1=Leaf1
   |label2=Subtree2
   |2=Leaf2
   }}
}}

produces



Subtree1

Leaf1


Subtree2

Leaf2




{{clade
|1={{clade
   |1={{clade | thickness=3
      |1=Leaf1
      |2=Leaf2
      }}
   |2=Leaf3
   }}
}}

produces





Leaf1



Leaf2




Leaf3



Editing tip

An easy way of creating larger cladograms is to use the Newick format and proceed to edit it using a suitable text editor to produce the markup.

  1. Start with Newick format ((a,b),(c,d))
  2. Replace "(" with "{{clade|"
  3. Replace ")" with "}}"
  4. Edit to replace commas with pipes and numbers
  5. Edit clade labels if needed

{{clade
 |1={{clade
    |1=a
    |2=b
    }}
 |2={{clade
    |1=c
    |2=d
    }}
}}


Persönliche Werkzeuge