Difference between revisions of "Template:Clade toggle"

From blackwiki
Jump to navigation Jump to search
imported>Jts1882
(change target module)
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.)
 
(2 intermediate revisions 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
 
|id3=a
 
|id3=a
 
|id4=b
 
|id4=b
}}</noinclude>{{#invoke:Clade/hidden|toggle }}<noinclude>
+
}}
 +
 
 +
'''Test selective collapse/expand'''
 +
 
 +
{{Clade toggle
 +
|button= <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;">&nbsp;&nbsp;click to trigger toggle action on all four (id=1,2,a,b)&nbsp;&nbsp;</span>
 +
|id1=1  <!-- the IDs of the elements to be toggled -->
 +
|id2=2
 +
|id3=A
 +
|id4=B
 +
}}
 +
<span style="font-family:Arial;background:#e6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;">
 +
<span class="mw-customtoggle-myClade1 mw-customtoggle-collapseSymbol1 mw-customtoggle-expandSymbol1 mw-customtoggle-myClade2 mw-customtoggle-collapseSymbol2 mw-customtoggle-expandSymbol2 mw-customtoggle-myClade3 mw-customtoggle-collapseSymbol3 mw-customtoggle-expandSymbol3">&nbsp;&nbsp;click to toggle id=1,2&nbsp;&nbsp;</span></span>
 +
 
 +
{{clade |style=font-size:80%;line-height:90%;
 +
|label1='''Amphibia'''
 +
|1={{clade
 +
  |1=[[Gymnophiona]] (caecilians)
 +
  |label2=[[Batrachia]] |sublabel2=(id=1)
 +
  |2={{clade hidden |id=1 |mode=left
 +
                  |1=[[Caudata]] (salamanders)
 +
                  |2=[[Anura (frog)|Anura]] (frogs)
 +
      }}
 +
  }}
 +
}}
 +
 
 +
 
 +
 
 +
{{clade |style=font-size:80%;line-height:90%;
 +
|label1='''Amphibia'''
 +
|1={{clade
 +
  |1=[[Gymnophiona]] (caecilians)
 +
  |label2=[[Batrachia]]  |sublabel2=(id=2)
 +
  |2={{clade hidden  |expanded=true |expand-symbol=&#10753; |collapse-symbol=&#10754; |id=2 |mode=right
 +
                  |1=[[Caudata]] (salamanders)
 +
                  |2=[[Anura (frog)|Anura]] (frogs)
 +
      }}
 +
  }}
 +
}}
 +
 
 +
 
 +
 
 +
{{clade |style=font-size:80%;line-height:90%;
 +
|label1='''Amphibia'''
 +
|1={{clade
 +
  |1=[[Gymnophiona]] (caecilians)
 +
  |label2=[[Batrachia]]  |sublabel2=(id=A)
 +
  |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)
 +
                  |2=[[Anura (frog)|Anura]] (frogs)
 +
      }}
 +
  }}
 +
}}
 +
 
 +
 
 +
 
 +
 
 +
{{clade |style=font-size:80%;line-height:90%;width:50%;
 +
|label1='''Amphibia'''
 +
|1={{clade
 +
  |1=[[Gymnophiona]] (caecilians)
 +
  |label2=[[Batrachia]]  |sublabel2=(id=B)
 +
  |2={{clade hidden |id=B
 +
                  |1=[[Caudata]] (salamanders)
 +
                  |2=[[Anura (frog)|Anura]] (frogs)
 +
      }}
 +
  }}
 +
}}
 +
 
 +
 
 +
Some examples of interactive clades in large phylogenies: [[User:Jts1882/phylogeny/Non-Passerines#Non-passerines|Birds]], [[User:Jts1882/phylogeny/Squamata#Classification_and_phylogeny|Snakes & Lizards]] and [[User:Jts1882/sandbox/templates/Template:APG IV system|Flowering Plants]].
 +
 
 +
</noinclude>{{#invoke:Clade/hidden|toggle }}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Add categories to the /doc subpage, not here! -->
 
<!-- Add categories to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

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.

Template documentation[create]