Difference between revisions of "VTimelineDrawGridlines"
From Sega Retro
Line 6: | Line 6: | ||
| {{#vardefine:gridlineDate|{{#time:U|{{#var:year}}-{{#var:month}}-01}}}}{{ | | {{#vardefine:gridlineDate|{{#time:U|{{#var:year}}-{{#var:month}}-01}}}}{{ | ||
#ifexpr:{{#var:gridlineDate}} >= {{#var:starttime}}|{{ | #ifexpr:{{#var:gridlineDate}} >= {{#var:starttime}}|{{ | ||
− | #ifexpr:{{#var:gridlineDate}} <= ({{#var:starttime}}+ {{#var:totaltime}})|{{#vardefine:top|{{#expr:(({{#var:gridlineDate}}-{{#var:starttime}})/{{#var:totaltime}})*{{#var:timelineheight}}}}}}<div style="position:relative; width: 216px; height:1px; left: 8px; top: {{#var:top}}px; | + | #ifexpr:{{#var:gridlineDate}} <= ({{#var:starttime}}+ {{#var:totaltime}})|{{#vardefine:top|{{#expr:(({{#var:gridlineDate}}-{{#var:starttime}})/{{#var:totaltime}})*{{#var:timelineheight}}}}}}<div style="position:relative; width: 216px; height:1px; left: 8px; top: {{#var:top}}px; border-top:dashed 1px rgba(0,0,0,0.2); margin-top:-1px;"></div> |
|}} | |}} | ||
|}}{{incvar|month}}}}{{incvar|year}} | |}}{{incvar|month}}}}{{incvar|year}} |
Revision as of 11:28, 15 April 2022
Template to draw all the grid lines for Template:VTimeline
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