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 1: | Line 1: | ||
<includeonly><div class=bar | <includeonly><div class=bar | ||
style=" | style=" | ||
font-size:100%; | |||
background-color:{{{colour|#aaccff}}}; | |||
{{#if:{{{border|}}}|border-width:{{{border|0}}}{{{tl-hu}}}; | |||
}} {{#if:{{{border-colour|}}}|border-colour:{{{border-colour}}}; | }} {{#if:{{{border-colour|}}}|border-colour:{{{border-colour}}}; | ||
}} border-style:{{#if:{{{border-style|}}}|{{{border-style}}}|{{#if:{{{border|{{{border-colour|}}}}}}|solid}}}} none; | }} border-style:{{#if:{{{border-style|}}}|{{{border-style}}}|{{#if:{{{border|{{{border-colour|}}}}}}|solid}}}} none; | ||
position:absolute; | |||
text-align:center; | |||
margin-top:{{#expr: | |||
{{{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}}}; | |||
width:{{#expr:({{{right}}}-{{{left}}})*{{{tl-width}}}}}{{{tl-wu}}}; | |||
"><div class=nudge style=" | "><div class=nudge style=" | ||
font-size:100%; | |||
position:relative; | |||
top:{{#expr:{{{nudgedown|0}}}-0.86}}em; | |||
left:{{{nudgeright|0}}}em; | |||
"><div style=" | "><div style=" | ||
position:relative; | |||
align:center;{{#if:{{{textsize|}}}| | |||
font-size:{{{textsize}}};}} | |||
vertical-align:middle; | |||
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> |