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

Материал из Протест.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>
<!-- Инфобокс: делаем inline-block + float:right чтобы не ломать поток абзаца -->
    <div class="infobox-image" style="text-align: center; padding: 5px;">
<div class="infobox" role="complementary" style="float:right; display:inline-block; vertical-align:top; width:300px; max-width:300px; margin:0 0 0.6em 1em; box-sizing:border-box;">
        [[File:{{{image}}}|200px|center|link=]]
  <h3 class="infobox-title" style="text-align:center; margin:0 0 0.4em 0; padding:0; font-size:1.1em;">{{{name}}}</h3>
    </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>}}


        <!-- Теги -->
  <div class="infobox-image" style="text-align:center; padding:0 0 0.4em 0; margin:0;">
        {{#if:{{{tags|}}}|
    [[File:{{{image}}}|200px|center|link=]]
        <p><strong>Теги:</strong>  
  </div>
 
  <div class="infobox-content" style="font-size:90%; line-height:1.2; margin:0; padding:0;">
    {{#if:{{{status|}}}|<p style="margin:0 0 0.35em 0; padding:0;"><strong>Статус:</strong> {{{status}}}</p>}}
    {{#if:{{{organization_type|}}}|<p style="margin:0 0 0.35em 0; padding:0;"><strong>Тип организации:</strong> {{{organization_type}}}</p>}}
    {{#if:{{{ideology|}}}|<p style="margin:0 0 0.35em 0; padding:0;"><strong>Идеология:</strong> {{{ideology}}}</p>}}
    {{#if:{{{region|}}}|<p style="margin:0 0 0.35em 0; padding:0;"><strong>Регион:</strong> [[:Категория:{{{region}}}|{{{region}}}]]</p>}}
    {{#if:{{{influence|}}}|<p style="margin:0 0 0.35em 0; padding:0;"><strong>Влияние:</strong> {{{influence}}}</p>}}
 
    {{#if:{{{tags|}}|
      |<p style="margin:0 0 0.35em 0; padding:0;"><strong>Теги:</strong>
         {{#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}}]]}}
Строка 20: Строка 22:
         {{#if:{{#explode:{{{tags}}}|,|3}}|, [[:Категория:{{#explode:{{{tags}}}|,|3}}|{{#explode:{{{tags}}}|,|3}}]]}}
         {{#if:{{#explode:{{{tags}}}|,|3}}|, [[:Категория:{{#explode:{{{tags}}}|,|3}}|{{#explode:{{{tags}}}|,|3}}]]}}
         {{#if:{{#explode:{{{tags}}}|,|4}}|, [[:Категория:{{#explode:{{{tags}}}|,|4}}|{{#explode:{{{tags}}}|,|4}}]]}}
         {{#if:{{#explode:{{{tags}}}|,|4}}|, [[:Категория:{{#explode:{{{tags}}}|,|4}}|{{#explode:{{{tags}}}|,|4}}]]}}
        </p>}}
      </p>
    }}}


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


        <!-- Причины прекращения активности -->
    {{#if:{{{reasons_for_cessation|}}|
        {{#if:{{{reasons_for_cessation|}}}|
      |<p style="margin:0 0 0.35em 0; padding:0;"><strong>Причины прекращения активности:</strong>
        <p><strong>Причины прекращения активности:</strong>  
         {{#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}}]]}}
         {{#if:{{#explode:{{{reasons_for_cessation}}}|,|2}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|2}}|{{#explode:{{{reasons_for_cessation}}}|,|2}}]]}}
         {{#if:{{#explode:{{{reasons_for_cessation}}}|,|2}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|2}}|{{#explode:{{{reasons_for_cessation}}}|,|2}}]]}}
        </p>}}
      </p>
    }}}


        <!-- Лица -->
    {{#if:{{{persons|}}|
        {{#if:{{{persons|}}}|
      |<p style="margin:0 0 0.35em 0; padding:0;"><strong>Лица:</strong>
        <p><strong>Лица:</strong>  
         {{#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}}]]}}
Строка 41: Строка 43:
         {{#if:{{#explode:{{{persons}}}|,|3}}|, [[:Категория:{{#explode:{{{persons}}}|,|3}}|{{#explode:{{{persons}}}|,|3}}]]}}
         {{#if:{{#explode:{{{persons}}}|,|3}}|, [[:Категория:{{#explode:{{{persons}}}|,|3}}|{{#explode:{{{persons}}}|,|3}}]]}}
         {{#if:{{#explode:{{{persons}}}|,|4}}|, [[:Категория:{{#explode:{{{persons}}}|,|4}}|{{#explode:{{{persons}}}|,|4}}]]}}
         {{#if:{{#explode:{{{persons}}}|,|4}}|, [[:Категория:{{#explode:{{{persons}}}|,|4}}|{{#explode:{{{persons}}}|,|4}}]]}}
        </p>}}
      </p>
    }}}


        {{#if:{{{size|}}}|<p><strong>Численность:</strong> {{{size}}}</p>}}
    {{#if:{{{size|}}}|<p style="margin:0 0 0.35em 0; padding:0;"><strong>Численность:</strong> {{{size}}}</p>}}
        {{#if:{{{resources|}}}|<p><strong>Ресурсы:</strong> {{{resources}}}</p>}}
    {{#if:{{{resources|}}}|<p style="margin:0 0 0.35em 0; padding:0;"><strong>Ресурсы:</strong> {{{resources}}}</p>}}
        {{#if:{{{links|}}}|<p><strong>Ссылки:</strong> {{{links}}}</p>}}
    {{#if:{{{links|}}}|<p style="margin:0 0 0.35em 0; padding:0;"><strong>Ссылки:</strong> {{{links}}}</p>}}
        {{#if:{{{predecessor|}}}|<p><strong>Предшественник:</strong> {{{predecessor}}}</p>}}
    {{#if:{{{predecessor|}}}|<p style="margin:0 0 0.35em 0; padding:0;"><strong>Предшественник:</strong> {{{predecessor}}}</p>}}
        {{#if:{{{successor|}}}|<p><strong>Преемник:</strong> {{{successor}}}</p>}}
    {{#if:{{{successor|}}}|<p style="margin:0 0 0.35em 0; padding:0;"><strong>Преемник:</strong> {{{successor}}}</p>}}
    </div>
  </div>
</div>
</div>


<!-- Автоматическое добавление категорий -->
<!-- Автоматическое добавление категорий (сохраняем как было, без лишних отступов) -->
{{#if:{{{region|}}}|[[Категория:{{{region}}}]]}}
{{#if:{{{region|}}}|[[Категория:{{{region}}}]]}}


Строка 82: Строка 85:
<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>

Версия от 07:22, 9 ноября 2025


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

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

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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