Difference between revisions of "Template:Draw Bar"

From blackwiki
Jump to navigation Jump to search
imported>Smith609
m (Add text size funtionality)
imported>Mr.Z-man
m (what is wrong with this mess?)
Line 8: Line 8:
 
     position:absolute;
 
     position:absolute;
 
     text-align:center;
 
     text-align:center;
     margin-top:{{#expr:
+
     margin-top:{{{tl-hu}}};
        {{{tl-height|30}}} *
+
     height:{{{tl-hu}}};
        ({{{tl-to|30}}}-{{{to|1}}}) /
 
        ({{{tl-to|30}}}-{{{tl-from|0}}})
 
    }}{{{tl-hu}}};
 
     height:{{#expr:
 
        (
 
        {{{tl-height|30}}} *
 
        ({{{to|502}}}-{{{from|5}}}) /
 
        ({{{tl-to|21}}}-{{{tl-from|10}}})
 
        ){{#ifeq:{{border-style}}|none|| - ( 2*0{{{border|}}} ) }}
 
    }}{{{tl-hu}}};
 
 
     margin-left:{{#expr:{{{left}}}*{{{tl-width}}}}}{{{tl-wu}}};
 
     margin-left:{{#expr:{{{left}}}*{{{tl-width}}}}}{{{tl-wu}}};
 
     width:{{#expr:({{{right}}}-{{{left}}})*{{{tl-width}}}}}{{{tl-wu}}};
 
     width:{{#expr:({{{right}}}-{{{left}}})*{{{tl-width}}}}}{{{tl-wu}}};
 
"><div id=nudge style="
 
"><div id=nudge style="
 
     font-size:100%;  
 
     font-size:100%;  
     position:relative;
+
     position:relative;  
    top:{{#expr:{{{nudgedown|0}}}-0.86}}em;  
 
 
     left:{{{nudgeright|0}}}em;
 
     left:{{{nudgeright|0}}}em;
 
"><span style="
 
"><span style="
Line 32: Line 21:
 
     font-size:{{{textsize}}};}}
 
     font-size:{{{textsize}}};}}
 
     vertical-align:middle;
 
     vertical-align:middle;
     bottom:-{{#expr:
+
     bottom:-{{{tl-hu|em}}};  
        {{{tl-height}}} *
 
        ({{{to}}}-{{{from}}}) /
 
        ({{{tl-to}}}-{{{tl-from}}})
 
        /2}}{{{tl-hu|em}}};  
 
 
">{{{text}}}</span></div></div></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 
">{{{text}}}</span></div></div></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 05:37, 31 January 2008