Jump to content

Template:Droplist

From Wikibooks, open books for an open world
{{{1}}}
{{{2}}}






Notes for Use

[edit source]

This template, Droplist, displays a caption, ("heading"), and expands to display text, ("content"), when the link is clicked. The link toggles expand/ collapse of the drop control. A wide range of options is available and the options list is shown below. A limited example of its use is:


{{droplist|width=555px|align=center|cfc=white|cbgc=maroon|hff=garamond|Heading Caption here|Content text here}}


Heading Caption here
Content text here



Options for template Droplist

[edit source]

Borders

[edit source]

bt1
the top border details for the frame (default 5px solid lightgray)
br1
the right border details for the frame (default 5px solid lightgray)
bb1
the bottom border details for the frame (default 5px solid dimgray)
bl1
the left border details for the frame(default 5px solid dimgray)

Position and Width

[edit source]

align
position in page left, right, center (default left)
width
frame width in pixels (default 390px) pt % px
margin
clearance space around whole box (default 10px 5px 5px 5px)

Heading

[edit source]

hff
heading font-family name (default Arial)
hfw
font-weight for the heading (default bold)
hbgc
background-color for the heading (default silver)
hhta
horizontal text-alignment for the heading (default center) left center right
hvta
vertical text alignment of the heading (default middle) top bottom
hfs
font size for the heading (default 10pt)
hfc
font color for heading (default maroon)
hp
heading padding (default 5px)

Content

[edit source]

cff
content font-family name (default Courier)
cfw
font-weight for the body (default normal)
cbgc
background-color for the body (default lightyellow)
chta
horizontal text-alignment for the body (default left)
cfs
font size for the content (default 10pt)
cfc
font color for content (default maroon)
cp
content padding (default 10px)