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

Материал из Протест.wiki
(Отмена правки 650, сделанной Commissionerenginego (обсуждение))
Метка: отмена
Нет описания правки
 
(не показано 20 промежуточных версий 2 участников)
Строка 1: Строка 1:
<includeonly>
<includeonly><div class="infobox" style="float:right; max-width:300px; margin:0 0 1em 1em;">  
<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;">
Строка 8: Строка 7:
     <div class="infobox-content">
     <div class="infobox-content">
         {{#if:{{{status|}}}|<p><strong>Статус:</strong> {{{status}}}</p>}}
         {{#if:{{{status|}}}|<p><strong>Статус:</strong> {{{status}}}</p>}}
 
        {{#if:{{{organization_type|}}}|<p><strong>Тип организации:</strong> {{{organization_type}}}</p>}}
         {{#if:{{{ideology|}}}|<p><strong>Идеология:</strong> {{{ideology}}}</p>}}
         {{#if:{{{ideology|}}}|<p><strong>Идеология:</strong> {{{ideology}}}</p>}}
        {{#if:{{{region|}}}|<p><strong>Регион:</strong> [[:Категория:{{{region}}}|{{{region}}}]]</p>}}
         {{#if:{{{influence|}}}|<p><strong>Влияние:</strong> {{{influence}}}</p>}}
         {{#if:{{{influence|}}}|<p><strong>Влияние:</strong> {{{influence}}}</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}}]]}}{{#if:{{#explode:{{{tags}}}|,|3}}|, [[:Категория:{{#explode:{{{tags}}}|,|3}}|{{#explode:{{{tags}}}|,|3}}]]}}{{#if:{{#explode:{{{tags}}}|,|4}}|, [[:Категория:{{#explode:{{{tags}}}|,|4}}|{{#explode:{{{tags}}}|,|4}}]]}}{{#if:{{#explode:{{{tags}}}|,|5}}|, [[:Категория:{{#explode:{{{tags}}}|,|5}}|{{#explode:{{{tags}}}|,|5}}]]}}{{#if:{{#explode:{{{tags}}}|,|6}}|, [[:Категория:{{#explode:{{{tags}}}|,|6}}|{{#explode:{{{tags}}}|,|6}}]]}}{{#if:{{#explode:{{{tags}}}|,|7}}|, [[:Категория:{{#explode:{{{tags}}}|,|7}}|{{#explode:{{{tags}}}|,|7}}]]}}{{#if:{{#explode:{{{tags}}}|,|8}}|, [[:Категория:{{#explode:{{{tags}}}|,|8}}|{{#explode:{{{tags}}}|,|8}}]]}}{{#if:{{#explode:{{{tags}}}|,|9}}|, [[:Категория:{{#explode:{{{tags}}}|,|9}}|{{#explode:{{{tags}}}|,|9}}]]}}</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}}]]}}
        {{#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|}}}|<p><strong>Дата создания:</strong> {{{creation_date}}}</p>}}
         {{#if:{{{end_of_activity|}}}|<p><strong>Дата прекращения активности:</strong> {{{end_of_activity}}}</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}}]]}}{{#if:{{#explode:{{{reasons_for_cessation}}}|,|3}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|3}}|{{#explode:{{{reasons_for_cessation}}}|,|3}}]]}}{{#if:{{#explode:{{{reasons_for_cessation}}}|,|4}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|4}}|{{#explode:{{{reasons_for_cessation}}}|,|4}}]]}}{{#if:{{#explode:{{{reasons_for_cessation}}}|,|5}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|5}}|{{#explode:{{{reasons_for_cessation}}}|,|5}}]]}}{{#if:{{#explode:{{{reasons_for_cessation}}}|,|6}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|6}}|{{#explode:{{{reasons_for_cessation}}}|,|6}}]]}}{{#if:{{#explode:{{{reasons_for_cessation}}}|,|7}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|7}}|{{#explode:{{{reasons_for_cessation}}}|,|7}}]]}}{{#if:{{#explode:{{{reasons_for_cessation}}}|,|8}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|8}}|{{#explode:{{{reasons_for_cessation}}}|,|8}}]]}}{{#if:{{#explode:{{{reasons_for_cessation}}}|,|9}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|9}}|{{#explode:{{{reasons_for_cessation}}}|,|9}}]]}}</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}}]]}}{{#if:{{#explode:{{{persons}}}|,|5}}|, [[:Категория:{{#explode:{{{persons}}}|,|5}}|{{#explode:{{{persons}}}|,|5}}]]}}{{#if:{{#explode:{{{persons}}}|,|6}}|, [[:Категория:{{#explode:{{{persons}}}|,|6}}|{{#explode:{{{persons}}}|,|6}}]]}}{{#if:{{#explode:{{{persons}}}|,|7}}|, [[:Категория:{{#explode:{{{persons}}}|,|7}}|{{#explode:{{{persons}}}|,|7}}]]}}{{#if:{{#explode:{{{persons}}}|,|8}}|, [[:Категория:{{#explode:{{{persons}}}|,|8}}|{{#explode:{{{persons}}}|,|8}}]]}}{{#if:{{#explode:{{{persons}}}|,|9}}|, [[:Категория:{{#explode:{{{persons}}}|,|9}}|{{#explode:{{{persons}}}|,|9}}]]}}</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:{{{size|}}}|<p><strong>Численность:</strong> {{{size}}}</p>}}
         {{#if:{{{resources|}}}|<p><strong>Ресурсы:</strong> {{{resources}}}</p>}}
         {{#if:{{{resources|}}}|<p><strong>Ресурсы:</strong> {{{resources}}}</p>}}
Строка 27: Строка 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}}}|,|2}}|[[Категория:{{#explode:{{{tags}}}|,|2}}]]}}
{{#if:{{#explode:{{{tags}}}|,|3}}|[[Категория:{{#explode:{{{tags}}}|,|3}}]]}}
{{#if:{{#explode:{{{tags}}}|,|4}}|[[Категория:{{#explode:{{{tags}}}|,|4}}]]}}
}}
}}
{{#if:{{{reasons_for_cessation|}}}
{{#if:{{{reasons_for_cessation|}}}
|{{#if:{{#explode:{{{reasons_for_cessation}}}|,|0}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|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:{{{persons|}}}  
 
{{#if:{{{persons|}}}
|{{#if:{{#explode:{{{persons}}}|,|0}}|[[Категория:{{#explode:{{{persons}}}|,|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}}]]}}
}}
}}


<!-- Вызов навигации -->
[[Категория:Организации]]
{{КатегорииОрганизации|tags={{{tags}}}|reasons_for_cessation={{{reasons_for_cessation}}}|persons={{{persons}}}}}
</includeonly>
</includeonly>
<noinclude>
<templatedata>
{
    "description": "Шаблон для отображения информации об организации в формате инфобокса.",
    "params": {
        "name": {
            "label": "Название",
            "description": "Полное официальное название организации.",
            "type": "string",
            "required": true,
            "example": "Организация Свободы"
        },
        "image": {
            "label": "Изображение",
            "description": "Имя файла изображения (логотипа или эмблемы организации, загруженного на вики).",
            "type": "string",
            "example": "Logo.jpg"
        },
        "status": {
            "label": "Статус",
            "description": "Текущий статус организации (например, активна, распущена, запрещена).",
            "type": "string",
            "example": "Активна"
        },
        "ideology": {
            "label": "Идеология",
            "description": "Идеологическая основа организации (например, либерализм, социализм).",
            "type": "string",
            "example": "Либерализм"
        },
        "influence": {
            "label": "Влияние",
            "description": "Описание степени влияния организации (например, локальное, национальное, международное).",
            "type": "string",
            "example": "Национальное"
        },
        "tags": {
            "label": "Теги",
            "description": "Ключевые слова или категории, описывающие организацию, перечисленные через запятую. Добавляют организацию в соответствующие категории.",
            "type": "string",
            "example": "Политика, Молодежное движение"
        },
        "creation_date": {
            "label": "Дата создания",
            "description": "Дата основания организации в формате ДД.ММ.ГГГГ или ГГГГ.",
            "type": "string",
            "example": "01.01.1990"
        },
        "end_of_activity": {
            "label": "Дата прекращения активности",
            "description": "Дата, когда организация прекратила деятельность (если применимо), в формате ДД.ММ.ГГГГ или ГГГГ.",
            "type": "string",
            "example": "31.12.2020"
        },
        "reasons_for_cessation": {
            "label": "Причины прекращения активности",
            "description": "Причины, по которым организация прекратила деятельность, перечисленные через запятую. Добавляют организацию в соответствующие категории.",
            "type": "string",
            "example": "Запрет, Финансовые проблемы"
        },
        "persons": {
            "label": "Лица",
            "description": "Ключевые лица, связанные с организацией (например, лидеры, основатели), перечисленные через запятую. Добавляют организацию в соответствующие категории.",
            "type": "string",
            "example": "Иван Иванов, Петр Петров"
        },
        "size": {
            "label": "Численность",
            "description": "Количество членов или участников организации (примерное или точное).",
            "type": "string",
            "example": "5000 членов"
        },
        "resources": {
            "label": "Ресурсы",
            "description": "Информация о ресурсах организации (например, финансы, инфраструктура).",
            "type": "string",
            "example": "Офис в Москве, годовой бюджет 10 млн"
        },
        "links": {
            "label": "Ссылки",
            "description": "Ссылки на официальный сайт или другие ресурсы организации.",
            "type": "string",
            "example": "https://example.com"
        },
        "predecessor": {
            "label": "Предшественник",
            "description": "Название организации, которая предшествовала данной (если применимо).",
            "type": "string",
            "example": "Старая организация"
        },
        "successor": {
            "label": "Преемник",
            "description": "Название организации, которая стала преемником данной (если применимо).",
            "type": "string",
            "example": "Новая организация"
        }
    },
    "paramOrder": [
        "name",
        "image",
        "status",
        "ideology",
        "influence",
        "tags",
        "creation_date",
        "end_of_activity",
        "reasons_for_cessation",
        "persons",
        "size",
        "resources",
        "links",
        "predecessor",
        "successor"
    ]
}
</templatedata>
</noinclude>

Текущая версия от 07:30, 9 ноября 2025