Difference between revisions of "Template:Clade toggle"
Jump to navigation
Jump to search
Template documentation[create]
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;"> click to trigger toggle action on all four (id=1,2,a,b) </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"> click to toggle id=1,2 </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=⨁ |collapse-symbol=⨂ |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=⊞ (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
Test selective collapse/expand
| Amphibia |
| |||||||||
| Amphibia |
| |||||||||
| Amphibia |
| |||||||||
| Amphibia |
| |||||||||
Some examples of interactive clades in large phylogenies: Birds, Snakes & Lizards and Flowering Plants.
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |