Site notice |
---|
Welcome! Please check To-Do List to see what pages need help, who is working on what, etc.
|
Difference between revisions of "Template:Draw Bar"
From Mega Man Wiki
m (Text replacement - " " to " ") |
m (Text replacement - " " to " ") |
||
Line 9: | Line 9: | ||
text-align:center; | text-align:center; | ||
margin-top:{{#expr: | margin-top:{{#expr: | ||
{{{tl-height|30}}} * | |||
({{{tl-to|30}}}-{{{to|1}}}) / | |||
({{{tl-to|30}}}-{{{tl-from|0}}}) | |||
}}{{{tl-hu}}}; | }}{{{tl-hu}}}; | ||
height:{{#expr: | height:{{#expr: | ||
( | |||
{{{tl-height|30}}} * | |||
({{{to|502}}}-{{{from|5}}}) / | |||
({{{tl-to|21}}}-{{{tl-from|10}}}) | |||
){{#ifeq:{{{border-style}}}|none|| - ( 2*0{{{border|}}} ) }} | |||
}}{{{tl-hu}}}; | }}{{{tl-hu}}}; | ||
margin-left:{{#expr:{{{left}}}*{{{tl-width}}}}}{{{tl-wu}}}; | margin-left:{{#expr:{{{left}}}*{{{tl-width}}}}}{{{tl-wu}}}; | ||
Line 33: | Line 33: | ||
vertical-align:middle; | vertical-align:middle; | ||
bottom:-{{#expr: | bottom:-{{#expr: | ||
{{{tl-height}}} * | |||
({{{to}}}-{{{from}}}) / | |||
({{{tl-to}}}-{{{tl-from}}}) | |||
/2}}{{{tl-hu|em}}}; | |||
">{{{text}}}</div></div></div></includeonly><noinclude>{{doc}}<!-- Needs a category --></noinclude> | ">{{{text}}}</div></div></div></includeonly><noinclude>{{doc}}<!-- Needs a category --></noinclude> |