Difference between revisions of "Template:Draw Bar"

From blackwiki
Jump to navigation Jump to search
imported>Smith609
m (Undid revision 197126735 by Dispenser (talk) - ids come in very useful and do no harm.)
imported>Tholme
(try again)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><div id=bar
+
<includeonly><div class=bar
 
style="
 
style="
 
     font-size:100%;
 
     font-size:100%;
Line 18: Line 18:
 
         ({{{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 id=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;
"><span style="
+
"><div style="
 
     position:relative;
 
     position:relative;
 
     align:center;{{#if:{{{textsize|}}}|
 
     align:center;{{#if:{{{textsize|}}}|
Line 37: Line 37:
 
         ({{{tl-to}}}-{{{tl-from}}})
 
         ({{{tl-to}}}-{{{tl-from}}})
 
         /2}}{{{tl-hu|em}}};  
 
         /2}}{{{tl-hu|em}}};  
">{{{text}}}</span></div></div></includeonly><noinclude>{{documentation}}</noinclude>
+
">{{{text}}}</div></div></div></includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 00:20, 5 April 2020

Template documentation[view] [edit] [history] [purge]

Produces the bars used in {{Graphical timeline}}.