Difference between revisions of "Template:Clade box/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jts1882
(fix width)
imported>Jts1882
(update)
Line 11: Line 11:
 
|border=solid 1px #aaa
 
|border=solid 1px #aaa
 
|width=100%
 
|width=100%
|content= {{clade |label1=Label |1={{clade |1=Leaf1 |2=Leaf2 }} }}
+
|content={{clade  
 +
        |label1=Label  
 +
        |1={{clade  
 +
            |1=Leaf1  
 +
            |2=Leaf2  
 +
            }}  
 +
        }}
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 15:33, 4 November 2019

Create a simple collapsable box to display large cladograms.

Usage

{{clade box
|caption = Title or caption
|color=#F0F2F5
|border=solid 1px #aaa
|width=100%
|content={{clade 
         |label1=Label 
         |1={{clade 
            |1=Leaf1 
            |2=Leaf2 
            }} 
         }}
}}
Title or caption
 
Label

Leaf1

Leaf2


Parameters

  • |caption= – caption to include in box header
  • |color= – background color for box header (default: #F0F2F5)
  • |border= – CSS properties of box border (default: solid 1px #aaa)
  • |width= – width of box (default: 100%)
  • |width= – if parameter present the initial state of the box is expanded (default: collapsed)
  • |content= – the content of the box (usually a large cladogram)