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

From blackwiki
Jump to navigation Jump to search
imported>Jts1882
(brief explanation)
 
imported>Jts1882
(update parameters)
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
{{clade box
 
{{clade box
 
|caption = Title or caption
 
|caption = Title or caption
 +
|text = This text is not collapsible; but the next div element is collapsible and hidden by default:
 
|color=#F0F2F5
 
|color=#F0F2F5
 
|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>
 
{{clade box
 
{{clade box
 
|caption = Title or caption
 
|caption = Title or caption
 +
|text = This text is not collapsible; but the next div element is collapsible and hidden by default:
 
|color=#F0F2F5
 
|color=#F0F2F5
 
|border=solid 1px #aaa
 
|border=solid 1px #aaa
|width=80%
+
|width=100%
 
|content= {{clade |label1=Label |1={{clade |1=Leaf1 |2=Leaf2 }} }}
 
|content= {{clade |label1=Label |1={{clade |1=Leaf1 |2=Leaf2 }} }}
 
}}
 
}}
Line 27: Line 35:
 
* {{para|border}} &ndash; CSS properties of box border (default: solid 1px #aaa)
 
* {{para|border}} &ndash; CSS properties of box border (default: solid 1px #aaa)
 
* {{para|width}} &ndash; width of box (default: 100%)
 
* {{para|width}} &ndash; width of box (default: 100%)
* {{para|width}} &ndash; if parameter present the initial state of the box is expanded (default: collapsed)
+
* {{para|show}} &ndash; if parameter present the initial state of the box is expanded (default: collapsed)
 
* {{para|content}} &ndash; the content of the box (usually a large cladogram)
 
* {{para|content}} &ndash; the content of the box (usually a large cladogram)
 +
* {{para|text}} &ndash; text to show in the box before the collapsed content
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Latest revision as of 07:33, 11 November 2019

Create a simple collapsable box to display large cladograms.

Usage

{{clade box
|caption = Title or caption
|text = This text is not collapsible; but the next div element is collapsible and hidden by default:
|color=#F0F2F5
|border=solid 1px #aaa
|width=100%
|content={{clade 
         |label1=Label 
         |1={{clade 
            |1=Leaf1 
            |2=Leaf2 
            }} 
         }}
}}
Title or caption
This text is not collapsible; but the next div element is collapsible and hidden by default:
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%)
  • |show= – if parameter present the initial state of the box is expanded (default: collapsed)
  • |content= – the content of the box (usually a large cladogram)
  • |text= – text to show in the box before the collapsed content