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

Материал из Протест.wiki
(Отмена правки 649, сделанной Commissionerenginego (обсуждение))
Метка: отмена
Нет описания правки
 
(не показано 10 промежуточных версий 2 участников)
Строка 1: Строка 1:
<includeonly>
<includeonly><div class="infobox" style="max-width: 300px; margin: auto;">  
<div class="infobox" style="max-width: 300px; margin: auto;">  
     <h3 class="infobox-title" style="text-align: center; margin: 0;">{{{name}}}</h3>
     <h3 class="infobox-title" style="text-align: center; margin: 0;">{{{name}}}</h3>
     <div class="infobox-image" style="text-align: center; padding: 5px;">
     <div class="infobox-image" style="text-align: center; padding: 5px;">
         [[File:{{{image}}}|200px|center|link=]]
         [[File:{{{image}}}|200px|center|link=]]
     </div>
     </div>
 
 
     <div class="infobox-content">
     <div class="infobox-content">
         {{#if:{{{status|}}}|<p><strong>Статус:</strong> {{{status}}}</p>}}
         {{#if:{{{status|}}}|<p><strong>Статус:</strong> {{{status}}}</p>}}
         {{#if:{{{type|}}}|<p><strong>Тип организации:</strong> {{{type}}}</p>}}
         {{#if:{{{organization_type|}}}|<p><strong>Тип организации:</strong> {{{organization_type}}}</p>}}
         {{#if:{{{scope|}}}|<p><strong>Сфера деятельности:</strong> {{{scope}}}</p>}}
         {{#if:{{{ideology|}}}|<p><strong>Идеология:</strong> {{{ideology}}}</p>}}
         {{#if:{{{tags|}}}|<p><strong>Теги:</strong> {{#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}}]]}}</p>}}
        {{#if:{{{region|}}}|<p><strong>Регион:</strong> [[:Категория:{{{region}}}|{{{region}}}]]</p>}}
         {{#if:{{{foundation_date|}}}|<p><strong>Дата основания:</strong> {{{foundation_date}}}</p>}}
        {{#if:{{{influence|}}}|<p><strong>Влияние:</strong> {{{influence}}}</p>}}
         {{#if:{{{closure_date|}}}|<p><strong>Дата прекращения деятельности:</strong> {{{closure_date}}}</p>}}
 
         {{#if:{{{reasons_for_closure|}}}|<p><strong>Причины прекращения деятельности:</strong> {{#if:{{#explode:{{{reasons_for_closure}}}|,|0}}|[[:Категория:{{#explode:{{{reasons_for_closure}}}|,|0}}|{{#explode:{{{reasons_for_closure}}}|,|0}}]]}}</p>}}
        <!-- Теги -->
         {{#if:{{{leaders|}}}|<p><strong>Лица:</strong> {{#if:{{#explode:{{{leaders}}}|,|0}}|[[:Категория:{{#explode:{{{leaders}}}|,|0}}|{{#explode:{{{leaders}}}|,|0}}]]}}</p>}}
         {{#if:{{{tags|}}}|
         {{#if:{{{members_count|}}}|<p><strong>Численность:</strong> {{{members_count}}}</p>}}
        <p><strong>Теги:</strong>  
        {{#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>}}
 
         {{#if:{{{creation_date|}}}|<p><strong>Дата создания:</strong> {{{creation_date}}}</p>}}
         {{#if:{{{end_of_activity|}}}|<p><strong>Дата прекращения активности:</strong> {{{end_of_activity}}}</p>}}
 
        <!-- Причины прекращения активности -->
         {{#if:{{{reasons_for_cessation|}}}|
        <p><strong>Причины прекращения активности:</strong>  
        {{#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}}}|,|2}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|2}}|{{#explode:{{{reasons_for_cessation}}}|,|2}}]]}}
        </p>}}
 
        <!-- Лица -->
         {{#if:{{{persons|}}}|
        <p><strong>Лица:</strong>  
        {{#if:{{#explode:{{{persons}}}|,|0}}|[[:Категория:{{#explode:{{{persons}}}|,|0}}|{{#explode:{{{persons}}}|,|0}}]]}}
        {{#if:{{#explode:{{{persons}}}|,|1}}|, [[:Категория:{{#explode:{{{persons}}}|,|1}}|{{#explode:{{{persons}}}|,|1}}]]}}
        {{#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:{{{resources|}}}|<p><strong>Ресурсы:</strong> {{{resources}}}</p>}}
         {{#if:{{{resources|}}}|<p><strong>Ресурсы:</strong> {{{resources}}}</p>}}
         {{#if:{{{website|}}}|<p><strong>Сайт:</strong> {{{website}}}</p>}}
         {{#if:{{{links|}}}|<p><strong>Ссылки:</strong> {{{links}}}</p>}}
         {{#if:{{{predecessor|}}}|<p><strong>Предшественник:</strong> {{{predecessor}}}</p>}}
         {{#if:{{{predecessor|}}}|<p><strong>Предшественник:</strong> {{{predecessor}}}</p>}}
         {{#if:{{{successor|}}}|<p><strong>Преемник:</strong> {{{successor}}}</p>}}
         {{#if:{{{successor|}}}|<p><strong>Преемник:</strong> {{{successor}}}</p>}}
Строка 23: Строка 51:
</div>
</div>


<!-- Добавление категорий -->
<!-- Автоматическое добавление категорий -->
{{#if:{{{region|}}}|[[Категория:{{{region}}}]]}}
 
{{#if:{{{tags|}}}
{{#if:{{{tags|}}}
|{{#if:{{#explode:{{{tags}}}|,|0}}|[[Категория:{{#explode:{{{tags}}}|,|0}}]]} }
|{{#if:{{#explode:{{{tags}}}|,|0}}|[[Категория:{{#explode:{{{tags}}}|,|0}}]]}}
{{#if:{{#explode:{{{tags}}}|,|1}}|[[Категория:{{#explode:{{{tags}}}|,|1}}]]} }
{{#if:{{#explode:{{{tags}}}|,|1}}|[[Категория:{{#explode:{{{tags}}}|,|1}}]]}}
{{#if:{{#explode:{{{tags}}}|,|2}}|[[Категория:{{#explode:{{{tags}}}|,|2}}]]} }
{{#if:{{#explode:{{{tags}}}|,|2}}|[[Категория:{{#explode:{{{tags}}}|,|2}}]]}}
{{#if:{{#explode:{{{tags}}}|,|3}}|[[Категория:{{#explode:{{{tags}}}|,|3}}]]}}
{{#if:{{#explode:{{{tags}}}|,|4}}|[[Категория:{{#explode:{{{tags}}}|,|4}}]]}}
}}
}}


{{#if:{{{reasons_for_closure|}}}
{{#if:{{{reasons_for_cessation|}}}
|{{#if:{{#explode:{{{reasons_for_closure}}}|,|0}}|[[Категория:{{#explode:{{{reasons_for_closure}}}|,|0}}]]} }
|{{#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:{{{leaders|}}}  
{{#if:{{{persons|}}}
|{{#if:{{#explode:{{{leaders}}}|,|0}}|[[Категория:{{#explode:{{{leaders}}}|,|0}}]]} }
|{{#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>


Строка 43: Строка 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"},
         "type": {"label":"Тип организации","type":"string"},
         "organization_type": {"label": "Тип организации", "type": "string"},
         "scope": {"label":"Сфера деятельности","type":"string"},
         "ideology": {"label": "Идеология", "type": "string"},
         "tags": {"label":"Теги","type":"string"},
        "region": {"label": "Регион", "type": "string"},
         "foundation_date": {"label":"Дата основания","type":"string"},
        "influence": {"label": "Влияние", "type": "string"},
         "closure_date": {"label":"Дата прекращения деятельности","type":"string"},
         "tags": {"label": "Теги", "type": "string"},
         "reasons_for_closure": {"label":"Причины прекращения деятельности","type":"string"},
         "creation_date": {"label": "Дата создания", "type": "string"},
         "leaders": {"label":"Лица","type":"string"},
         "end_of_activity": {"label": "Дата прекращения активности", "type": "string"},
         "members_count": {"label":"Численность","type":"string"},
         "reasons_for_cessation": {"label": "Причины прекращения активности", "type": "string"},
         "resources": {"label":"Ресурсы","type":"string"},
         "persons": {"label": "Лица", "type": "string"},
         "website": {"label":"Сайт","type":"string"},
         "size": {"label": "Численность", "type": "string"},
         "predecessor": {"label":"Предшественник","type":"string"},
         "resources": {"label": "Ресурсы", "type": "string"},
         "successor": {"label":"Преемник","type":"string"}
         "links": {"label": "Ссылки", "type": "string"},
         "predecessor": {"label": "Предшественник", "type": "string"},
         "successor": {"label": "Преемник", "type": "string"}
     }
     }
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

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


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

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

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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