Difference between revisions of "VTimeline"

From Sega Retro

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:#FF0000">{{{annotations|}}}</div></includeonly><noinclude>
+
<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>
{{TimelineTest
 
| startdate=1992-01
 
| enddate=1992-11-24
 
|annotations=
 
<div style="position:relative; width: 20px; height:1px; left: 0px; top: 0px; background-color:#0000FF"></div>
 
<div style="position:relative; width: 20px; height:1px; left: 0px; top: 20px; background-color:#0000FF"></div>
 
<div style="position:relative; width: 20px; height:1px; left: 0px; top: 90px; background-color:#0000FF"></div>
 
}}
 
 
</noinclude>
 
</noinclude>

Revision as of 10:54, 10 June 2018