Шаблон:Организация: различия между версиями

Материал из Протест.wiki
Нет описания правки
Метка: отменено
Нет описания правки
Метка: ручная отмена
 
Строка 1: Строка 1:
<includeonly>
<includeonly><div class="infobox" style="max-width: 300px; margin: auto;">
<div class="infobox" style="max-width:300px;margin:auto;border:1px solid #ccc;border-radius:8px;padding:6px 8px;background:#f9f9f9;">
    <h3 class="infobox-title" style="text-align: center; margin: 0;">{{{name}}}</h3>
<h3 style="text-align:center;margin:6px 0;">{{{name}}}</h3>
    <div class="infobox-image" style="text-align: center; padding: 5px;">
        [[File:{{{image}}}|200px|center|link=]]
    </div>
 
    <div class="infobox-content">
        {{#if:{{{status|}}}|<p><strong>Статус:</strong> {{{status}}}</p>}}
        {{#if:{{{organization_type|}}}|<p><strong>Тип организации:</strong> {{{organization_type}}}</p>}}
        {{#if:{{{ideology|}}}|<p><strong>Идеология:</strong> {{{ideology}}}</p>}}
        {{#if:{{{region|}}}|<p><strong>Регион:</strong> [[:Категория:{{{region}}}|{{{region}}}]]</p>}}
        {{#if:{{{influence|}}}|<p><strong>Влияние:</strong> {{{influence}}}</p>}}


{{#if:{{{image|}}}|
        <!-- Теги -->
<div style="text-align:center;padding:5px 0;">
        {{#if:{{{tags|}}}|
[[File:{{{image}}}|220px|center|link=]]
        <p><strong>Теги:</strong>
</div>
        {{#if:{{#explode:{{{tags}}}|,|0}}|[[:Категория:{{#explode:{{{tags}}}|,|0}}|{{#explode:{{{tags}}}|,|0}}]]}}
}}
        {{#if:{{#explode:{{{tags}}}|,|1}}|, [[:Категория:{{#explode:{{{tags}}}|,|1}}|{{#explode:{{{tags}}}|,|1}}]]}}
        {{#if:{{#explode:{{{tags}}}|,|2}}|, [[:Категория:{{#explode:{{{tags}}}|,|2}}|{{#explode:{{{tags}}}|,|2}}]]}}
        {{#if:{{#explode:{{{tags}}}|,|3}}|, [[:Категория:{{#explode:{{{tags}}}|,|3}}|{{#explode:{{{tags}}}|,|3}}]]}}
        {{#if:{{#explode:{{{tags}}}|,|4}}|, [[:Категория:{{#explode:{{{tags}}}|,|4}}|{{#explode:{{{tags}}}|,|4}}]]}}
        </p>}}


<div style="font-size:90%;line-height:1.35;">
        {{#if:{{{creation_date|}}}|<p><strong>Дата создания:</strong> {{{creation_date}}}</p>}}
        {{#if:{{{end_of_activity|}}}|<p><strong>Дата прекращения активности:</strong> {{{end_of_activity}}}</p>}}


{{#if:{{{status|}}}|<div style="margin:2px 0;"><b>Статус:</b> {{{status}}}</div>}}
        <!-- Причины прекращения активности -->
{{#if:{{{organization_type|}}}|<div style="margin:2px 0;"><b>Тип организации:</b> {{{organization_type}}}</div>}}
        {{#if:{{{reasons_for_cessation|}}}|
{{#if:{{{ideology|}}}|<div style="margin:2px 0;"><b>Идеология:</b> {{{ideology}}}</div>}}
        <p><strong>Причины прекращения активности:</strong>  
{{#if:{{{region|}}}|<div style="margin:2px 0;"><b>Регион:</b> [[:Категория:{{{region}}}|{{{region}}}]]</div>}}
        {{#if:{{#explode:{{{reasons_for_cessation}}}|,|0}}|[[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|0}}|{{#explode:{{{reasons_for_cessation}}}|,|0}}]]}}
{{#if:{{{influence|}}}|<div style="margin:2px 0;"><b>Влияние:</b> {{{influence}}}</div>}}
        {{#if:{{#explode:{{{reasons_for_cessation}}}|,|1}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|1}}|{{#explode:{{{reasons_for_cessation}}}|,|1}}]]}}
        {{#if:{{#explode:{{{reasons_for_cessation}}}|,|2}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|2}}|{{#explode:{{{reasons_for_cessation}}}|,|2}}]]}}
        </p>}}


{{#if:{{{tags|}}}|
        <!-- Лица -->
<div style="margin:2px 0;"><b>Теги:</b>  
        {{#if:{{{persons|}}}|
{{#if:{{#explode:{{{tags}}}|,|0}}|[[:Категория:{{#explode:{{{tags}}}|,|0}}|{{#explode:{{{tags}}}|,|0}}]]}}
        <p><strong>Лица:</strong>  
{{#if:{{#explode:{{{tags}}}|,|1}}|, [[:Категория:{{#explode:{{{tags}}}|,|1}}|{{#explode:{{{tags}}}|,|1}}]]}}
        {{#if:{{#explode:{{{persons}}}|,|0}}|[[:Категория:{{#explode:{{{persons}}}|,|0}}|{{#explode:{{{persons}}}|,|0}}]]}}
{{#if:{{#explode:{{{tags}}}|,|2}}|, [[:Категория:{{#explode:{{{tags}}}|,|2}}|{{#explode:{{{tags}}}|,|2}}]]}}
        {{#if:{{#explode:{{{persons}}}|,|1}}|, [[:Категория:{{#explode:{{{persons}}}|,|1}}|{{#explode:{{{persons}}}|,|1}}]]}}
</div>}}
        {{#if:{{#explode:{{{persons}}}|,|2}}|, [[:Категория:{{#explode:{{{persons}}}|,|2}}|{{#explode:{{{persons}}}|,|2}}]]}}
        {{#if:{{#explode:{{{persons}}}|,|3}}|, [[:Категория:{{#explode:{{{persons}}}|,|3}}|{{#explode:{{{persons}}}|,|3}}]]}}
        {{#if:{{#explode:{{{persons}}}|,|4}}|, [[:Категория:{{#explode:{{{persons}}}|,|4}}|{{#explode:{{{persons}}}|,|4}}]]}}
        </p>}}


{{#if:{{{creation_date|}}}|<div style="margin:2px 0;"><b>Дата создания:</b> {{{creation_date}}}</div>}}
        {{#if:{{{size|}}}|<p><strong>Численность:</strong> {{{size}}}</p>}}
{{#if:{{{end_of_activity|}}}|<div style="margin:2px 0;"><b>Дата прекращения активности:</b> {{{end_of_activity}}}</div>}}
        {{#if:{{{resources|}}}|<p><strong>Ресурсы:</strong> {{{resources}}}</p>}}
        {{#if:{{{links|}}}|<p><strong>Ссылки:</strong> {{{links}}}</p>}}
        {{#if:{{{predecessor|}}}|<p><strong>Предшественник:</strong> {{{predecessor}}}</p>}}
        {{#if:{{{successor|}}}|<p><strong>Преемник:</strong> {{{successor}}}</p>}}
    </div>
</div>


{{#if:{{{reasons_for_cessation|}}}|
<!-- Автоматическое добавление категорий -->
<div style="margin:2px 0;"><b>Причины прекращения активности:</b>  
{{#if:{{{region|}}}|[[Категория:{{{region}}}]]}}
{{#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}}]]}}
</div>}}


{{#if:{{{persons|}}}|
{{#if:{{{tags|}}}
<div style="margin:2px 0;"><b>Лица:</b>
|{{#if:{{#explode:{{{tags}}}|,|0}}|[[Категория:{{#explode:{{{tags}}}|,|0}}]]}}
{{#if:{{#explode:{{{persons}}}|,|0}}|[[:Категория:{{#explode:{{{persons}}}|,|0}}|{{#explode:{{{persons}}}|,|0}}]]}}
{{#if:{{#explode:{{{tags}}}|,|1}}|[[Категория:{{#explode:{{{tags}}}|,|1}}]]}}
{{#if:{{#explode:{{{persons}}}|,|1}}|, [[:Категория:{{#explode:{{{persons}}}|,|1}}|{{#explode:{{{persons}}}|,|1}}]]}}
{{#if:{{#explode:{{{tags}}}|,|2}}|[[Категория:{{#explode:{{{tags}}}|,|2}}]]}}
{{#if:{{#explode:{{{persons}}}|,|2}}|, [[:Категория:{{#explode:{{{persons}}}|,|2}}|{{#explode:{{{persons}}}|,|2}}]]}}
{{#if:{{#explode:{{{tags}}}|,|3}}|[[Категория:{{#explode:{{{tags}}}|,|3}}]]}}
</div>}}
{{#if:{{#explode:{{{tags}}}|,|4}}|[[Категория:{{#explode:{{{tags}}}|,|4}}]]}}
}}


{{#if:{{{size|}}}|<div style="margin:2px 0;"><b>Численность:</b> {{{size}}}</div>}}
{{#if:{{{reasons_for_cessation|}}}
{{#if:{{{resources|}}}|<div style="margin:2px 0;"><b>Ресурсы:</b> {{{resources}}}</div>}}
|{{#if:{{#explode:{{{reasons_for_cessation}}}|,|0}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|0}}]]}}
{{#if:{{{links|}}}|<div style="margin:2px 0;"><b>Ссылки:</b> {{{links}}}</div>}}
{{#if:{{#explode:{{{reasons_for_cessation}}}|,|1}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|1}}]]}}
{{#if:{{{predecessor|}}}|<div style="margin:2px 0;"><b>Предшественник:</b> {{{predecessor}}}</div>}}
{{#if:{{#explode:{{{reasons_for_cessation}}}|,|2}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|2}}]]}}
{{#if:{{{successor|}}}|<div style="margin:2px 0;"><b>Преемник:</b> {{{successor}}}</div>}}
}}
</div>
 
</div>
{{#if:{{{persons|}}}
|{{#if:{{#explode:{{{persons}}}|,|0}}|[[Категория:{{#explode:{{{persons}}}|,|0}}]]}}
{{#if:{{#explode:{{{persons}}}|,|1}}|[[Категория:{{#explode:{{{persons}}}|,|1}}]]}}
{{#if:{{#explode:{{{persons}}}|,|2}}|[[Категория:{{#explode:{{{persons}}}|,|2}}]]}}
{{#if:{{#explode:{{{persons}}}|,|3}}|[[Категория:{{#explode:{{{persons}}}|,|3}}]]}}
{{#if:{{#explode:{{{persons}}}|,|4}}|[[Категория:{{#explode:{{{persons}}}|,|4}}]]}}
}}


<!-- Автоматические категории -->
{{#if:{{{region|}}}|[[Категория:{{{region}}}]]}}
{{#if:{{{tags|}}}|{{#if:{{#explode:{{{tags}}}|,|0}}|[[Категория:{{#explode:{{{tags}}}|,|0}}]]}}}}
{{#if:{{{reasons_for_cessation|}}}|{{#if:{{#explode:{{{reasons_for_cessation}}}|,|0}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|0}}]]}}}}
{{#if:{{{persons|}}}|{{#if:{{#explode:{{{persons}}}|,|0}}|[[Категория:{{#explode:{{{persons}}}|,|0}}]]}}}}
[[Категория:Организации]]
[[Категория:Организации]]
</includeonly>
</includeonly>
Строка 59: Строка 82:
<templatedata>
<templatedata>
{
{
"description":"Инфобокс организации с чистым форматированием без лишних строк.",
    "description": "Инфобокс для отображения сведений об организации или партии с автокатегоризацией.",
"params":{
    "params": {
"name":{"label":"Название","type":"string","required":true},
        "name": {"label": "Название", "type": "string", "required": true},
"image":{"label":"Изображение","type":"string"},
        "image": {"label": "Изображение", "type": "string"},
"status":{"label":"Статус","type":"string"},
        "status": {"label": "Статус", "type": "string"},
"organization_type":{"label":"Тип организации","type":"string"},
        "organization_type": {"label": "Тип организации", "type": "string"},
"ideology":{"label":"Идеология","type":"string"},
        "ideology": {"label": "Идеология", "type": "string"},
"region":{"label":"Регион","type":"string"},
        "region": {"label": "Регион", "type": "string"},
"influence":{"label":"Влияние","type":"string"},
        "influence": {"label": "Влияние", "type": "string"},
"tags":{"label":"Теги","type":"string"},
        "tags": {"label": "Теги", "type": "string"},
"creation_date":{"label":"Дата создания","type":"string"},
        "creation_date": {"label": "Дата создания", "type": "string"},
"end_of_activity":{"label":"Дата прекращения активности","type":"string"},
        "end_of_activity": {"label": "Дата прекращения активности", "type": "string"},
"reasons_for_cessation":{"label":"Причины прекращения","type":"string"},
        "reasons_for_cessation": {"label": "Причины прекращения активности", "type": "string"},
"persons":{"label":"Лица","type":"string"},
        "persons": {"label": "Лица", "type": "string"},
"size":{"label":"Численность","type":"string"},
        "size": {"label": "Численность", "type": "string"},
"resources":{"label":"Ресурсы","type":"string"},
        "resources": {"label": "Ресурсы", "type": "string"},
"links":{"label":"Ссылки","type":"string"},
        "links": {"label": "Ссылки", "type": "string"},
"predecessor":{"label":"Предшественник","type":"string"},
        "predecessor": {"label": "Предшественник", "type": "string"},
"successor":{"label":"Преемник","type":"string"}
        "successor": {"label": "Преемник", "type": "string"}
}
    }
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Текущая версия от 15:22, 19 октября 2025


Инфобокс для отображения сведений об организации или партии с автокатегоризацией.

Параметры шаблона

ПараметрОписаниеТипСтатус
Названиеname

без описания

Строковый (без форматирования)обязательный
Изображениеimage

без описания

Строковый (без форматирования)необязательный
Статусstatus

без описания

Строковый (без форматирования)необязательный
Тип организацииorganization_type

без описания

Строковый (без форматирования)необязательный
Идеологияideology

без описания

Строковый (без форматирования)необязательный
Регионregion

без описания

Строковый (без форматирования)необязательный
Влияниеinfluence

без описания

Строковый (без форматирования)необязательный
Тегиtags

без описания

Строковый (без форматирования)необязательный
Дата созданияcreation_date

без описания

Строковый (без форматирования)необязательный
Дата прекращения активностиend_of_activity

без описания

Строковый (без форматирования)необязательный
Причины прекращения активностиreasons_for_cessation

без описания

Строковый (без форматирования)необязательный
Лицаpersons

без описания

Строковый (без форматирования)необязательный
Численностьsize

без описания

Строковый (без форматирования)необязательный
Ресурсыresources

без описания

Строковый (без форматирования)необязательный
Ссылкиlinks

без описания

Строковый (без форматирования)необязательный
Предшественникpredecessor

без описания

Строковый (без форматирования)необязательный
Преемникsuccessor

без описания

Строковый (без форматирования)необязательный