Шаблон:Calendar/event: различия между версиями
Строка 1: | Строка 1: | ||
− | <includeonly><div class="calendar__event flex align-i--center {{#ifexpr: {{#timel: ymd }} <= {{{ymd--7|{{{ymd--6|{{{ymd--5|{{{ymd--4|{{{ymd--3|{{{ymd--2|{{{ymd--1|}}}}}}}}}}}}}}}}}}}}} |calendar__event--actual}} {{#if: {{{before|}}} |calendar__event--before {{#ifexpr: {{#timel: ymd }} > {{{ymd--1}}} |calendar__event--before_past}}}} {{#if: {{{after|}}} |calendar__event--after {{#ifexpr: {{#timel: ymd }} > {{{ymd--7|{{{ymd--6|{{{ymd--5|{{{ymd--4|{{{ymd--3|{{{ymd--2|{{{ymd--1}}}}}}}}}}}}}}}}}}}}} |calendar__event--after_past}}}}" style="width: {{#if: {{{ymd--7|}}} |948|{{#if: {{{ymd--6|}}} |812|{{#if: {{{ymd--5|}}} |676|{{#if: {{{ymd--4|}}} |540|{{#if: {{{ymd--3|}}} |404|{{#if: {{{ymd--2|}}} |268|132}}}}}}}}}}}}px"> | + | <includeonly><div class="calendar__event flex align-i--center {{#ifexpr: {{#timel: ymd }} <= {{{data-end|{{{ymd--7|{{{ymd--6|{{{ymd--5|{{{ymd--4|{{{ymd--3|{{{ymd--2|{{{ymd--1|}}}}}}}}}}}}}}}}}}}}}}}} |calendar__event--actual}} {{#if: {{{before|}}} |calendar__event--before {{#ifexpr: {{#timel: ymd }} > {{{ymd--1}}} |calendar__event--before_past}}}} {{#if: {{{after|}}} |calendar__event--after {{#ifexpr: {{#timel: ymd }} > {{{ymd--7|{{{ymd--6|{{{ymd--5|{{{ymd--4|{{{ymd--3|{{{ymd--2|{{{ymd--1}}}}}}}}}}}}}}}}}}}}} |calendar__event--after_past}}}}" style="width: {{#if: {{{ymd--7|}}} |948|{{#if: {{{ymd--6|}}} |812|{{#if: {{{ymd--5|}}} |676|{{#if: {{{ymd--4|}}} |540|{{#if: {{{ymd--3|}}} |404|{{#if: {{{ymd--2|}}} |268|132}}}}}}}}}}}}px"> |
<div class="calendar__event-icon">{{{icon}}}</div> | <div class="calendar__event-icon">{{{icon}}}</div> | ||
<div class="calendar__event-title">{{{title}}}</div> | <div class="calendar__event-title">{{{title}}}</div> | ||
Строка 16: | Строка 16: | ||
</div></includeonly><noinclude><pre> | </div></includeonly><noinclude><pre> | ||
{{calendar/event | {{calendar/event | ||
− | + | | icon = {{ui/icon| mod = }} | |
− | + | | title = | |
− | + | | description = | |
− | + | | link = | |
− | + | | link-text = | |
− | + | | data = | |
− | + | | data-end = | |
− | + | | tooltip-right = true | |
− | + | | before = true | |
− | + | | after = true | |
− | + | | ymd--1 = | |
− | + | | ymd--2 = | |
− | + | | ymd--3 = | |
− | + | | ymd--4 = | |
− | + | | ymd--5 = | |
− | + | | ymd--6 = | |
+ | | ymd--7 = | ||
}} | }} | ||
</pre></noinclude> | </pre></noinclude> |
Версия 03:44, 26 апреля 2021
{{calendar/event | icon = {{ui/icon| mod = }} | title = | description = | link = | link-text = | data = | data-end = | tooltip-right = true | before = true | after = true | ymd--1 = | ymd--2 = | ymd--3 = | ymd--4 = | ymd--5 = | ymd--6 = | ymd--7 = }}