Difference between revisions of "VTimelineDateLabel"
From Sega Retro
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><div style="display:none;">{{clearvar|draw}} | + | <includeonly><div style="display:none;">{{clearvar|draw}}{{#if:{{{month|}}}|{{#vardefine:type|Month}}|{{#vardefine:type|Year}}}} |
− | {{#if:{{#var:lastDateLabelTop}}||{{#vardefine:lastDateLabelTop|0}}}} | + | {{#if:{{#var:lastDateLabelTop{{#var:type}}}}||{{#vardefine:lastDateLabelTop{{#var:type}}|0}}}} |
{{#vardefine:top|{{#expr:(({{#time:U|{{{1|0}}}}}-{{#var:starttime}})/{{#var:totaltime}})*{{#var:timelineheight}}}}}} | {{#vardefine:top|{{#expr:(({{#time:U|{{{1|0}}}}}-{{#var:starttime}})/{{#var:totaltime}})*{{#var:timelineheight}}}}}} | ||
Line 8: | Line 8: | ||
and ({{#var:top}} < {{#var:timelineheight}}) | and ({{#var:top}} < {{#var:timelineheight}}) | ||
and ( {{#var:timelineheight}}-{{#var:top}} > 20) | and ( {{#var:timelineheight}}-{{#var:top}} > 20) | ||
− | and ( abs({{#var:top}}-{{#var:lastDateLabelTop}}) > 28)|{{#vardefine:draw|yes}}|}} | + | and ( abs({{#var:top}}-{{#var:lastDateLabelTop{{#var:type}}}}) > {{#switch:{{#var:type}}|Month=20|Year=28}})|{{#vardefine:draw|yes}}|}} |
− | </div>{{#if:{{#var:draw}}|<div style="position:relative; width: 5px; height:1px; left: -5px; top: {{#var:top}}px; border-top: solid 1px #AAAAAA; margin-top:-1px;"><div style="position: relative; top: -10px; | + | </div>{{#if:{{#var:draw}}|<div style="position:relative; width: 5px; height:1px; left: -5px; top: {{#var:top}}px; border-top: solid 1px #AAAAAA; margin-top:-1px;">{{ |
+ | #switch:{{#var:type}} | ||
+ | |Month=<div style="position: relative; top: -6px; left: -20px; font-size:10px; width:20px; writing-mode: vertical-rl; color:#AAAAAA; z-index:2;">{{#sub:{{{1|}}}|5|2}}</div> | ||
+ | |Year=<div style="position: relative; top: -10px; left: -30px; font-size:10px; width:15px; writing-mode: vertical-rl; color:#AAAAAA; z-index:3;">{{#sub:{{{1|}}}|0|4}}</div> | ||
+ | }}{{#vardefine:lastDateLabelTop{{#var:type}}|{{#var:top}}}}</div>}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{VTimeline | {{VTimeline | ||
Line 24: | Line 28: | ||
{{VTimeline | {{VTimeline | ||
| startdate=1991-01-28 | | startdate=1991-01-28 | ||
− | | enddate= | + | | enddate=1992-01-24 |
− | | height= | + | | height=225 |
| annotations= | | annotations= | ||
− | {{VTimelineAnnotation| | + | {{VTimelineAnnotation|1991-05-28|[[Summer CES 1992]]}} |
− | {{VTimelineAnnotation| | + | {{VTimelineAnnotation|1991-09-18|Beta 4 build date}} |
− | {{VTimelineAnnotation| | + | {{VTimelineAnnotation|1991-11-24|Release}} |
− | |||
− | |||
}} | }} | ||
− | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 11:58, 24 April 2022
11
08
1993
05
1994
02
11
1995
08
1996
05
1997
02
11
1998
1992-05-28: Summer CES 1992
1992-09-18: Beta 4 build date
1992-11-24: Release