Difference between revisions of "Template:SimpleSchedule"
m (fix typo and readme) |
m (fix styling) |
||
Line 1: | Line 1: | ||
− | <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"> | + | <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"> |
[[{{{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 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)