Template:Flexibox

From Young Composers
Jump to: navigation, search
{{{title}}}
{{{text}}}


To use this profile, copy the following code onto your page and fill in the parameters.

{{flexibox
| title	 = (any text)
| text = (any text)
| position = (left, right, center, inherit)
| box width	= (will accept percent (%), px, or em)
| title background colour =  (will accept red, green, blue, tan, brown, black, etc. or RGB format (i.e. #ff0000 or #f00))
| title text alignment = (left, center, or right)
| font size	= (will accept percent (%), px, em, bigger, smaller, etc.)
| body text alignment   = (left, center, or right)
| body background colour	= (will accept red, green, blue, tan, brown, black, etc. or RGB format (i.e. #ff0000 or #f00))
}}

For example, the code

{{flexibox
| title	 = This is a Box
| text = Really, it is. I swear. See how it's a rectangle. Cute, isn't it? It has 4 corners and a title and a border. Cool.
| position = right
| box width	= 75%
| title background colour =  green
| title text alignment = center
| font size	= 95%
| body text alignment   = left
| body background colour	= inherit
}}

Will produce: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut massa nisl, tempus sed, scelerisque ac, gravida nec, neque. Phasellus porttitor iaculis ligula. Pellentesque sit amet metus. Suspendisse iaculis. Fusce sit amet dolor. Integer a nibh vestibulum neque luctus tincidunt. Pellentesque tincidunt dui quis odio. Vivamus in justo. Vivamus vel massa eu ipsum adipiscing commodo. Cras felis. Duis et nisl. Sed consectetur posuere felis.

This is a Box
Really, it is. I swear. See how it's a rectangle. Cute, isn't it? It has 4 corners and a title and a border. Cool.