Difference between revisions of "Template:Brick chart/Bricks/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Wikid77
(adjusted height + 0.2%)
imported>Wikid77
(added "overflow:hidden;" to 3rd line segment, to match div-tag style of 1 & 2.)
Line 37: Line 37:
 
         float:left;
 
         float:left;
 
         clear:left;
 
         clear:left;
 +
        overflow:hidden;
 
         height:{{#expr:100/{{{stride|10}}} }}%;
 
         height:{{#expr:100/{{{stride|10}}} }}%;
 
         width:{{#expr:( ({{{count|0}}} + {{{offset|0}}}) mod {{{stride|10}}}
 
         width:{{#expr:( ({{{count|0}}} + {{{offset|0}}}) mod {{{stride|10}}}
Line 44: Line 45:
 
   }}
 
   }}
 
}}<noinclude><!--
 
}}<noinclude><!--
--------------------------------------------------------------------------
+
----------------------------------------------------------------------------
--
 
 
--NOTES
 
--NOTES
 
--
 
--
Line 54: Line 54:
 
--      where the div-tag contains an "&nbsp;".
 
--      where the div-tag contains an "&nbsp;".
 
--
 
--
 +
----------------------------------------------------------------------------
 +
-HISTORY
 +
-10Oct2009 Created to display brick chart using div-tag line segments.
 +
-17Sep2012 Put HISTORY comments to log major changes (not typos).
 +
-17Sep2012 Put NOTES comments to explain template operation & limits.
 +
-17Sep2012 Indented markup to show 3 nested if-structures.
 +
-17Sep2012 Fixed overlapped bars by full use of div-tag "overflow:hidden;".
 +
-17Sep2012 Added "overflow:hidden;" to 3rd line segment to match 1 & 2.
 
-->
 
-->
  

Revision as of 08:14, 17 September 2012


The Template:Brick_chart/Bricks draws bricks for {{Brick chart}}.