Template: Semorg-vacation-timeline: Difference between revisions
From SemanticOrganization
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{semorg-timeline | <noinclude>{{semorg-bundle}}</noinclude><includeonly>{{semorg-timeline | ||
|{{#ifexpr:{{{start-date|}}}>{{#time:U}} | |{{#ifexpr:{{{start-date|}}}>{{#time:U|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}} | ||
|{{#expr:{{{start-date|}}}-{{#time:U}}}} | |{{#expr:{{{start-date|}}}-{{#time:U|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}}} | ||
|0 | |0 | ||
}} | }} | ||
|{{#ifexpr:{{{start-date|}}}>{{#time:U}} | |{{#ifexpr:{{{start-date|}}}>{{#time:U|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}} | ||
|{{#expr:{{{end-date|}}}-{{{start-date|}}}}} | |{{#expr:{{{end-date|}}}-{{{start-date|}}}+3600*24}} | ||
|{{#ifexpr:{{{end-date|}}}>{{#time:U}} | |{{#ifexpr:{{{end-date|}}}>{{#time:U|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}} | ||
|{{#expr:{{{end-date|}}}-{{#time:U}}}} | |{{#expr:{{{end-date|}}}-{{#time:U|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}+3600*24}} | ||
|{{#expr:3600*24}} | |{{#expr:3600*24}} | ||
}} | }} | ||
}} | }} | ||
|{{#if:{{{#userparam|}}} | |{{#if:{{{#userparam|}}} | ||
|{{#expr:{{{#userparam|0}}}-{{#time:U}}}} | |{{#expr:{{{#userparam|0}}}-{{#time:U|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}}} | ||
|{{#expr:{{#ask:[[semorg-vacation-person::+]] | |{{#expr:{{#ask:[[semorg-vacation-person::+]] | ||
|mainlabel=- | |mainlabel=- | ||
Line 20: | Line 20: | ||
|limit=1 | |limit=1 | ||
|searchlabel= | |searchlabel= | ||
}}-{{#time:U}}}} | }}-{{#time:U|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}}} | ||
}} | }} | ||
|{{semorg-days|{{{start-date|}}}|{{{end-date|}}}}} {{#if:{{{note|}}}| – {{{note|}}} }} | |{{semorg-days|{{{start-date|}}}|{{{end-date|}}}}} {{#if:{{{note|}}}| – {{{note|}}} }} | ||
|[{{fullurl:{{{target|}}}|action=formedit&returnto={{ | |[{{fullurl:{{{target|}}}|action=formedit&returnto={{FULLPAGENAMEE}}}} {{semorg-days|{{{start-date|}}}|{{{end-date|}}}}} {{#if:{{{note|}}}| – {{{note|}}} }}] | ||
}} | }} | ||
</includeonly> | </includeonly> |
Latest revision as of 18:13, 30 May 2022
This page is part of the Semantic Organization extension.