Difference between revisions of "Template:Clade toggle"

From blackwiki
Jump to navigation Jump to search
imported>Jts1882
(add amphibia tests to noinclude section)
imported>Jts1882
(add some tests)
Line 1: Line 1:
 
<noinclude>{{Clade toggle
 
<noinclude>{{Clade toggle
|button=Text or symbol to trigger toggle action
+
|button=<span style="background:#dddddd;">Text or symbol to trigger toggle action</span>
 
|id1=1  <!-- the IDs of the elements to be toggled -->
 
|id1=1  <!-- the IDs of the elements to be toggled -->
 
|id2=2
 
|id2=2
Line 7: Line 7:
 
}}
 
}}
  
=Test collapse=
+
'''Test selective collapse/expand'''
  
 
{{Clade toggle
 
{{Clade toggle

Revision as of 11:05, 4 November 2019

Text or symbol to trigger toggle action

Test selective collapse/expand

  click to trigger toggle action on all four (id=1,2,a,b)  

  click to toggle id=1,2  

Amphibia

Gymnophiona (caecilians)

Batrachia

Caudata (salamanders)

Anura (frogs)

(id=1)


Amphibia

Gymnophiona (caecilians)

Batrachia

Caudata (salamanders)

Anura (frogs)

(id=2)


Amphibia

Gymnophiona (caecilians)

Batrachia
⊞ (frogs and salamanders [expand])

Caudata (salamanders)

Anura (frogs)

[collapse clade]
(id=A)



Amphibia

Gymnophiona (caecilians)

Batrachia

Caudata (salamanders)

Anura (frogs)

(id=B)


Some examples of interactive clades in large phylogenies: Birds, Snakes & Lizards and Flowering Plants.

Template documentation[create]