Шаблон:Calendar/event: различия между версиями
(Новая страница: «<includeonly><div class="calendar__event flex align-i--center {{#if: {{{before}}} |calendar__event--before {{#ifexpr: {{#timel: y }} <= {{{y--0|21}}} and {{#timel...») |
|||
Строка 1: | Строка 1: | ||
− | <includeonly><div class="calendar__event flex align-i--center {{# | + | <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"> |
<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> | ||
+ | <div class="calendar__event-progress flex"> | ||
+ | <div class="calendar__event-progress-step{{#ifexpr: {{#timel: ymd }} <= {{{ymd--1}}} |--actual}}"></div> | ||
+ | {{#if: {{{ymd--2|}}} |<div class="calendar__event-progress-step{{#ifexpr: {{#timel: ymd }} <= {{{ymd--2}}} |--actual}}"></div>}}{{#if: {{{ymd--3|}}} |<div class="calendar__event-progress-step{{#ifexpr: {{#timel: ymd }} <= {{{ymd--3}}} |--actual}}"></div>}}{{#if: {{{ymd--4|}}} |<div class="calendar__event-progress-step{{#ifexpr: {{#timel: ymd }} <= {{{ymd--4}}} |--actual}}"></div>}}{{#if: {{{ymd--5|}}} |<div class="calendar__event-progress-step{{#ifexpr: {{#timel: ymd }} <= {{{ymd--5}}} |--actual}}"></div>}}{{#if: {{{ymd--6|}}} |<div class="calendar__event-progress-step{{#ifexpr: {{#timel: ymd }} <= {{{ymd--6}}} |--actual}}"></div>}}{{#if: {{{ymd--7|}}} |<div class="calendar__event-progress-step{{#ifexpr: {{#timel: ymd }} <= {{{ymd--7}}} |--actual}}"></div>}} | ||
+ | </div> | ||
<div class="calendar__event-tooltip"> | <div class="calendar__event-tooltip"> | ||
<div class="calendar__event-tooltip-inner"> | <div class="calendar__event-tooltip-inner"> | ||
− | <div class="calendar__event-tooltip-title">{{{title}}}</div> | + | <div class="calendar__event-tooltip-title">{{{title|}}}</div> |
− | <div class="calendar__event-tooltip-description">{{{description}}}</div> | + | <div class="calendar__event-tooltip-description">{{{description|}}}</div> |
− | <div class="calendar__event-tooltip-link">[{{{link}}} {{{link-text|Узнать больше}}}{{ui/icon| mod = arrow }}]</div> | + | <div class="calendar__event-tooltip-link">{{#if: {{{link|}}} |[{{{link|}}} {{{link-text|Узнать больше}}}{{ui/icon| mod = arrow }}]}}</div> |
− | <div class="calendar__event-tooltip-data">{{{data}}}</div> | + | <div class="calendar__event-tooltip-data">{{{data|}}}</div> |
</div> | </div> | ||
</div> | </div> | ||
</div></includeonly><noinclude><pre> | </div></includeonly><noinclude><pre> | ||
{{calendar/event | {{calendar/event | ||
− | |||
− | |||
| icon = {{ui/icon| mod = }} | | icon = {{ui/icon| mod = }} | ||
| title = | | title = | ||
Строка 20: | Строка 22: | ||
| link-text = | | link-text = | ||
| data = | | data = | ||
− | | | + | | before = true |
− | | | + | | after = true |
− | | | + | | ymd--1 = |
− | | | + | | ymd--2 = |
− | | | + | | ymd--3 = |
− | | | + | | ymd--4 = |
+ | | ymd--5 = | ||
+ | | ymd--6 = | ||
+ | | ymd--7 = | ||
}} | }} | ||
</pre></noinclude> | </pre></noinclude> |
Версия 08:26, 12 апреля 2021
{{calendar/event | icon = {{ui/icon| mod = }} | title = | description = | link = | link-text = | data = | before = true | after = true | ymd--1 = | ymd--2 = | ymd--3 = | ymd--4 = | ymd--5 = | ymd--6 = | ymd--7 = }}