Difference between revisions of "Template:SimpleSchedule"

From Hackerspace ACKspace
Jump to: navigation, search
m (fix styling)
m (updated colors)
 
Line 1: Line 1:
<includeonly><div style="top:calc( 5% + {{#expr: ({{#time: U|{{#time: Y-m-d"T"H:i:s|{{{2}}} {{{3}}}}}{{#timel: P|{{{2}}} {{{3}}}}}}} - {{{#userparam|0}}}) / 450 }}%);height:{{#expr: ({{#time: U|{{#time: Y-m-d"T"H:i:s|{{{4}}} {{{5}}}}}{{#timel: P|{{{4}}} {{{5}}}}}}} - {{#time: U|{{#time: Y-m-d"T"H:i:s|{{{2}}} {{{3}}}}}{{#timel: P|{{{2}}} {{{3}}}}}}}) / 450 }}%;display:flex;align-items:center;left:4em;position:absolute;background-color:#fee;box-sizing:border-box;padding:0 2em">
+
<includeonly><div style="top:calc( 5% + {{#expr: ({{#time: U|{{#time: Y-m-d"T"H:i:s|{{{2}}} {{{3}}}}}{{#timel: P|{{{2}}} {{{3}}}}}}} - {{{#userparam|0}}}) / 450 }}%);height:{{#expr: ({{#time: U|{{#time: Y-m-d"T"H:i:s|{{{4}}} {{{5}}}}}{{#timel: P|{{{4}}} {{{5}}}}}}} - {{#time: U|{{#time: Y-m-d"T"H:i:s|{{{2}}} {{{3}}}}}{{#timel: P|{{{2}}} {{{3}}}}}}}) / 450 }}%;display:flex;align-items:center;left:4em;position:absolute;background-color:#cefa;box-sizing:border-box;padding:0 2em;border: 1px solid #f333;">
 
[[{{{1}}}|{{#titleparts: {{{1}}} | | -1 }}]]
 
[[{{{1}}}|{{#titleparts: {{{1}}} | | -1 }}]]
 
</div></includeonly><noinclude>This template will display a schedule item provided with the following selected fields:
 
</div></includeonly><noinclude>This template will display a schedule item provided with the following selected fields:

Latest revision as of 18:01, 29 December 2024

This template will display a schedule item provided with the following selected fields:

  • 1: title (will only display the leaf level but link to the original wiki page)
  • 2: Event start date
  • 3: Event start time
  • 4: Event end date
  • 5: Event end time
  • userparam: the epoch timestamp (in seconds) that marks the beginning of the event (to calculate the offset units from)