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

From blackwiki
Jump to navigation Jump to search
imported>Wikid77
(put parentheses before each "round 0" added to replace "mod".)
imported>Wikid77
(put parentheses around {offset}.)
Line 11: Line 11:
 
   float:left;
 
   float:left;
 
   clear:{{#ifexpr:{{{offset|0}}} - {{{stride|10}}} *
 
   clear:{{#ifexpr:{{{offset|0}}} - {{{stride|10}}} *
          ( ( {{{offset|0}}}/{{{stride|10}}} ) round 0) > 0 |none|left}};
+
        ( ( ( {{{offset|0}}} )/{{{stride|10}}} ) round 0) > 0 |none|left}};
 
   height:{{#expr:100/{{{stride|10}}} }}%;
 
   height:{{#expr:100/{{{stride|10}}} }}%;
 
   overflow:hidden;
 
   overflow:hidden;
 
   width:{{#expr:
 
   width:{{#expr:
 
     {{min|{{#expr: {{{stride|10}}} - ( {{{offset|0}}} - {{{stride|10}}} *
 
     {{min|{{#expr: {{{stride|10}}} - ( {{{offset|0}}} - {{{stride|10}}} *
             ( ( {{{offset|0}}}/{{{stride|10}}} ) round 0) ) }}
+
             ( ( ( {{{offset|0}}} )/{{{stride|10}}} ) round 0) ) }}
 
         |{{{count|0}}}}} * 100/{{{stride|10}}} }}%;
 
         |{{{count|0}}}}} * 100/{{{stride|10}}} }}%;
 
   ">&nbsp;</div>{{
 
   ">&nbsp;</div>{{
 
   #ifexpr:{{{count|0}}} > {{min
 
   #ifexpr:{{{count|0}}} > {{min
 
       |{{#expr: {{{stride|10}}} - ( {{{offset|0}}} - {{{stride|10}}} *
 
       |{{#expr: {{{stride|10}}} - ( {{{offset|0}}} - {{{stride|10}}} *
             ( ( {{{offset|0}}}/{{{stride|10}}} ) round 0) ) }}
+
             ( ( ( {{{offset|0}}} )/{{{stride|10}}} ) round 0) ) }}
 
       |{{{count|0}}} }}
 
       |{{{count|0}}} }}
 
     |<!--show full-line bricks--><div style="
 
     |<!--show full-line bricks--><div style="
Line 33: Line 33:
 
       - {{min
 
       - {{min
 
             |{{#expr: {{{stride|10}}} - ( {{{offset|0}}} - {{{stride|10}}} *
 
             |{{#expr: {{{stride|10}}} - ( {{{offset|0}}} - {{{stride|10}}} *
                   ( ( {{{offset|0}}}/{{{stride|10}}} ) round 0) ) }}
+
                   ( ( ({{{offset|0}}})/{{{stride|10}}} ) round 0) ) }}
 
             |{{{count|0}}}}}
 
             |{{{count|0}}}}}
 
       - ( {{{count|0}}}+{{{offset|0}}} - {{{stride|10}}} *
 
       - ( {{{count|0}}}+{{{offset|0}}} - {{{stride|10}}} *

Revision as of 23:10, 17 September 2012


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