Difference between revisions of "VTimelineDrawGridlines"
From Sega Retro
(Created page with "<includeonly> {{#vardefine:year|1980}}{{#while: | {{#ifexpr:{{#var:year}} < 2010|true}} | {{#vardefine:month|01}}{{#while: | {{#ifexpr:{{#var:month}} < 13|true}} | {{#vardefin...") |
|||
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; background-color:rgba(0,0,0,0. | + | #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; background-color:rgba(0,0,0,0.1); margin-top:-1px;"></div> |
|}} | |}} | ||
|}}{{incvar|month}}}}{{incvar|year}} | |}}{{incvar|month}}}}{{incvar|year}} |
Revision as of 11:26, 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