Difference between revisions of "Template:SpacerBlock"

From Horde3D Wiki
Jump to: navigation, search
(Adding SpacerBlock to create pixel perfect layout of ContentBlocks. This allows to bypass the default mediwiki spacing, and layout ContentBlocks in a much more simpler maner.)
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{| width="{{{1}}}"
 
{| width="{{{1}}}"
 
| height="{{{2}}}" bgcolor="{{{color|white}}}" |
 
| height="{{{2}}}" bgcolor="{{{color|white}}}" |
|}
+
|}<noinclude>
<noinclude>
 
 
SpacerBlock is a spacer to create pixel perfect layout of ContentBlocks. it takes 3 parameters.
 
SpacerBlock is a spacer to create pixel perfect layout of ContentBlocks. it takes 3 parameters.
 
#width
 
#width
 
#height
 
#height
 
#color (default = white)
 
#color (default = white)
 
 
== Usage ==
 
== Usage ==
 
<pre>
 
<pre>
 
{{SpacerBlock|1|1|red}} - results in a 1x1 pixel box in red color.
 
{{SpacerBlock|1|1|red}} - results in a 1x1 pixel box in red color.
 
</pre>
 
</pre>
<noinclude>
+
</noinclude>

Latest revision as of 23:41, 16 April 2008

SpacerBlock is a spacer to create pixel perfect layout of ContentBlocks. it takes 3 parameters.

  1. width
  2. height
  3. color (default = white)

Usage

{{SpacerBlock|1|1|red}} - results in a 1x1 pixel box in red color.