Difference between revisions of "Template:ContentBlock"

From Horde3D Wiki
Jump to: navigation, search
(ContentBlock is the major layout component. You can use this to do all sorts of formating. Read the Instructions to learn how to use it.)
 
m (changing default width to most common case.)
Line 1: Line 1:
 
<!-- Head Optional - Experimental -->{{#vardefine:boxwith|{{{width| 300}}} }}{{#vardefine:iconwith|{{{iconsize|45}}} }}
 
<!-- Head Optional - Experimental -->{{#vardefine:boxwith|{{{width| 300}}} }}{{#vardefine:iconwith|{{{iconsize|45}}} }}
{| width="{{{width|300}}}" cellspacing="0" style="border: 0px; padding: 0px; border-style: solid; border-color: {{{color|#8BC3DF;}}}; border-width: {{{thickness|2}}}px;"
+
{| width="{{{width|800}}}" cellspacing="0" style="border: 0px; padding: 0px; border-style: solid; border-color: {{{color|#8BC3DF;}}}; border-width: {{{thickness|2}}}px;"
 
{{#if: {{{icon|}}} | {{#if: {{{sub-header|}}} | {{!}} style="background-color: {{{color|#8BC3DF;}}}" width="{{{iconsize|45}}}" rowspan="2" {{!}} [[Image:{{{icon}}}]] | {{!}} style="background-color: {{{color|#8BC3DF;}}}" width="{{{iconsize|45}}}" {{!}} [[Image:{{{icon}}}]]}} }}
 
{{#if: {{{icon|}}} | {{#if: {{{sub-header|}}} | {{!}} style="background-color: {{{color|#8BC3DF;}}}" width="{{{iconsize|45}}}" rowspan="2" {{!}} [[Image:{{{icon}}}]] | {{!}} style="background-color: {{{color|#8BC3DF;}}}" width="{{{iconsize|45}}}" {{!}} [[Image:{{{icon}}}]]}} }}
  

Revision as of 00:51, 17 April 2008

ContentBox is a very flexible layout configuration tool. You can use it to render all sorts of content and to layout multiple pages in your articles. It is very configurable: icon, header, sub-header, content, description, border, border thickess, color, content color and size. You can see how such a configurable box can be very easy and flexible to use.

Usage

Here is how you use it and the parameter list: like every other template you include it by using the

{{ContentBox
|content= Content Goes here. (issue, for lists and other items it may be necessary to add the following hack {{!!}}. This is necessary due to weaknesses in the parser, that remove all white space. This is only one of the multiple flaws of the mediawiki parser.
}}

If no parameter apart from content are passed then the template uses a set default parameters.