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 - "<noinclude>{{doc}}</noinclude>" to "<noinclude>{{doc}}<!-- Needs a category --></noinclude>")
m (Text replacement - " " to " ")
Line 1: Line 1:
<includeonly><div class=bar
<includeonly><div class=bar
style="
style="
    font-size:100%;
  font-size:100%;
    background-color:{{{colour|#aaccff}}};
  background-color:{{{colour|#aaccff}}};
    {{#if:{{{border|}}}|border-width:{{{border|0}}}{{{tl-hu}}};
  {{#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;
  position:absolute;
    text-align:center;
  text-align:center;
    margin-top:{{#expr:
  margin-top:{{#expr:
        {{{tl-height|30}}} *
    {{{tl-height|30}}} *
        ({{{tl-to|30}}}-{{{to|1}}}) /
    ({{{tl-to|30}}}-{{{to|1}}}) /
        ({{{tl-to|30}}}-{{{tl-from|0}}})
    ({{{tl-to|30}}}-{{{tl-from|0}}})
    }}{{{tl-hu}}};
  }}{{{tl-hu}}};
    height:{{#expr:
  height:{{#expr:
        (
    (
        {{{tl-height|30}}} *
    {{{tl-height|30}}} *
        ({{{to|502}}}-{{{from|5}}}) /
    ({{{to|502}}}-{{{from|5}}}) /
        ({{{tl-to|21}}}-{{{tl-from|10}}})
    ({{{tl-to|21}}}-{{{tl-from|10}}})
        ){{#ifeq:{{{border-style}}}|none|| - ( 2*0{{{border|}}} ) }}
    ){{#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}}};
    width:{{#expr:({{{right}}}-{{{left}}})*{{{tl-width}}}}}{{{tl-wu}}};
  width:{{#expr:({{{right}}}-{{{left}}})*{{{tl-width}}}}}{{{tl-wu}}};
"><div class=nudge style="
"><div class=nudge style="
    font-size:100%;  
  font-size:100%;  
    position:relative;
  position:relative;
    top:{{#expr:{{{nudgedown|0}}}-0.86}}em;  
  top:{{#expr:{{{nudgedown|0}}}-0.86}}em;  
    left:{{{nudgeright|0}}}em;
  left:{{{nudgeright|0}}}em;
"><div style="
"><div style="
    position:relative;
  position:relative;
    align:center;{{#if:{{{textsize|}}}|
  align:center;{{#if:{{{textsize|}}}|
    font-size:{{{textsize}}};}}
  font-size:{{{textsize}}};}}
    vertical-align:middle;
  vertical-align:middle;
    bottom:-{{#expr:
  bottom:-{{#expr:
        {{{tl-height}}} *
    {{{tl-height}}} *
        ({{{to}}}-{{{from}}}) /
    ({{{to}}}-{{{from}}}) /
        ({{{tl-to}}}-{{{tl-from}}})
    ({{{tl-to}}}-{{{tl-from}}})
        /2}}{{{tl-hu|em}}};  
    /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>

Revision as of 18:18, 26 September 2020

Documentation

Taken from [1] on April 25th, 2020.

Example

{{Draw Bar}}

See Also