Difference between revisions of "Template:Semorg-vacation-timeline"
From SemanticOrganization
(4 intermediate revisions 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:{{{ | + | |{{#ifexpr:{{{start-date|}}}>{{#time:U|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}} |
− | |{{#expr:{{{ | + | |{{#expr:{{{start-date|}}}-{{#time:U|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}}} |
|0 | |0 | ||
}} | }} | ||
− | |{{#ifexpr:{{{ | + | |{{#ifexpr:{{{start-date|}}}>{{#time:U|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}} |
− | |{{#expr:{{{ | + | |{{#expr:{{{end-date|}}}-{{{start-date|}}}+3600*24}} |
− | |{{#ifexpr:{{{ | + | |{{#ifexpr:{{{end-date|}}}>{{#time:U|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}} |
− | |{{#expr:{{{ | + | |{{#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|}}} }} |
− | |[{{fullurl:{{{ | + | |[{{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.