Difference between revisions of "VTimeline"

From Sega Retro

m (Black Squirrel moved page Template:TimelineTest to Template:VTimeline without leaving a redirect)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:timelineheight|{{{height|200}}}}}{{#vardefine:starttime|{{#time: U | {{{startdate|0}}}}}}}{{#vardefine:totaltime|{{#expr:{{#time: U | {{{enddate|0}}}}} - {{#var:starttime}}}}}}<div style="display: block; width: 8px; height:{{#var:timelineheight}}px; background-color:#41A0F0">{{{annotations|}}}</div></includeonly><noinclude>
+
<includeonly>{{#vardefine:xOffset|{{{xOffset|25}}}}}{{#vardefine:timelineheight|{{{height|200}}}}}{{#vardefine:starttime|{{#time: U | {{{startdate|0}}}}}}}{{#vardefine:totaltime|{{#expr:{{#time: U | {{{enddate|0}}}}} - {{#var:starttime}}}}}}<div style="display: block; width: 8px; height:{{#var:timelineheight}}px; background-color:#41A0F0; margin:10px 205px 30px {{#expr:{{#var:xOffset}}+5}}px;">{{VTimelineDrawLabels}}{{VTimelineDrawGridlines}}{{{annotations|}}}
 +
{{#vardefine:i|1}}
 +
{{#while:
 +
| {{#if:{{#explode:{{#var:annotationlist}}|,|{{#var:i}}}}|true}}
 +
| {{#vardefine:output|{{#explode:{{#var:annotationlist}}|,|{{#var:i}}}}}}{{VTimelineDrawAnnotation|{{#var:output}}|{{#var:annotation_{{#var:output}}}}}}{{clearvar|annotation_{{#var:output}}}}{{incvar|i}}
 +
}}{{clearvar|annotationlist}}</div></includeonly><noinclude>
 +
"Vertical" timeline. To be used in conjunction with [[Template:VTimelineAnnotation]].
 +
 
 +
<pre>{{VTimeline
 +
| startdate=1993-09-21
 +
| enddate=1995-05-11
 +
| height=300
 +
| annotations=
 +
{{VTimelineAnnotation|1993-09-21|Hitachi processor deal}}
 +
{{VTimelineAnnotation|1994-01-06|[[Winter CES 1994]]}}
 +
{{VTimelineAnnotation|1994-06-02|[['94 Tokyo Toy Show]]}}
 +
{{VTimelineAnnotation|1994-11-22|JP launch}}
 +
{{VTimelineAnnotation|1995-03-26|[[ECTS Spring 1995]]}}
 +
{{VTimelineAnnotation|1995-05-11|US launch}}
 +
}}</pre>
 +
 
 +
{{VTimeline
 +
| startdate=1993-09-21
 +
| enddate=1995-05-11
 +
| height=300
 +
| annotations=
 +
{{VTimelineAnnotation|1993-09-21|Hitachi processor deal}}
 +
{{VTimelineAnnotation|1994-01-06|[[Winter CES 1994]]}}
 +
{{VTimelineAnnotation|1994-06-02|[['94 Tokyo Toy Show]]}}
 +
{{VTimelineAnnotation|1994-11-22|JP launch}}
 +
{{VTimelineAnnotation|1995-03-26|[[ECTS Spring 1995]]}}
 +
{{VTimelineAnnotation|1995-05-11|US launch}}
 +
}}
 +
 
 +
{{VTimeline
 +
| startdate=1993-09-21
 +
| enddate=1995-05-11
 +
| height=300
 +
| xOffset=100
 +
| annotations=
 +
{{VTimelineAnnotation|1993-09-21|Hitachi processor deal}}
 +
{{VTimelineAnnotation|1994-01-06|[[Winter CES 1994]]}}
 +
{{VTimelineAnnotation|1994-06-02|[['94 Tokyo Toy Show]]}}
 +
{{VTimelineAnnotation|1994-11-22|JP launch}}
 +
{{VTimelineAnnotation|1995-03-26|[[ECTS Spring 1995]]}}
 +
{{VTimelineAnnotation|1995-05-11|US launch}}
 +
}}
 +
 
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 06:06, 28 April 2022

"Vertical" timeline. To be used in conjunction with Template:VTimelineAnnotation.

{{VTimeline
| startdate=1993-09-21
| enddate=1995-05-11
| height=300
| annotations=
{{VTimelineAnnotation|1993-09-21|Hitachi processor deal}}
{{VTimelineAnnotation|1994-01-06|[[Winter CES 1994]]}}
{{VTimelineAnnotation|1994-06-02|[['94 Tokyo Toy Show]]}}
{{VTimelineAnnotation|1994-11-22|JP launch}}
{{VTimelineAnnotation|1995-03-26|[[ECTS Spring 1995]]}}
{{VTimelineAnnotation|1995-05-11|US launch}}
}}
































































































































































































































































































































































































































































































































































11







1994




01







03







05







07







09







11







1995




01







03





































































































































































































































































































































































































































































































































































































1993-09-21: Hitachi processor deal


1994-01-06: Winter CES 1994


1994-06-02: '94 Tokyo Toy Show


1994-11-22: JP launch


1995-03-26: ECTS Spring 1995


1995-05-11: US launch





























































































































































































































































































































































































































































































































































10







12




1994







02







04







06







08







10







12




1995







02







04


































































































































































































































































































































































































































































































































































































1993-09-21: Hitachi processor deal


1994-01-06: Winter CES 1994


1994-06-02: '94 Tokyo Toy Show


1994-11-22: JP launch


1995-03-26: ECTS Spring 1995


1995-05-11: US launch