Difference between revisions of "Template:Brick chart/Bricks"
Jump to navigation
Jump to search
imported>Zocky (don't draw bottom lines if one is enough) |
imported>Zocky (some more ifs) |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
draws bricks for {{tl|Brick chart}} | draws bricks for {{tl|Brick chart}} | ||
| − | </noinclude><div style=" | + | </noinclude>{{#if:{{{count|0}}}>0|<div style=" |
background:{{{color|silver}}}; | background:{{{color|silver}}}; | ||
float:left; | float:left; | ||
| Line 21: | Line 21: | ||
)/{{{stride|10}}}) }}em; | )/{{{stride|10}}}) }}em; | ||
"> </div> | "> </div> | ||
| − | <div style=" | + | {{#ifexpr:(({{{count|0}}} + {{{offset|0}}}) mod {{{stride|10}}})>0 |
| + | |<div style=" | ||
background:{{{color|silver}}}; | background:{{{color|silver}}}; | ||
float:left; | float:left; | ||
| Line 28: | Line 29: | ||
width:{{#expr:(({{{count|0}}} + {{{offset|0}}}) mod {{{stride|10}}})}}em; | width:{{#expr:(({{{count|0}}} + {{{offset|0}}}) mod {{{stride|10}}})}}em; | ||
"> </div> | "> </div> | ||
| + | }} | ||
| + | }} | ||
}} | }} | ||
Revision as of 20:26, 17 August 2009
draws bricks for {{Brick chart}}
Expression error: Unrecognized punctuation character "[".