Difference between revisions of "Template:Draw Bar"

From blackwiki
Jump to navigation Jump to search
imported>Mr.Z-man
m (what is wrong with this mess?)
imported>Mr.Z-man
m (Reverted edits by Mr.Z-man (talk) to last version by Verisimilus)
Line 8: Line 8:
 
     position:absolute;
 
     position:absolute;
 
     text-align:center;
 
     text-align:center;
     margin-top:{{{tl-hu}}};
+
     margin-top:{{#expr:
     height:{{{tl-hu}}};
+
        {{{tl-height|30}}} *
 +
        ({{{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 21: Line 32:
 
     font-size:{{{textsize}}};}}
 
     font-size:{{{textsize}}};}}
 
     vertical-align:middle;
 
     vertical-align:middle;
     bottom:-{{{tl-hu|em}}};  
+
     bottom:-{{#expr:
 +
        {{{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:38, 31 January 2008