Template:Dropbox

  



Usage
Template name: DROPBOX (currently identical functionality to DROPIMAGE). Place text for a heading in parameter one position. Place definitions for images, galleries, text, or an HTML table in parameter two position. The content hides initially in the collapsed state, and drops when the link button is clicked. The link toggles to collapse and expand the drop control.

The initial width of the control is not necessarily the dropped width, since the control expands to display the contents. The width option sets the initial width. the drop contents can contain links. The template can be nested.

Three simple examples of its use, with results, are shown:

Image example code:

 Gallery example code:  Text box example code:

 HTML Table Example Code:



Limitations
The width option sets the ititial width of the control. It expands on opening, and has been observed to involve some overlap of adjacent structures. This can be avoided by care in basic layout. The width option should be set to avoid an overtight fitting of the caption.

Attempts at setting the vertical text alignment have so-far failed.

The content cannot be a Wikitext table, since the pipe symbols confuse the code; use an HTML table instead.

Bear in mind that the use of &lt;pre&gt;&lt;/pre&gt;  tags will be needed for verbatim text layout, and if the block of text itself has these same tags within it, that the literals should be used to replace the  ones within the text. (ie: use these instead;  &amp;lt;pre&amp;gt; and &amp;lt;/pre&amp;gt;). This avoids the corrupted functioning which would otherwise result.

Container

 * width:  initial width of the container, (collapsed), not including borders (default 300px)
 * align:  horizontal alignment of container (default left)
 * border: the container border (default 1px solid black)
 * padding: the padding for the container (default 0px)
 * background: the background color of the container,(seen for padding > 0px), (default white)
 * margin:    the container margin (default 10px 10px 10px 10px)

Heading

 * hff:    heading font family (face) (default Arial)
 * hfs:    heading font size (default 10pt)
 * hfw:    heading font weight(default normal)
 * hbgc:   heading background color (default white)
 * hfc:    heading font color; (default black)
 * hhta:   heading horizontal text alignment (default center)
 * hp:     heading text padding (default 5px)

Content

 * cff:    content font family (face) (default Arial)
 * cfs:    content font size (default 10pt)
 * cfw:    content text font weight(default bold)
 * cbgc:   content background color (default white)
 * cfc:    content font color; (default black)
 * chta:   content horizontal text alignment (default center)
 * cp:     content text padding (default 10px)
 * clh:    content line-height  (default normal)
 * cws:    content word-spacing (default normal)
 * cls:    content letter-spacing (default normal)