Difference between revisions of "CompanyTimelineLine"

From Sega Retro

Line 1: Line 1:
 
<div style="display:none;">{{#vardefine:x1|{{#expr:(({{#time: U |{{{startdate|}}}}}-{{#var:starttime}}) / {{#var:totaltime}}) * 100}}}}
 
<div style="display:none;">{{#vardefine:x1|{{#expr:(({{#time: U |{{{startdate|}}}}}-{{#var:starttime}}) / {{#var:totaltime}}) * 100}}}}
 
{{#vardefine:x2|{{#expr:(({{#time: U |{{{enddate|}}}}}-{{#var:starttime}}) / {{#var:totaltime}}) * 100}}}}</div>
 
{{#vardefine:x2|{{#expr:(({{#time: U |{{{enddate|}}}}}-{{#var:starttime}}) / {{#var:totaltime}}) * 100}}}}</div>
<div style="position:relative; left:{{#var:x1}}%; top:{{{y|}}}px; width:{{#expr:{{#var:x2}}-{{#var:x1}}}}%; height:0px; border-top: 2px solid #0000FF; margin-top:-2px;"></div><noinclude>
+
<div style="position:relative; left:{{#var:x1}}%; top:{{#expr:{{{y|}}}+20}}px; width:{{#expr:{{#var:x2}}-{{#var:x1}}}}%; height:20px; margin-top:-20px; white-space: nowrap; font-size:0.8em; line-height:20px; vertical-align:bottom;">Company here</div>
 +
<div style="position:relative; left:{{#var:x1}}%; top:{{#expr:{{{y|}}}+20}}px; width:{{#expr:{{#var:x2}}-{{#var:x1}}}}%; height:0px; border-top: 10px solid {{{colour|#0000FF}}}; margin-top:0px;"></div><noinclude>
  
  
Line 13: Line 14:
 
|startdate=1984-01-01
 
|startdate=1984-01-01
 
|enddate=1986-01-01
 
|enddate=1986-01-01
|y=20
+
|y=40
 
}}
 
}}
 
| startdate=1983
 
| startdate=1983

Revision as of 16:16, 27 July 2022

<div style="position:relative; left:Expression error: Missing operand for -.%; top:20px; width:Expression error: Unexpected < operator.%; height:20px; margin-top:-20px; white-space: nowrap; font-size:0.8em; line-height:20px; vertical-align:bottom;">Company here <div style="position:relative; left:Expression error: Missing operand for -.%; top:20px; width:Expression error: Unexpected < operator.%; height:0px; border-top: 10px solid #0000FF; margin-top:0px;">









83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
Company here
Company here