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

Материал из Протест.wiki
Нет описания правки
Метка: отменено
Нет описания правки
 
(не показаны 4 промежуточные версии этого же участника)
Строка 1: Строка 1:
<includeonly>
<includeonly><div class="infobox" style="float:right; max-width:300px; margin:0 0 1em 1em;">  
<!-- Инфобокс: делаем inline-block + float:right чтобы не ломать поток абзаца -->
    <h3 class="infobox-title" style="text-align: center; margin: 0;">{{{name}}}</h3>
<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;">
    <div class="infobox-image" style="text-align: center; padding: 5px;">
  <h3 class="infobox-title" style="text-align:center; margin:0 0 0.4em 0; padding:0; font-size:1.1em;">{{{name}}}</h3>
        [[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>}}


  <div class="infobox-image" style="text-align:center; padding:0 0 0.4em 0; margin:0;">
        <!-- Теги -->
    [[File:{{{image}}}|200px|center|link=]]
        {{#if:{{{tags|}}}|
  </div>
        <p><strong>Теги:</strong>  
 
  <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}}]]}}
Строка 22: Строка 20:
         {{#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 style="margin:0 0 0.35em 0; padding:0;"><strong>Дата создания:</strong> {{{creation_date}}}</p>}}
        {{#if:{{{creation_date|}}}|<p><strong>Дата создания:</strong> {{{creation_date}}}</p>}}
    {{#if:{{{end_of_activity|}}}|<p style="margin:0 0 0.35em 0; padding:0;"><strong>Дата прекращения активности:</strong> {{{end_of_activity}}}</p>}}
        {{#if:{{{end_of_activity|}}}|<p><strong>Дата прекращения активности:</strong> {{{end_of_activity}}}</p>}}


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


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


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

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