2025 RationalWiki 'Oregon Plan' Fundraiser

There is no RationalWiki without you. We are a small non-profit with no staff—we are hundreds of volunteers who document pseudoscience and crankery around the world every day. We will never allow ads because we must remain independent. We cannot rely on big donors with corresponding big agendas. We are not the largest website around, but we believe we play an important role in defending truth and objectivity.

Fighting pseudoscience isn't free.
We are 100% user-supported! Help and donate $5, $10, $20 or whatever you can today with PayPal Logo.png!
Donations so far: $5273.29Goal: $10000

Template:Clade/doc

From RationalWiki
Jump to navigation Jump to search

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 tips

  • To create these "larger spaces" (indentations), you can press Tab — however unfortunate, many browsers already linked Tab to some other function. If that is the case, you can use (for Windows): Alt + 0 + 9; the numbers are on numpad (the right side numbers), release the Alt key when you pressed 9.
  • 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
	}}
}}

Using a box

You can nest the templates and use links around the text. You may use non-breaking spaces ( ) to obtain spaces or to have labels that have spaces.

The entire cladogram can be placed in a box so that text flows nicely around it. Enclose within {{userboxtop| toptext= }} {{userboxbottom}}

 
Neornithes  
Paleognathae

 


 Neognathae 
 

Other birds


Galloanserae 

Anseriformes


    

Galliformes



Craciformes






Sample of a hack that uses {{Userboxtop}}

Code:

{{userboxtop| toptext= }}
{{clade| style=font-size:75%;line-height:75%
|label1={{r|Neornithes}}  
|1={{clade
	|label1={{r|Paleognathae}}
	|1= 
	|label2= {{r|Neognathae}} 
	|2={{clade
	   |1=Other birds
	   |label1= 
	   |label2={{r|Galloanserae}} 
	   |2={{clade
	       |1={{r|Anseriformes}}
		   |label2=    
		   |2={{clade
		      |1={{r|Galliformes}}
		      |2={{r|Craciformes}}
		      }}
	      }}
	   }}
   }}
}}
<center><small>Sample of a hack that uses {{tl|Userboxtop}}</small></center>
{{userboxbottom}}