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

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


        <!-- Теги -->
         {{#if:{{{tags|}}}|<div style="margin:4px 0;"><b>Теги:</b>  
         {{#if:{{{tags|}}}|
            {{#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:{{{tags}}}|,|0}}|[[:Категория:{{#explode:{{{tags}}}|,|0}}|{{#explode:{{{tags}}}|,|0}}]]}}
            {{#if:{{#explode:{{{tags}}}|,|2}}|, [[:Категория:{{#explode:{{{tags}}}|,|2}}|{{#explode:{{{tags}}}|,|2}}]]}}
        {{#if:{{#explode:{{{tags}}}|,|1}}|, [[:Категория:{{#explode:{{{tags}}}|,|1}}|{{#explode:{{{tags}}}|,|1}}]]}}
         </div>}}
        {{#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>}}


         {{#if:{{{creation_date|}}}|<p><strong>Дата создания:</strong> {{{creation_date}}}</p>}}
         {{#if:{{{creation_date|}}}|<div style="margin:4px 0;"><b>Дата создания:</b> {{{creation_date}}}</div>}}
         {{#if:{{{end_of_activity|}}}|<p><strong>Дата прекращения активности:</strong> {{{end_of_activity}}}</p>}}
         {{#if:{{{end_of_activity|}}}|<div style="margin:4px 0;"><b>Дата прекращения активности:</b> {{{end_of_activity}}}</div>}}


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


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

Версия от 15:20, 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

без описания

Неизвестнонеобязательный