Template:Brick chart/Bricks and Template:Brick chart/Bricks/sandbox: Difference between pages
More actions
(Difference between pages)
Created page with "<noinclude><!-- -============================================================================= - Brick_chart/Bricks - Draw bricks for 1 count in {Brick_chart} numbers -============================================================================= -- (see NOTES at bottom) --> </noinclude>{{ #ifexpr:{{{count|0}}} > 0 |<!--show initial brick(s)--><div style=" background:{{{color|silver}}}; float:left; <!--see NOTE B2 & NOTE M3--> clear..." |
Created page with "<noinclude><!-- -============================================================================= - Brick_chart/Bricks - Draw bricks for 1 count in {Brick_chart} numbers -============================================================================= -- (see NOTES at bottom) --> </noinclude>{{ #ifexpr:{{{count|0}}} > 0 |<!--show initial brick(s)--><div style=" background:{{{color|silver}}}; float:left; clear:{{#ifexpr:{{{offset|0}}} - {{{stride..." |
||
Line 9: | Line 9: | ||
|<!--show initial brick(s)--><div style=" | |<!--show initial brick(s)--><div style=" | ||
background:{{{color|silver}}}; | background:{{{color|silver}}}; | ||
float:left; | float:left; | ||
clear:{{#ifexpr: {{{offset|0}}} - {{{stride|10}}} * | clear:{{#ifexpr:{{{offset|0}}} - {{{stride|10}}} * | ||
floor( ( {{{offset|0}}} )/{{{stride|10}}} ) > 0 |none|left}}; | |||
height:{{#expr:100/{{{stride|10}}} }}%; | height:{{#expr:100/{{{stride|10}}} }}%; | ||
overflow:hidden; | overflow:hidden; | ||
Line 58: | Line 57: | ||
--NOTES | --NOTES | ||
-- | -- | ||
-- NOTE A1: This template draws 1 | -- NOTE A1: This template draws 1-3 line segments for: the initial bricks, | ||
-- whole lines of middle bricks, and the final bricks (if any). | -- whole lines of middle bricks, and the final bricks (if any). | ||
-- | -- | ||
-- NOTE | -- NOTE S2: For a line to be visible, there must be a non-breaking space, | ||
-- where the div-tag contains an " ". | |||
-- | |||
-- | -- | ||
---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ||
Line 86: | Line 71: | ||
-17Sep2012 Fixed overlapped bars by full use of div-tag "overflow:hidden;". | -17Sep2012 Fixed overlapped bars by full use of div-tag "overflow:hidden;". | ||
-17Sep2012 Added "overflow:hidden;" to 3rd line segment to match 1 & 2. | -17Sep2012 Added "overflow:hidden;" to 3rd line segment to match 1 & 2. | ||
- | -17Sep2012 Allowed decimals by replacing mod as: {c} - 10*floor( {c}/10 ). | ||
--> | |||
-->{{documentation|content=The '''[[Template:Brick_chart/Bricks]]''' draws bricks for {{tl|Brick chart}}. The bricks are displayed as 1, 2 or 3 bar line segments, depending on the offset and count numbers. | {{documentation|content=The '''[[Template:Brick_chart/Bricks]]''' draws bricks for {{tl|Brick chart}}. The bricks are displayed as 1, 2 or 3 bar line segments, depending on the offset and count numbers. | ||
Parameters: | Parameters: |