Difference between revisions of "Template:Clade toggle"

From blackwiki
Jump to navigation Jump to search
imported>Jts1882
(add amphibia tests to noinclude section)
imported>Rodw
m (Disambiguating links to Anura (link changed to Anura (frog); link changed to Anura (frog); link changed to Anura (frog); link changed to Anura (frog)) using DisamAssist.)
 
(One intermediate revision by one other user not shown)
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
Line 26: Line 26:
 
   |2={{clade hidden |id=1 |mode=left
 
   |2={{clade hidden |id=1 |mode=left
 
                   |1=[[Caudata]] (salamanders)
 
                   |1=[[Caudata]] (salamanders)
                   |2=[[Anura]] (frogs)
+
                   |2=[[Anura (frog)|Anura]] (frogs)
 
       }}
 
       }}
 
   }}
 
   }}
Line 40: Line 40:
 
   |2={{clade hidden  |expanded=true |expand-symbol=&#10753; |collapse-symbol=&#10754; |id=2 |mode=right
 
   |2={{clade hidden  |expanded=true |expand-symbol=&#10753; |collapse-symbol=&#10754; |id=2 |mode=right
 
                   |1=[[Caudata]] (salamanders)
 
                   |1=[[Caudata]] (salamanders)
                   |2=[[Anura]] (frogs)
+
                   |2=[[Anura (frog)|Anura]] (frogs)
 
       }}
 
       }}
 
   }}
 
   }}
Line 54: Line 54:
 
   |2={{clade hidden |expand-symbol=&#8862; (frogs and salamanders [expand]) |collapse-symbol=<span role="button" style="background-color:lightcyan">[collapse clade]</span>  |id=A |mode=right
 
   |2={{clade hidden |expand-symbol=&#8862; (frogs and salamanders [expand]) |collapse-symbol=<span role="button" style="background-color:lightcyan">[collapse clade]</span>  |id=A |mode=right
 
                   |1=[[Caudata]] (salamanders)
 
                   |1=[[Caudata]] (salamanders)
                   |2=[[Anura]] (frogs)
+
                   |2=[[Anura (frog)|Anura]] (frogs)
 
       }}
 
       }}
 
   }}
 
   }}
Line 69: Line 69:
 
   |2={{clade hidden |id=B
 
   |2={{clade hidden |id=B
 
                   |1=[[Caudata]] (salamanders)
 
                   |1=[[Caudata]] (salamanders)
                   |2=[[Anura]] (frogs)
+
                   |2=[[Anura (frog)|Anura]] (frogs)
 
       }}
 
       }}
 
   }}
 
   }}

Latest revision as of 15:07, 9 April 2020

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.

50px Template documentation[create]