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

From blackwiki
Jump to navigation Jump to search
imported>Wikid77
(allowed decimal numbers by replacing function 'x mod n' as: {x} - {n}*floor( {x}/{n} ); new NOTE B2 for "clear:none" & NOTE M3 for modulo formula; listed "Parameters" in doc-text.)
imported>Sardanaphalus
(category)
Line 87: Line 87:
 
-17Sep2012 Added "overflow:hidden;" to 3rd line segment to match 1 & 2.
 
-17Sep2012 Added "overflow:hidden;" to 3rd line segment to match 1 & 2.
 
-18Sep2012 Allowed decimals by replacing mod as: {c} - 10*floor( {c}/10 ).
 
-18Sep2012 Allowed decimals by replacing mod as: {c} - 10*floor( {c}/10 ).
-->
 
  
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.
+
-->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:
Line 99: Line 98:
  
 
The height of a bar line segment is 100/{stride}% with default as 10%. The default offset=0, and the full effects of the template can only be seen when
 
The height of a bar line segment is 100/{stride}% with default as 10%. The default offset=0, and the full effects of the template can only be seen when
run multiple times, with the bar line segments displayed together, as when invoked several times from [[Template:Brick_chart]].
+
run multiple times, with the bar line segments displayed together, as when invoked several times from [[Template:Brick chart]].
  
[[Category:Wikipedia formatting and function templates]]
+
[[Category:Chart formatting templates]]
 
</noinclude>
 
</noinclude>

Revision as of 22:56, 26 August 2014

The Template:Brick_chart/Bricks draws bricks for {{Brick chart}}. The bricks are displayed as 1, 2 or 3 bar line segments, depending on the offset and count numbers.

Parameters:

  • count - the number (or decimal) to represent by bar line segments
  • offset - the sum of prior count numbers (can be: 2+5+7.8, etc.)
  • stride - width of lines (in number units) in the brick chart (default: 10)
  • color   - a web-color name or number (see all: Web colors).

The height of a bar line segment is 100/{stride}% with default as 10%. The default offset=0, and the full effects of the template can only be seen when run multiple times, with the bar line segments displayed together, as when invoked several times from Template:Brick chart.