Difference between revisions of "Template:Draw Bar"
Jump to navigation
Jump to search
imported>Mr.Z-man m (what is wrong with this mess?) |
imported>Tholme (try again) |
||
| (9 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly><div | + | <includeonly><div class=bar |
style=" | style=" | ||
font-size:100%; | font-size:100%; | ||
| Line 8: | Line 8: | ||
position:absolute; | position:absolute; | ||
text-align:center; | text-align:center; | ||
| − | margin-top:{{{tl-hu}}}; | + | margin-top:{{#expr: |
| − | height:{{{tl-hu}}}; | + | {{{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}}}; | 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 | + | "><div class=nudge style=" |
font-size:100%; | font-size:100%; | ||
| − | position:relative; | + | position:relative; |
| + | top:{{#expr:{{{nudgedown|0}}}-0.86}}em; | ||
left:{{{nudgeright|0}}}em; | left:{{{nudgeright|0}}}em; | ||
| − | ">< | + | "><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:-{{{tl-hu|em}}}; | + | bottom:-{{#expr: |
| − | ">{{{text}}}</ | + | {{{tl-height}}} * |
| + | ({{{to}}}-{{{from}}}) / | ||
| + | ({{{tl-to}}}-{{{tl-from}}}) | ||
| + | /2}}{{{tl-hu|em}}}; | ||
| + | ">{{{text}}}</div></div></div></includeonly><noinclude>{{documentation}}</noinclude> | ||
Latest revision as of 00:20, 5 April 2020
Produces the bars used in {{Graphical timeline}}.
| The above documentation is transcluded from Template:Draw Bar/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |