Difference between revisions of "Template:SimpleSchedule"

From Hackerspace ACKspace
Jump to: navigation, search
m (another template magic test)
m (fix styling)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
:{{{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">
:{{{2}}}
+
[[{{{1}}}|{{#titleparts: {{{1}}} | | -1 }}]]
:{{{3}}}
+
</div></includeonly><noinclude>This template will display a schedule item provided with the following selected fields:
:{{{#EventEnd}}}
+
 
:{{{#EventEndTime}}}
+
* 1: title (will only display the leaf level but link to the original wiki page)
:{{{#userparam|now}}}
+
* 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)
 +
</noinclude>

Latest revision as of 16:45, 27 November 2023

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)