Difference between revisions of "Template:SimpleSchedule"

From Hackerspace ACKspace
Jump to: navigation, search
m (Testing intended final template)
m (fix typo and readme)
Line 1: Line 1:
<includeonly><div atyle="top:{{#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:2em">
+
<includeonly><div style="top:{{#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:2em">
 
[[{{{1}}}|{{#titleparts: {{{1}}} | | -1 }}]]
 
[[{{{1}}}|{{#titleparts: {{{1}}} | | -1 }}]]
</div></includeonly><noinclude>This template will display the leaf part of the title (part after the last '/' slash) and the "include" part of that page</noinclude>
+
</div></includeonly><noinclude>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)
 +
</noinclude>

Revision as of 17:41, 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)