Difference between revisions of "CompanyTimeline"

From Sega Retro

(Created page with "<includeonly>{{TODO}} Replacement for Template:Timeline. I might be able to automate the dates - won't that be fun. -~~~~ {{#vardefine:starttime|{{#time: U | {{{startdate...")
 
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{TODO}}
+
<includeonly><div style="display:none;">{{#vardefine:starttime|{{#time: U | {{{startdate|0}}}-01-01}}}}{{#vardefine:totaltime|{{#expr:{{#time: U | {{{enddate|0}}}-01-01}} - {{#var:starttime}}}}}}
Replacement for [[Template:Timeline]]. I might be able to automate the dates - won't that be fun. -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 14:34, 27 July 2022 (EDT)
 
  
{{#vardefine:starttime|{{#time: U | {{{startdate|0}}}-01-01}}}}{{#vardefine:totaltime|{{#expr:{{#time: U | {{{enddate|0}}}-01-01}} - {{#var:starttime}}}}}}
+
{{#vardefine:height|{{{height|100}}}}}
  
 +
{{#vardefine:red1|#F80000}}{{#vardefine:red2|#F89797}}
 +
{{#vardefine:orange1|#F8C500}}{{#vardefine:orange2|#F8E497}}
 +
{{#vardefine:yellow1|#F8F800}}{{#vardefine:yellow2|#F8F897}}
 +
{{#vardefine:yellowgreen1|#B0EA00}}{{#vardefine:yellowgreen2|#DCF397}}
 +
{{#vardefine:green1|#00D000}}{{#vardefine:green2|#97E897}}
 +
{{#vardefine:cyan1|#00D5FA}}{{#vardefine:cyan2|#97EAF9}}
 +
{{#vardefine:blue1|#0000FF}}{{#vardefine:blue2|#9797FB}}
 +
{{#vardefine:purple1|#AA00FF}}{{#vardefine:purple2|#DA97FB}}
 +
{{#vardefine:magenta1|#F800F8}}{{#vardefine:magenta2|#F897F8}}
 +
{{#vardefine:redmagenta1|#F80090}}{{#vardefine:redmagenta2|#FC9BD3}}
  
<div style="width:100%; background-color:#FF0000; padding:2px; line-height:0px; height:{{#expr:({{{enddate|}}}-{{{startdate|}}})*2}}px">
+
</div><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:labeldate|{{#var:i}}-01-01}}
+
| {{#vardefine:labelstartdate|{{#var:i}}-01-01}}{{#vardefine:labelx|{{#expr:(({{#time: U |{{#var:labelstartdate}}}}-{{#var:starttime}}) / {{#var:totaltime}}) * 100}}}}
{{#vardefine:pos|{{#expr:(({{#time: U |{{#var:labeldate}}}}-{{#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 #DDDDDD; margin-top:-{{#var:height}}px;"></div>
<div style="position:relative; left:{{#var:pos}}%; top:{{#expr:{{#var:count}}*2}}px; width:1%; height:2px; background-color:#0000FF; margin-top:-2px;"></div>{{incvar|i}}{{incvar|count}}
+
<div style="position:relative; top:20px; left:{{#var:labelx}}%; height:20px; width:20px; margin-top:-20px; padding-left:4px;>{{#sub:{{#var:i}}|2}}</div>
}}{{clearvar|i}}</div>
+
{{incvar|i}}{{incvar|count}}
 +
}}{{clearvar|i}}{{{1|}}}
 +
</div><div style="display:none;"><references /></div>
  
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 +
{{TODO}}
 +
Replacement for [[Template:Timeline]]. I might be able to automate the dates - won't that be fun. -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 14:34, 27 July 2022 (EDT)
 +
 +
 +
{{CompanyTimeline|
 +
{{CompanyTimelineLine|[[Sega R&D 1]]
 +
|y=30
 +
| colour={{#var:red1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega AM1]]
 +
|y=30
 +
| colour={{#var:red2}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega Software R&D Dept. 1|R&D #1]]
 +
|y=30
 +
| colour={{#var:red1}}
 +
}}
 +
{{CompanyTimelineLine|[[WOW Entertainment]]
 +
|y=40
 +
| colour={{#var:red2}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega WOW]]
 +
|y=30
 +
| colour={{#var:red1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega AM1 (2005-current)|Sega AM1]]
 +
|y=40
 +
| colour={{#var:red2}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[Studio 128]]
 +
| startdate=1984-01-01
 +
| enddate=1988-01-01
 +
|y=80
 +
| colour={{#var:orange1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega R&D 8]]
 +
| enddate=1990-01-01
 +
|y=80
 +
| colour={{#var:orange2}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega AM2]]
 +
| enddate=1999-01-01
 +
|y=80
 +
| colour={{#var:orange1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega Software R&D Dept. 2|R&D #2]]
 +
|y=80
 +
| colour={{#var:orange2}}
 +
}}
 +
{{CompanyTimelineLine|[[AM2 of CRI]]
 +
|y=90
 +
| colour={{#var:orange1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega-AM2 (company)|Sega-AM2]]
 +
|y=90
 +
| colour={{#var:orange2}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega AM2 (2004)|Sega AM2]]
 +
|y=80
 +
| colour={{#var:orange1}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[Sega AM3]]
 +
|y=130
 +
| colour={{#var:yellow1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega Software R&D Dept. 3|R&D #3]]
 +
|y=130
 +
| colour={{#var:yellow2}}
 +
}}
 +
{{CompanyTimelineLine|[[Hitmaker]]
 +
|y=140
 +
| colour={{#var:yellow1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega AM3 (2005-2008)|Sega AM3]]
 +
|y=130
 +
| colour={{#var:yellow2}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[Sega AM11]]
 +
|y=180
 +
| colour={{#var:yellowgreen1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega Software R&D Dept. 4|R&D #4]]
 +
|y=190
 +
| colour={{#var:yellowgreen2}}
 +
}}
 +
{{CompanyTimelineLine|[[Amusement Vision]]
 +
|y=200
 +
| colour={{#var:yellowgreen1}}
 +
}}
 +
{{CompanyTimelineLine|[[New Entertainment R&D Dept.|New Entertainment]]
 +
|y=180
 +
| colour={{#var:yellowgreen2}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega CS1 (2008-current)|Sega CS1]]
 +
|y=190
 +
| colour={{#var:yellowgreen1}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[AM Annex]]
 +
|y=230
 +
| colour={{#var:green1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega Software R&D Dept. 5|R&D #5]]
 +
|y=230
 +
| colour={{#var:green2}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega Rosso]]
 +
|y=240
 +
| colour={{#var:green1}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[Sega R&D 2]]
 +
|y=280
 +
| colour={{#var:cyan1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega CS]]
 +
|y=280
 +
| colour={{#var:cyan2}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega CS1]]
 +
|y=280
 +
| colour={{#var:cyan1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega Software R&D Dept. 6|R&D #6]]
 +
|y=280
 +
| colour={{#var:cyan2}}
 +
}}
 +
{{CompanyTimelineLine|[[Smilebit]]
 +
|y=290
 +
| colour={{#var:cyan1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega Sports Design R&D Dept.|Sega Sports Design]]
 +
|y=280
 +
| colour={{#var:cyan2}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[Sega CS2]]
 +
|y=330
 +
| colour={{#var:blue1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega Software R&D Dept. 7|R&D #7]]
 +
|y=330
 +
| colour={{#var:blue2}}
 +
}}
 +
{{CompanyTimelineLine|[[Overworks]]
 +
|y=340
 +
| colour={{#var:blue1}}
 +
}}
 +
{{CompanyTimelineLine|[[Global Entertainment R&D Dept. 2|Global Entertainment #2]]
 +
|y=330
 +
| colour={{#var:blue2}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega CS3 (2008-current)|Sega CS3]]
 +
| enddate=2018-01-01
 +
|y=340
 +
| colour={{#var:blue1}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[Sega CS3]]
 +
|y=380
 +
| colour={{#var:purple1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega Software R&D Dept. 8|R&D #8]]
 +
|y=380
 +
| colour={{#var:purple2}}
 +
}}
 +
{{CompanyTimelineLine|[[Sonic Team (company)|Sonic Team]]
 +
|y=390
 +
| colour={{#var:purple1}}
 +
}}
 +
{{CompanyTimelineLine|[[Global Entertainment R&D Dept. 1|Global Entertainment #1]]
 +
|y=380
 +
| colour={{#var:purple2}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega CS2 (2008-current)|Sega CS2]]
 +
|y=390
 +
| colour={{#var:purple1}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[Global Entertainment R&D Dept. 3|Global Entertainment #3]]
 +
|y=430
 +
| colour={{#var:magenta1}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[Sega Software R&D Dept. 9|R&D #9]]
 +
|y=430
 +
| colour={{#var:redmagenta1}}
 +
}}
 +
{{CompanyTimelineLine|[[United Game Artists]]
 +
|y=440
 +
| colour={{#var:redmagenta2}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[DigitalRex]]
 +
|y=480
 +
| colour={{#var:red1}}
 +
}}
 +
{{CompanyTimelineLine|[[AM Plus]]
 +
|y=490
 +
| colour={{#var:red2}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[Sega AM4]]
 +
|y=530
 +
| colour={{#var:orange1}}
 +
}}
 +
{{CompanyTimelineLine|[[Sega Mechatro]]
 +
|y=530
 +
| colour={{#var:orange2}}
 +
}}
 +
{{CompanyTimelineLine|[[Product R&D]]
 +
|y=530
 +
| colour={{#var:orange1}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[Sega AM5]]
 +
|y=580
 +
| colour={{#var:yellow1}}
 +
}}
 +
{{CompanyTimelineLine|[[Mirai R&D]]
 +
|y=580
 +
| colour={{#var:yellow2}}
 +
}}
 +
{{CompanyTimelineLine|[[Family Entertainment]]
 +
|y=580
 +
| colour={{#var:yellow1}}
 +
}}
 +
 +
{{CompanyTimelineLine|[[Sega AM6]]
 +
|y=630
 +
| colour={{#var:yellowgreen1}}
 +
}}
  
{{CompanyTimeline
 
 
| startdate=1983
 
| startdate=1983
 
| enddate=2023
 
| enddate=2023
 +
| height=680
 
}}
 
}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 16:42, 28 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)