Difference between revisions of "Template:Brick chart/Bricks"
Jump to navigation
Jump to search
imported>Zocky (fix stride) |
imported>Zocky (we can't use ems because of browser zooming) |
||
| Line 5: | Line 5: | ||
float:left; | float:left; | ||
clear:{{#ifexpr:{{{offset|0}}} mod {{{stride|10}}}|none|left}}; | clear:{{#ifexpr:{{{offset|0}}} mod {{{stride|10}}}|none|left}}; | ||
| − | height: | + | height:{{#expr:100/{{{stride|10}}}}}%; |
overflow:hidden; | overflow:hidden; | ||
| − | width:{{min|{{#expr:({{{stride|10}}} - {{{offset|0}}} mod {{{stride|10}}})}}|{{{count|0}}}}} | + | width:{{#expr:{{min|{{#expr:({{{stride|10}}} - {{{offset|0}}} mod {{{stride|10}}})}}|{{{count|0}}}}} * 100/{{{stride|10}}} }}%; |
"> </div>{{#ifexpr:{{{count|0}}} > {{min|{{#expr:({{{stride|10}}} - {{{offset|0}}} mod {{{stride|10}}})}}|{{{count|0}}}}} | "> </div>{{#ifexpr:{{{count|0}}} > {{min|{{#expr:({{{stride|10}}} - {{{offset|0}}} mod {{{stride|10}}})}}|{{{count|0}}}}} | ||
|<div style=" | |<div style=" | ||
| Line 13: | Line 13: | ||
float:left; | float:left; | ||
clear:left; | clear:left; | ||
| − | width: | + | width:100%; |
overflow:hidden; | overflow:hidden; | ||
height:{{#expr: | height:{{#expr: | ||
| Line 19: | Line 19: | ||
-{{min|{{#expr:({{{stride|10}}} - {{{offset|0}}} mod {{{stride|10}}})}}|{{{count|0}}}}} | -{{min|{{#expr:({{{stride|10}}} - {{{offset|0}}} mod {{{stride|10}}})}}|{{{count|0}}}}} | ||
-(({{{count|0}}} + {{{offset|0}}}) mod {{{stride|10}}}) | -(({{{count|0}}} + {{{offset|0}}}) mod {{{stride|10}}}) | ||
| − | )/{{{stride|10}}}) }} | + | )/{{{stride|10}}}) * 100/{{{stride|10}}} }}%; |
"> </div> | "> </div> | ||
{{#ifexpr:(({{{count|0}}} + {{{offset|0}}}) mod {{{stride|10}}})>0 | {{#ifexpr:(({{{count|0}}} + {{{offset|0}}}) mod {{{stride|10}}})>0 | ||
| Line 26: | Line 26: | ||
float:left; | float:left; | ||
clear:left; | clear:left; | ||
| − | height: | + | height:{{#expr:100/{{{stride|10}}}}}%; |
| − | width:{{#expr:(({{{count|0}}} + {{{offset|0}}}) mod {{{stride|10}}})}} | + | width:{{#expr:(({{{count|0}}} + {{{offset|0}}}) mod {{{stride|10}}}) * 100/{{{stride|10}}} }}%; |
"> </div> | "> </div> | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
Revision as of 21:16, 17 August 2009
draws bricks for {{Brick chart}} <div style="
background:silver; float:left; clear:left; height:10%; overflow:hidden; width:Expression error: Unrecognized punctuation character "[".%;
"> Expression error: Unrecognized punctuation character "[".