Template:Infobox/Event Info: Difference between revisions
From PC Gaming Shelter
No edit summary |
No edit summary |
||
| (21 intermediate revisions by the same user not shown) | |||
| Line 20: | Line 20: | ||
-->{{#if: {{{Has start date|}}} | -->{{#if: {{{Has start date|}}} | ||
|{{Infobox/Generic | |{{Infobox/Generic | ||
|Start | |{{#ifeq: {{{Is recurring|}}}|Yes|From|Start}} | ||
|{{#time: d.m.Y |{{{Has start date|}}}}} | |{{#time: d.m.Y |{{{Has start date|}}}}} {{#ifeq: {{{Is recurring|}}} | ||
|Yes | |||
|<span class="text-warning px-3">''recurring''</span> | |||
}} | |||
}} | }} | ||
}}<!-- | }}<!-- | ||
| Line 27: | Line 30: | ||
-->{{#if: {{{Has end date|}}} | -->{{#if: {{{Has end date|}}} | ||
|{{Infobox/Generic | |{{Infobox/Generic | ||
|End | |{{#ifeq: {{{Is recurring|}}}|Yes|Until|End}} | ||
|{{#time: d.m.Y|{{{Has end date|}}}}} | |{{#time: d.m.Y|{{{Has end date|}}}}} | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
-->{{#ifeq: {{{Is recurring|}}} | |||
|Yes | |||
|{{#invoke: Event | |||
|setRecurringEvent | |||
|start={{{Has start date|}}} | |||
|end={{{Has end date|}}} | |||
|unit={{{Recurring unit|}}} | |||
|period={{{Recurring period|}}} | |||
|include={{#arraymap:{{{Include dates|}}}|\n|@@@|@@@|;}} | |||
|exclude={{#arraymap:{{{Exclude dates|}}}|\n|@@@|@@@|;}} | |||
}}<!-- | |||
-->{{#ifexpr:{{#time:Ymd|{{{Has end date|}}}}} > {{#time:Ymd}} | |||
|{{Infobox/Generic | |||
|Next | |||
|<b>{{#ask: | |||
[[-Has subobject::{{FULLPAGENAME}}]] | |||
[[Has start date::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}]] | |||
|sort=Has start date | |||
|order=asc | |||
|mainlabel=- | |||
|?Has start date#-F[d.m.Y H:i] | |||
|headers=hide | |||
|limit=1 | |||
|searchlabel= | |||
}}</b> | |||
}} | |||
}}<!-- | |||
-->{{#ifexpr:{{#time:Ymd|{{{Has start date|}}}}} < {{#time:Ymd}} | |||
|{{Infobox/Generic | |||
|Last | |||
|{{#ask: | |||
[[-Has subobject::{{FULLPAGENAME}}]] | |||
[[Has start date::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}]] | |||
|sort=Has start date | |||
|order=desc | |||
|mainlabel=- | |||
|?Has start date#-F[d.m.Y H:i] | |||
|headers=hide | |||
|limit=1 | |||
|searchlabel= | |||
}} | |||
}} | |||
}} | |||
|{{#invoke: Event|setDates|start={{{Has start date|}}}|end={{{Has end date|}}}}} | |||
}}<!-- | |||
-->{{#if: {{{Has tag|}}} | -->{{#if: {{{Has tag|}}} | ||
