Шаблон:Партия: различия между версиями

Материал из Протест.wiki
Нет описания правки
Метка: отменено
Нет описания правки
 
(не показано 13 промежуточных версий 1 участника)
Строка 1: Строка 1:
<includeonly><!--
<includeonly>
<div class="infobox" style="max-width: 300px; margin: auto;">
    <h3 class="infobox-title" style="text-align: center; margin: 0;">{{{name}}}</h3>


--><div class="infobox">
    {{#if:{{{image|}}}|
<h3 class="infobox-title" style="text-align: center;">{{{name}}}</h3>
    <div class="infobox-image" style="text-align: center; padding: 5px;">
    <div class="infobox-image">
         [[File:{{{image}}}|200px|center|link=]]
         [[File:{{{image}}}]]
     </div>
     </div>
 
    }}
 
     <div class="infobox-content">
     <div class="infobox-content">
         <p><strong>Статус:</strong> {{{status}}}</p>
         {{#if:{{{status|}}}|<p><strong>Статус:</strong> {{{status}}}</p>}}
         <p><strong>Идеология:</strong> {{{ideology}}}</p>
         {{#if:{{{ideology|}}}|<p><strong>Идеология:</strong> {{{ideology}}}</p>}}
         <p><strong>Регион:</strong> <!--
         {{#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}}]]}}
        </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:{{{region|}}}
        <!-- Лица (с поддержкой альтернативных названий статей) -->
|<!--
        {{#if:{{{persons|}}}|
-->{{#if:{{#explode:{{{region}}}|,|0}}|[[:Категория:{{#explode:{{{region}}}|,|0}}|{{#explode:{{{region}}}|,|0}}]]}}<!--
        <p><strong>Лица:</strong>
-->{{#if:{{#explode:{{{region}}}|,|1}}|, [[:Категория:{{#explode:{{{region}}}|,|1}}|{{#explode:{{{region}}}|,|1}}]]}}<!--
-->{{#if:{{#explode:{{{region}}}|,|2}}|, [[:Категория:{{#explode:{{{region}}}|,|2}}|{{#explode:{{{region}}}|,|2}}]]}}<!--
-->{{#if:{{#explode:{{{region}}}|,|3}}|, [[:Категория:{{#explode:{{{region}}}|,|3}}|{{#explode:{{{region}}}|,|3}}]]}}<!--
-->{{#if:{{#explode:{{{region}}}|,|4}}|, [[:Категория:{{#explode:{{{region}}}|,|4}}|{{#explode:{{{region}}}|,|4}}]]}}<!--
-->{{#if:{{#explode:{{{region}}}|,|5}}|, [[:Категория:{{#explode:{{{region}}}|,|5}}|{{#explode:{{{region}}}|,|5}}]]}}<!--
-->{{#if:{{#explode:{{{region}}}|,|6}}|, [[:Категория:{{#explode:{{{region}}}|,|6}}|{{#explode:{{{region}}}|,|6}}]]}}<!--
-->{{#if:{{#explode:{{{region}}}|,|7}}|, [[:Категория:{{#explode:{{{region}}}|,|7}}|{{#explode:{{{region}}}|,|7}}]]}}<!--
-->{{#if:{{#explode:{{{region}}}|,|8}}|, [[:Категория:{{#explode:{{{region}}}|,|8}}|{{#explode:{{{region}}}|,|8}}]]}}<!--
-->{{#if:{{#explode:{{{region}}}|,|9}}|, [[:Категория:{{#explode:{{{region}}}|,|9}}|{{#explode:{{{region}}}|,|9}}]]}}<!--
-->}}<!--


--></p>
        {{#if:{{#explode:{{{persons}}}|,|0}}|
         <p><strong>Влияние:</strong> {{{influence}}}</p>
        {{#if:{{#explode:{{{persons_articles|}}}|,|0}}
         <p><strong>Теги:</strong> {{{tags}}}</p>
        | [[{{#explode:{{{persons_articles}}}|,|0}}|{{#explode:{{{persons}}}|,|0}}]]
         <p><strong>Дата создания:</strong> {{{creation_date}}}</p>
        | {{#explode:{{{persons}}}|,|0}}
         <p><strong>Дата прекращения активности:</strong> {{{end_of_activity}}}</p>
        }}
         <p><strong>Причины прекращения активности:</strong> {{{reasons_for_cessation}}}</p>
        }}
         <p><strong>Лица:</strong> {{{persons}}}</p>
 
         <p><strong>Численность:</strong> {{{size}}}</p>
        {{#if:{{#explode:{{{persons}}}|,|1}}|,
         <p><strong>Ресурсы:</strong> {{{resources}}}</p>
        {{#if:{{#explode:{{{persons_articles|}}}|,|1}}
         <p><strong>Ссылки:</strong> {{{links}}}</p>  
        | [[{{#explode:{{{persons_articles}}}|,|1}}|{{#explode:{{{persons}}}|,|1}}]]
         <p><strong>Предшественник:</strong> {{{predecessor}}}</p>
        | {{#explode:{{{persons}}}|,|1}}
         <p><strong>Преемник:</strong> {{{successor}}}</p>
        }}
        }}
 
         {{#if:{{#explode:{{{persons}}}|,|2}}|,
         {{#if:{{#explode:{{{persons_articles|}}}|,|2}}
        | [[{{#explode:{{{persons_articles}}}|,|2}}|{{#explode:{{{persons}}}|,|2}}]]
        | {{#explode:{{{persons}}}|,|2}}
         }}
        }}
 
        {{#if:{{#explode:{{{persons}}}|,|3}}|,
         {{#if:{{#explode:{{{persons_articles|}}}|,|3}}
        | [[{{#explode:{{{persons_articles}}}|,|3}}|{{#explode:{{{persons}}}|,|3}}]]
        | {{#explode:{{{persons}}}|,|3}}
        }}
         }}
 
        {{#if:{{#explode:{{{persons}}}|,|4}}|,
         {{#if:{{#explode:{{{persons_articles|}}}|,|4}}
        | [[{{#explode:{{{persons_articles}}}|,|4}}|{{#explode:{{{persons}}}|,|4}}]]
        | {{#explode:{{{persons}}}|,|4}}
        }}
        }}
 
        </p>
         }}
 
        {{#if:{{{size|}}}|<p><strong>Численность:</strong> {{{size}}}</p>}}
         {{#if:{{{resources|}}}|<p><strong>Ресурсы:</strong> {{{resources}}}</p>}}
         {{#if:{{{links|}}}|<p><strong>Ссылки:</strong> {{{links}}}</p>}}
         {{#if:{{{predecessor|}}}|<p><strong>Предшественник:</strong> {{{predecessor}}}</p>}}
         {{#if:{{{successor|}}}|<p><strong>Преемник:</strong> {{{successor}}}</p>}}
     </div>
     </div>
</div><!--
</div>
 
<!-- Автоматические категории -->
{{#if:{{{tags|}}}
|{{#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}}]]}}
}}


--></includeonly><!--
{{#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}}]]}}
}}


--><noinclude><!--
{{#if:{{{persons|}}}
--><templatedata>
|{{#if:{{#explode:{{{persons}}}|,|0}}|[[Категория:{{#explode:{{{persons}}}|,|0}}]]}}
{
{{#if:{{#explode:{{{persons}}}|,|1}}|[[Категория:{{#explode:{{{persons}}}|,|1}}]]}}
"description": "Инфобокс для отображения информации о политических партиях и организациях.",
{{#if:{{#explode:{{{persons}}}|,|2}}|[[Категория:{{#explode:{{{persons}}}|,|2}}]]}}
"params": {
{{#if:{{#explode:{{{persons}}}|,|3}}|[[Категория:{{#explode:{{{persons}}}|,|3}}]]}}
"name": {
{{#if:{{#explode:{{{persons}}}|,|4}}|[[Категория:{{#explode:{{{persons}}}|,|4}}]]}}
"label": "Название",
}}
"description": "Название организации или партии, отображается в заголовке инфобокса."
</includeonly>
},
"image": {
"label": "Изображение",
"description": "Имя файла изображения (пример: Example.png)."
},
"status": {
"label": "Статус",
"description": "Текущий статус организации (активна, распущена и т. д.)."
},
"ideology": {
"label": "Идеология",
"description": "Основная идеология или политическое направление."
},
"region": {
"label": "Регионы",
"description": "Регионы присутствия партии, перечисленные через запятую (пример: Москва, Смоленск).",
"example": "Москва, Смоленск"
},
"influence": {
"label": "Влияние",
"description": "Степень или сфера влияния организации."
},
"tags": {
"label": "Теги",
"description": "Ключевые слова или категории, описывающие деятельность организации (через запятую)."
},
"creation_date": {
"label": "Дата создания",
"description": "Год или точная дата основания организации."
},
"end_of_activity": {
"label": "Дата прекращения активности",
"description": "Год или дата, когда организация прекратила деятельность."
},
"reasons_for_cessation": {
"label": "Причины прекращения активности",
"description": "Причины распада или прекращения деятельности (через запятую)."
},
"persons": {
"label": "Лица",
"description": "Известные участники, лидеры, деятели организации."
},
"size": {
"label": "Численность",
"description": "Количество членов организации (пример: 10 000)."
},
"resources": {
"label": "Ресурсы",
"description": "Основные ресурсы: финансовые, медийные, человеческие и т. п."
},
"links": {
"label": "Ссылки",
"description": "Внешние ссылки на сайт, соцсети, источники."
},
"predecessor": {
"label": "Предшественник",
"description": "Организация, из которой возникла данная партия."
},
"successor": {
"label": "Преемник",
"description": "Организация, пришедшая на смену данной."
}
},
"paramOrder": [
"name",
"image",
"status",
"ideology",
"region",
"influence",
"tags",
"creation_date",
"end_of_activity",
"reasons_for_cessation",
"persons",
"size",
"resources",
"links",
"predecessor",
"successor"
]
}
</templatedata><!--
--></noinclude>

Текущая версия от 11:36, 19 декабря 2025