Difference between revisions of "CompanyTimeline"

From Sega Retro

Line 6: Line 6:
 
{{#vardefine:height|100}}
 
{{#vardefine:height|100}}
  
<div style="width:100%; background-color:#FF0000; padding:2px; line-height:0px; height:{{#var:height}}px">
+
<div style="width:100%; border: 1px solid #C0C0C0; height:{{#var:height}}px;">
 
{{#vardefine:count|0}}{{#vardefine:i|{{{startdate|}}}}}{{#while:
 
{{#vardefine:count|0}}{{#vardefine:i|{{{startdate|}}}}}{{#while:
 
| {{#ifexpr:{{#var:i}} < {{{enddate|}}}|true}}
 
| {{#ifexpr:{{#var:i}} < {{{enddate|}}}|true}}
 
| {{#vardefine:labelstartdate|{{#var:i}}-01-01}}{{#vardefine:labelx|{{#expr:(({{#time: U |{{#var:labelstartdate}}}}-{{#var:starttime}}) / {{#var:totaltime}}) * 100}}}}
 
| {{#vardefine:labelstartdate|{{#var:i}}-01-01}}{{#vardefine:labelx|{{#expr:(({{#time: U |{{#var:labelstartdate}}}}-{{#var:starttime}}) / {{#var:totaltime}}) * 100}}}}
<div style="position:relative; top:{{#var:height}}px; left:{{#var:labelx}}%; height:{{#var:height}}px; width:0px; border-left:1px solid #00FF00; margin-top:-{{#var:height}}px;"></div>
+
<div style="position:relative; top:{{#var:height}}px; left:{{#var:labelx}}%; height:{{#var:height}}px; width:0px; border-left:1px solid #DDDDDD; margin-top:-{{#var:height}}px;"></div>
<div style="position:relative; top:20px; left:{{#var:labelx}}%; height:20px; margin-top:-20px;>{{#sub:{{#var:i}}|2}}</div>
+
<div style="position:relative; top:20px; left:{{#var:labelx}}%; height:20px; margin-top:-20px; padding-left:4px;>{{#sub:{{#var:i}}|2}}</div>
 
{{incvar|i}}{{incvar|count}}
 
{{incvar|i}}{{incvar|count}}
 
}}{{clearvar|i}}{{{1|}}}
 
}}{{clearvar|i}}{{{1|}}}
Line 22: Line 22:
 
|startdate=1984-01-01
 
|startdate=1984-01-01
 
|enddate=1986-01-01
 
|enddate=1986-01-01
|y=0
+
|y=20
 
}}
 
}}
 
{{CompanyTimelineLine
 
{{CompanyTimelineLine
 
|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:28, 27 July 2022


Clock.svg
This task is unfinished
This is a wiki task that requires more thought or peer review. An important issue that needs to be solved, which will appear at the top of Sega Retro:Todo until this message is removed.

Replacement for Template:Timeline. I might be able to automate the dates - won't that be fun. -Black Squirrel (talk) 14:34, 27 July 2022 (EDT)



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