Шаблон:Дискуссия: различия между версиями
Материал из Протест.wiki
(Отмена правки 768, сделанной Commissionerenginego (обсуждение)) Метка: отмена |
Нет описания правки |
||
| Строка 1: | Строка 1: | ||
<includeonly> | |||
{| class="infobox" style="width: fit-content; max-width: 420px; border: 1px solid #aaa; font-size: 90%; text-align: left; background-color: #f9f9f9; word-wrap: break-word; overflow-wrap: break-word; table-layout: fixed;" | {| class="infobox" style="width: fit-content; max-width: 420px; border: 1px solid #aaa; font-size: 90%; text-align: left; background-color: #f9f9f9; word-wrap: break-word; overflow-wrap: break-word; table-layout: fixed;" | ||
|- | |- | ||
| Строка 6: | Строка 7: | ||
|- | |- | ||
! style="width: 100px;" | Дата | ! style="width: 100px;" | Дата | ||
| style="width: 200px;" | {{{date}}} | | {{#if:{{{date|}}}| style="width: 200px;" | {{{date}}}} | ||
|- | |- | ||
! style="width: 100px;" | Причины | ! style="width: 100px;" | Причины | ||
| {{{causes}}} | | {{#if:{{{causes|}}}| {{{causes}}}} | ||
|- | |- | ||
! style="width: 100px;" | Площадка | ! style="width: 100px;" | Площадка | ||
| [[{{{location}}}]] | | {{#if:{{{location|}}}| [[{{{location}}}]]} | ||
|- | |- | ||
! style="width: 100px;" | Тезис | ! style="width: 100px;" | Тезис | ||
| {{{thesis}}} | | {{#if:{{{thesis|}}}| {{{thesis}}}} | ||
|- | |- | ||
! colspan="2" style="text-align: center; background-color: #eef6fc;" | Противоборствующие стороны | ! colspan="2" style="text-align: center; background-color: #eef6fc;" | Противоборствующие стороны | ||
| Строка 22: | Строка 23: | ||
'''Сторонники''' | '''Сторонники''' | ||
* '''Активные сторонники:''' | * '''Активные сторонники:''' | ||
** [[{{{active_supporters}}}]] | ** {{#if:{{{active_supporters|}}}| [[{{#explode:{{{active_supporters}}}|,|0}}]]}} | ||
** {{#if:{{#explode:{{{active_supporters}}}|,|1}}| [[{{#explode:{{{active_supporters}}}|,|1}}]]}} | |||
** {{#if:{{#explode:{{{active_supporters}}}|,|2}}| [[{{#explode:{{{active_supporters}}}|,|2}}]]}} | |||
** {{#if:{{#explode:{{{active_supporters}}}|,|3}}| [[{{#explode:{{{active_supporters}}}|,|3}}]]}} | |||
** {{#if:{{#explode:{{{active_supporters}}}|,|4}}| [[{{#explode:{{{active_supporters}}}|,|4}}]]}} | |||
* '''Пассивные сторонники:''' | * '''Пассивные сторонники:''' | ||
** [[{{{passive_supporters}}}]] | ** {{#if:{{{passive_supporters|}}}| [[{{#explode:{{{passive_supporters}}}|,|0}}]]}} | ||
** {{#if:{{#explode:{{{passive_supporters}}}|,|1}}| [[{{#explode:{{{passive_supporters}}}|,|1}}]]}} | |||
** {{#if:{{#explode:{{{passive_supporters}}}|,|2}}| [[{{#explode:{{{passive_supporters}}}|,|2}}]]}} | |||
** {{#if:{{#explode:{{{passive_supporters}}}|,|3}}| [[{{#explode:{{{passive_supporters}}}|,|3}}]]}} | |||
** {{#if:{{#explode:{{{passive_supporters}}}|,|4}}| [[{{#explode:{{{passive_supporters}}}|,|4}}]]}} | |||
| style="text-align: left; vertical-align: top; width: 50%; background-color: #f2f2f2;" | | | style="text-align: left; vertical-align: top; width: 50%; background-color: #f2f2f2;" | | ||
'''Противники''' | '''Противники''' | ||
* '''Активные противники:''' | * '''Активные противники:''' | ||
** [[{{{active_opponents}}}]] | ** {{#if:{{{active_opponents|}}}| [[{{#explode:{{{active_opponents}}}|,|0}}]]}} | ||
** {{#if:{{#explode:{{{active_opponents}}}|,|1}}| [[{{#explode:{{{active_opponents}}}|,|1}}]]}} | |||
** {{#if:{{#explode:{{{active_opponents}}}|,|2}}| [[{{#explode:{{{active_opponents}}}|,|2}}]]}} | |||
** {{#if:{{#explode:{{{active_opponents}}}|,|3}}| [[{{#explode:{{{active_opponents}}}|,|3}}]]}} | |||
** {{#if:{{#explode:{{{active_opponents}}}|,|4}}| [[{{#explode:{{{active_opponents}}}|,|4}}]]}} | |||
* '''Пассивные противники:''' | * '''Пассивные противники:''' | ||
** [[{{{passive_opponents}}}]] | ** {{#if:{{{passive_opponents|}}}| [[{{#explode:{{{passive_opponents}}}|,|0}}]]}} | ||
** {{#if:{{#explode:{{{passive_opponents}}}|,|1}}| [[{{#explode:{{{passive_opponents}}}|,|1}}]]}} | |||
** {{#if:{{#explode:{{{passive_opponents}}}|,|2}}| [[{{#explode:{{{passive_opponents}}}|,|2}}]]}} | |||
** {{#if:{{#explode:{{{passive_opponents}}}|,|3}}| [[{{#explode:{{{passive_opponents}}}|,|3}}]]}} | |||
** {{#if:{{#explode:{{{passive_opponents}}}|,|4}}| [[{{#explode:{{{passive_opponents}}}|,|4}}]]}} | |||
|- | |- | ||
! colspan="2" style="text-align: center; background-color: #eef6fc;" | Итог | ! colspan="2" style="text-align: center; background-color: #eef6fc;" | Итог | ||
|- | |- | ||
| colspan="2" style="text-align: center;" | {{{outcome}}} | | colspan="2" style="text-align: center;" | {{#if:{{{outcome|}}}| {{{outcome}}}} | ||
|} | |} | ||
[[Категория:События]] | |||
</includeonly> | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"description": "Инфобокс события с автокатегоризацией и вики-гиперссылками, поддержкой до 5 сторонников и противников.", | |||
"params": { | |||
"name": { | |||
"label": "Название события", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"image": { | |||
"label": "Изображение", | |||
"type": "string" | |||
}, | |||
"date": { | |||
"label": "Дата", | |||
"type": "string" | |||
}, | |||
"causes": { | |||
"label": "Причины", | |||
"type": "string" | |||
}, | |||
"location": { | |||
"label": "Площадка", | |||
"type": "string" | |||
}, | |||
"thesis": { | |||
"label": "Тезис", | |||
"type": "string" | |||
}, | |||
"active_supporters": { | |||
"label": "Активные сторонники (через запятую)", | |||
"type": "string" | |||
}, | |||
"passive_supporters": { | |||
"label": "Пассивные сторонники (через запятую)", | |||
"type": "string" | |||
}, | |||
"active_opponents": { | |||
"label": "Активные противники (через запятую)", | |||
"type": "string" | |||
}, | |||
"passive_opponents": { | |||
"label": "Пассивные противники (через запятую)", | |||
"type": "string" | |||
}, | |||
"outcome": { | |||
"label": "Итог", | |||
"type": "string" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> | |||
Версия от 15:50, 18 октября 2025
Инфобокс события с автокатегоризацией и вики-гиперссылками, поддержкой до 5 сторонников и противников.
| Параметр | Описание | Тип | Статус | |
|---|---|---|---|---|
| Название события | name | без описания | Строковый (без форматирования) | обязательный |
| Изображение | image | без описания | Строковый (без форматирования) | необязательный |
| Дата | date | без описания | Строковый (без форматирования) | необязательный |
| Причины | causes | без описания | Строковый (без форматирования) | необязательный |
| Площадка | location | без описания | Строковый (без форматирования) | необязательный |
| Тезис | thesis | без описания | Строковый (без форматирования) | необязательный |
| Активные сторонники (через запятую) | active_supporters | без описания | Строковый (без форматирования) | необязательный |
| Пассивные сторонники (через запятую) | passive_supporters | без описания | Строковый (без форматирования) | необязательный |
| Активные противники (через запятую) | active_opponents | без описания | Строковый (без форматирования) | необязательный |
| Пассивные противники (через запятую) | passive_opponents | без описания | Строковый (без форматирования) | необязательный |
| Итог | outcome | без описания | Строковый (без форматирования) | необязательный |