Difference between revisions of "Template:SimpleSchedule"

From Hackerspace ACKspace
Jump to: navigation, search
m (final template test)
m (Testing intended final template)
Line 1: Line 1:
:{{{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">
 
+
[[{{{1}}}|{{#titleparts: {{{1}}} | | -1 }}]]
* top: {{#expr: ({{#time: U|{{#time: Y-m-d"T"H:i:s|{{{2}}} {{{3}}}}}{{#timel: P|{{{2}}} {{{3}}}}}}} - {{{#userparam|0}}}) / 450 }}
+
</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>
* 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 }}
 

Revision as of 16:36, 27 November 2023

This template will display the leaf part of the title (part after the last '/' slash) and the "include" part of that page