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-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}}};
Line 33: Line 33:
  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>

Latest revision as of 03:38, 29 September 2020

Documentation

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

Example

{{Draw Bar}}

See Also