Шаблон:Дискуссия: различия между версиями
Материал из Протест.wiki
PTRLS (обсуждение | вклад) Нет описания правки |
Нет описания правки |
||
| (не показано 39 промежуточных версий 3 участников) | |||
| Строка 1: | Строка 1: | ||
{| class="infobox" style="width: | <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;" | |||
|- | |- | ||
! colspan="2" style="text-align: center; font-size: 110%; background-color: #cedff2;" | {{{name}}} | ! colspan="2" style="text-align: center; font-size: 110%; background-color: #cedff2;" | {{{name}}} | ||
| Строка 5: | Строка 6: | ||
| colspan="2" style="text-align: center;" | [[File:{{{image|}}}|300px|alt={{{name}}}]] | | colspan="2" style="text-align: center;" | [[File:{{{image|}}}|300px|alt={{{name}}}]] | ||
|- | |- | ||
! style="width: 100px;" | Дата | |||
| {{#if:{{{date|}}}| {{{date}}} | |||
|- | |- | ||
! | ! style="width: 100px;" | Причины | ||
| {{{ | | {{#if:{{{causes|}}}| {{{causes}}} | ||
|- | |- | ||
! Площадка | ! style="width: 100px;" | Площадка | ||
| {{{location}}} | | {{#if:{{{location|}}}| | ||
{{ #if:{{#explode:{{{location}}}|,|0}}| [[{{#explode:{{{location}}}|,|0}}]] }}{{ #if:{{#explode:{{{location}}}|,|1}}|, [[{{#explode:{{{location}}}|,|1}}]] }}{{ #if:{{#explode:{{{location}}}|,|2}}|, [[{{#explode:{{{location}}}|,|2}}]] }}{{ #if:{{#explode:{{{location}}}|,|3}}|, [[{{#explode:{{{location}}}|,|3}}]] }}{{ #if:{{#explode:{{{location}}}|,|4}}|, [[{{#explode:{{{location}}}|,|4}}]] }} | |||
}} | |||
|- | |- | ||
! | ! style="width: 100px;" | Тезис | ||
| {{#if:{{{thesis|}}}| {{{thesis}}} | |||
|- | |- | ||
! colspan="2" style="text-align: center; background-color: #eef6fc;" | Противоборствующие стороны | |||
|- | |- | ||
| style="vertical-align: top;" | | | style="text-align: left; vertical-align: top; width: 50%; background-color: #f2f2f2;" | | ||
* {{{ | '''Сторонники''' | ||
* {{{ | * '''Активные сторонники:''' | ||
| style="vertical-align: top;" | | ** {{#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}}]]}} | |||
* '''Пассивные сторонники:''' | |||
** {{#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;" | | |||
'''Противники''' | |||
* '''Активные противники:''' | |||
** {{#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}}]]}} | |||
* '''Пассивные противники:''' | |||
** {{#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" | {{{outcome}}} | |- | ||
| colspan="2" style="text-align: center;" | {{{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> | |||
Текущая версия от 16:17, 18 октября 2025
Инфобокс события с автокатегоризацией и вики-гиперссылками, поддержкой до 5 сторонников и противников.
| Параметр | Описание | Тип | Статус | |
|---|---|---|---|---|
| Название события | name | без описания | Строковый (без форматирования) | обязательный |
| Изображение | image | без описания | Строковый (без форматирования) | необязательный |
| Дата | date | без описания | Строковый (без форматирования) | необязательный |
| Причины | causes | без описания | Строковый (без форматирования) | необязательный |
| Площадка | location | без описания | Строковый (без форматирования) | необязательный |
| Тезис | thesis | без описания | Строковый (без форматирования) | необязательный |
| Активные сторонники (через запятую) | active_supporters | без описания | Строковый (без форматирования) | необязательный |
| Пассивные сторонники (через запятую) | passive_supporters | без описания | Строковый (без форматирования) | необязательный |
| Активные противники (через запятую) | active_opponents | без описания | Строковый (без форматирования) | необязательный |
| Пассивные противники (через запятую) | passive_opponents | без описания | Строковый (без форматирования) | необязательный |
| Итог | outcome | без описания | Строковый (без форматирования) | необязательный |