Template:Infobox/Event Info: Difference between revisions
From PC Gaming Shelter
No edit summary |
No edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 21: | Line 21: | ||
|{{Infobox/Generic | |{{Infobox/Generic | ||
|{{#ifeq: {{{Is recurring|}}}|Yes|From|Start}} | |{{#ifeq: {{{Is recurring|}}}|Yes|From|Start}} | ||
|{{#time: d.m.Y |{{{Has start date|}}}}} {{#ifeq: {{{Is recurring|}}}|Yes|<span class="text-warning">''recurring''</span>}} | |{{#time: d.m.Y |{{{Has start date|}}}}} {{#ifeq: {{{Is recurring|}}} | ||
|Yes | |||
|<span class="text-warning px-3">''recurring''</span> | |||
}} | |||
}} | }} | ||
}}<!-- | }}<!-- | ||
| Line 47: | Line 50: | ||
|{{Infobox/Generic | |{{Infobox/Generic | ||
|Next | |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: | |{{#ask: | ||
[[-Has subobject::{{FULLPAGENAME}}]] | [[-Has subobject::{{FULLPAGENAME}}]] | ||
[[Has start date:: | [[Has start date::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}]] | ||
|sort=Has start date | |||
|order=desc | |||
|mainlabel=- | |mainlabel=- | ||
|?Has start date#-F[d.m.Y H:i] | |?Has start date#-F[d.m.Y H:i] | ||
| Line 58: | Line 80: | ||
}} | }} | ||
}} | }} | ||
|{{#invoke: Event|setDates|start={{{Has start date|}}}|end={{{Has end date|}}}}} | |||
}}<!-- | }}<!-- | ||
