Шаблон:Организация: различия между версиями
Материал из Протест.wiki
PTRLS (обсуждение | вклад) Нет описания правки Метка: отменено |
PTRLS (обсуждение | вклад) Нет описания правки Метка: отменено |
||
| Строка 1: | Строка 1: | ||
<includeonly> | <includeonly> | ||
{| class="infobox" style="float:right; width:300px; max-width:300px; margin:0 0 0.8em 1em; border:1px solid #c8d0da; background:# | {| class="infobox" style="float:right; width:300px; max-width:300px; margin:0 0 0.8em 1em; border:1px solid #c8d0da; background:#ffffff !important; border-collapse:collapse; box-sizing:border-box; border-radius:6px; padding:0 !important;" | ||
|- | |- | ||
! style="text-align:center; padding:0.6em; font-weight:700; font-size:1.05em;" | {{{name}}} | ! style="text-align:center; padding:0.8em 0.6em 0.6em 0.6em; font-weight:700; font-size:1.05em; background:transparent !important;" | {{{name}}} | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
|- | |- | ||
| style="text-align:center; padding:0. | | style="text-align:center; padding:0.6em 0.6em 0.6em 0.6em; background:transparent !important;" | | ||
{{#ifexist:File:{{{image}}} | |||
| <!-- файл существует — показываем frameless (без рамки) --> | |||
[[File:{{{image}}}|frameless|200px|alt={{{name|}}}|link=]] | |||
| <!-- файл не найден — показываем ничего --> | |||
}} | |||
}} | }} | ||
|- | |- | ||
| style="padding: | | style="padding:0.6em; font-size:0.92em; line-height:1.25; vertical-align:top; background:transparent !important;" | | ||
{{#if:{{{status|}}}|'''Статус:''' {{{status}}}<br/>}} | {{#if:{{{status|}}}|'''Статус:''' {{{status}}}<br/>}} | ||
{{#if:{{{organization_type|}}}|'''Тип организации:''' {{{organization_type}}}<br/>}} | {{#if:{{{organization_type|}}}|'''Тип организации:''' {{{organization_type}}}<br/>}} | ||
| Строка 16: | Строка 21: | ||
{{#if:{{{tags|}}} | {{#if:{{{tags|}}} | ||
|'''Теги:''' | |'''Теги:''' | ||
{{#if:{{#explode:{{{tags}}}|,|0}}|[[:Категория:{{#explode:{{{tags}}}|,|0}}|{{#explode:{{{tags}}}|,|0}}]]}} | {{#if:{{#explode:{{{tags}}}|,|0}}|[[:Категория:{{#explode:{{{tags}}}|,|0}}|{{#explode:{{{tags}}}|,|0}}]]}} | ||
{{#if:{{#explode:{{{tags}}}|,|1}}|, [[:Категория:{{#explode:{{{tags}}}|,|1}}|{{#explode:{{{tags}}}|,|1}}]]}} | {{#if:{{#explode:{{{tags}}}|,|1}}|, [[:Категория:{{#explode:{{{tags}}}|,|1}}|{{#explode:{{{tags}}}|,|1}}]]}} | ||
<br/> | |||
<br/> | |||
}} | }} | ||
| Строка 27: | Строка 31: | ||
{{#if:{{{reasons_for_cessation|}}} | {{#if:{{{reasons_for_cessation|}}} | ||
|'''Причины прекращения активности:''' | |'''Причины прекращения активности:''' | ||
{{#if:{{#explode:{{{reasons_for_cessation}}}|,|0}}|[[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|0}}|{{#explode:{{{reasons_for_cessation}}}|,|0}}]]}} | {{#if:{{#explode:{{{reasons_for_cessation}}}|,|0}}|[[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|0}}|{{#explode:{{{reasons_for_cessation}}}|,|0}}]]}} | ||
{{#if:{{#explode:{{{reasons_for_cessation}}}|,|1}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|1}}|{{#explode:{{{reasons_for_cessation}}}|,|1}}]]}} | {{#if:{{#explode:{{{reasons_for_cessation}}}|,|1}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|1}}|{{#explode:{{{reasons_for_cessation}}}|,|1}}]]}} | ||
<br/> | <br/> | ||
}} | }} | ||
{{#if:{{{persons|}}} | {{#if:{{{persons|}}} | ||
|'''Лица:''' | |'''Лица:''' | ||
{{#if:{{#explode:{{{persons}}}|,|0}}|[[:Категория:{{#explode:{{{persons}}}|,|0}}|{{#explode:{{{persons}}}|,|0}}]]}} | {{#if:{{#explode:{{{persons}}}|,|0}}|[[:Категория:{{#explode:{{{persons}}}|,|0}}|{{#explode:{{{persons}}}|,|0}}]]}} | ||
{{#if:{{#explode:{{{persons}}}|,|1}}|, [[:Категория:{{#explode:{{{persons}}}|,|1}}|{{#explode:{{{persons}}}|,|1}}]]}} | {{#if:{{#explode:{{{persons}}}|,|1}}|, [[:Категория:{{#explode:{{{persons}}}|,|1}}|{{#explode:{{{persons}}}|,|1}}]]}} | ||
<br/> | <br/> | ||
}} | }} | ||
| Строка 46: | Строка 50: | ||
{{#if:{{{successor|}}}|'''Преемник:''' {{{successor}}}<br/>}} | {{#if:{{{successor|}}}|'''Преемник:''' {{{successor}}}<br/>}} | ||
|} | |} | ||
<!-- автокатегории --> | |||
<!-- | |||
{{#if:{{{region|}}}|[[Категория:{{{region}}}]]}} | {{#if:{{{region|}}}|[[Категория:{{{region}}}]]}} | ||
{{#if:{{{tags|}}} | {{#if:{{{tags|}}} | ||
| Строка 65: | Строка 68: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Инфобокс для организации | "description": "Инфобокс для организации — таблица, показывается справа.", | ||
"params": { "name": {"label":"Название","type":"string","required":true}, "image": {"label":" | "params": { | ||
"name": {"label":"Название","type":"string","required":true}, | |||
"image": {"label":"Имя файла (без 'File:'), например: Logo.png","type":"string"} | |||
} | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Версия от 07:27, 9 ноября 2025
Инфобокс для организации — таблица, показывается справа.
| Параметр | Описание | Тип | Статус | |
|---|---|---|---|---|
| Название | name | без описания | Строковый (без форматирования) | обязательный |
| Имя файла (без 'File:'), например: Logo.png | image | без описания | Строковый (без форматирования) | необязательный |