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

Материал из Протест.wiki
Нет описания правки
Нет описания правки
 
(не показано 14 промежуточных версий этого же участника)
Строка 1: Строка 1:
<includeonly><!--
<includeonly>
 
<div class="infobox" style="max-width: 300px; margin: auto;">  
--><div class="infobox">  
    <h3 class="infobox-title" style="text-align: center; margin: 0;">{{{name}}}</h3>
<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> {{{organization_type}}}</p>
         {{#if:{{{ideology|}}}|<p><strong>Идеология:</strong> {{{ideology}}}</p>}}
        <p><strong>Идеология:</strong> {{{ideology}}}</p>
        {{#if:{{{influence|}}}|<p><strong>Влияние:</strong> {{{influence}}}</p>}}
         <p><strong>Регион:</strong> <!--
 
-->{{#if:{{{region|}}}
|<!--
-->{{#if:{{#explode:{{{region}}}|,|0}}|[[:Категория:{{#explode:{{{region}}}|,|0}}|{{#explode:{{{region}}}|,|0}}]]}}<!--
-->{{#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:{{{tags|}}}|
         <p><strong>Влияние:</strong> {{{influence}}}</p>
         <p><strong>Теги:</strong>  
         <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:{{{tags|}}}
        {{#if:{{{creation_date|}}}|<p><strong>Дата создания:</strong> {{{creation_date}}}</p>}}
|<!--
        {{#if:{{{end_of_activity|}}}|<p><strong>Дата прекращения активности:</strong> {{{end_of_activity}}}</p>}}
-->{{#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:{{{reasons_for_cessation|}}}|
         <p><strong>Дата создания:</strong> {{{creation_date}}}</p>
         <p><strong>Причины прекращения активности:</strong>  
         <p><strong>Дата прекращения активности:</strong> {{{end_of_activity}}}</p>
        {{#if:{{#explode:{{{reasons_for_cessation}}}|,|0}}|[[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|0}}|{{#explode:{{{reasons_for_cessation}}}|,|0}}]]}}
         <p><strong>Причины прекращения активности:</strong> <!--
        {{#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:{{{reasons_for_cessation|}}}
        {{#if:{{{persons|}}}|
|<!--
        <p><strong>Лица:</strong>
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|0}}|[[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|0}}|{{#explode:{{{reasons_for_cessation}}}|,|0}}]]}}<!--
        {{#if:{{#explode:{{{persons}}}|,|0}}|[[:Категория:{{#explode:{{{persons}}}|,|0}}|{{#explode:{{{persons}}}|,|0}}]]}}
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|1}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|1}}|{{#explode:{{{reasons_for_cessation}}}|,|1}}]]}}<!--
        {{#if:{{#explode:{{{persons}}}|,|1}}|, [[:Категория:{{#explode:{{{persons}}}|,|1}}|{{#explode:{{{persons}}}|,|1}}]]}}
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|2}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|2}}|{{#explode:{{{reasons_for_cessation}}}|,|2}}]]}}<!--
        {{#if:{{#explode:{{{persons}}}|,|2}}|, [[:Категория:{{#explode:{{{persons}}}|,|2}}|{{#explode:{{{persons}}}|,|2}}]]}}
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|3}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|3}}|{{#explode:{{{reasons_for_cessation}}}|,|3}}]]}}<!--
        {{#if:{{#explode:{{{persons}}}|,|3}}|, [[:Категория:{{#explode:{{{persons}}}|,|3}}|{{#explode:{{{persons}}}|,|3}}]]}}
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|4}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|4}}|{{#explode:{{{reasons_for_cessation}}}|,|4}}]]}}<!--
        {{#if:{{#explode:{{{persons}}}|,|4}}|, [[:Категория:{{#explode:{{{persons}}}|,|4}}|{{#explode:{{{persons}}}|,|4}}]]}}
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|5}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|5}}|{{#explode:{{{reasons_for_cessation}}}|,|5}}]]}}<!--
        </p>}}
-->{{#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:{{{size|}}}|<p><strong>Численность:</strong> {{{size}}}</p>}}
         <p><strong>Лица:</strong> {{{persons}}}</p>
         {{#if:{{{resources|}}}|<p><strong>Ресурсы:</strong> {{{resources}}}</p>}}
        <p><strong>Численность:</strong> {{{size}}}</p>
         {{#if:{{{links|}}}|<p><strong>Ссылки:</strong> {{{links}}}</p>}}
         <p><strong>Ресурсы:</strong> {{{resources}}}</p>
         {{#if:{{{predecessor|}}}|<p><strong>Предшественник:</strong> {{{predecessor}}}</p>}}
         <p><strong>Ссылки:</strong> {{{links}}}</p>  
         {{#if:{{{successor|}}}|<p><strong>Преемник:</strong> {{{successor}}}</p>}}
         <p><strong>Предшественник:</strong> {{{predecessor}}}</p>
         <p><strong>Преемник:</strong> {{{successor}}}</p>
     </div>
     </div>
</div><!--
</div>
 
--></includeonly><!--
 
==================================================================


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


-->{{#if:{{{tags|}}}
{{#if:{{{reasons_for_cessation|}}}
|<!--
|{{#if:{{#explode:{{{reasons_for_cessation}}}|,|0}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|0}}]]}}
-->{{#if:{{#explode:{{{tags}}}|,|0}}|[[Категория:{{#explode:{{{tags}}}|,|0}}]]}}<!--
{{#if:{{#explode:{{{reasons_for_cessation}}}|,|1}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|1}}]]}}
-->{{#if:{{#explode:{{{tags}}}|,|1}}|[[Категория:{{#explode:{{{tags}}}|,|1}}]]}}<!--
{{#if:{{#explode:{{{reasons_for_cessation}}}|,|2}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|2}}]]}}
-->{{#if:{{#explode:{{{tags}}}|,|2}}|[[Категория:{{#explode:{{{tags}}}|,|2}}]]}}<!--
}}
-->{{#if:{{#explode:{{{tags}}}|,|3}}|[[Категория:{{#explode:{{{tags}}}|,|3}}]]}}<!--
-->{{#if:{{#explode:{{{tags}}}|,|4}}|[[Категория:{{#explode:{{{tags}}}|,|4}}]]}}<!--
-->{{#if:{{#explode:{{{tags}}}|,|5}}|[[Категория:{{#explode:{{{tags}}}|,|5}}]]}}<!--
-->{{#if:{{#explode:{{{tags}}}|,|6}}|[[Категория:{{#explode:{{{tags}}}|,|6}}]]}}<!--
-->{{#if:{{#explode:{{{tags}}}|,|7}}|[[Категория:{{#explode:{{{tags}}}|,|7}}]]}}<!--
-->{{#if:{{#explode:{{{tags}}}|,|8}}|[[Категория:{{#explode:{{{tags}}}|,|8}}]]}}<!--
-->{{#if:{{#explode:{{{tags}}}|,|9}}|[[Категория:{{#explode:{{{tags}}}|,|9}}]]}}<!--
-->}}<!--


-->{{#if:{{{reasons_for_cessation|}}}
{{#if:{{{persons|}}}
|<!--
|{{#if:{{#explode:{{{persons}}}|,|0}}|[[Категория:{{#explode:{{{persons}}}|,|0}}]]}}
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|0}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|0}}]]}}<!--
{{#if:{{#explode:{{{persons}}}|,|1}}|[[Категория:{{#explode:{{{persons}}}|,|1}}]]}}
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|1}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|1}}]]}}<!--
{{#if:{{#explode:{{{persons}}}|,|2}}|[[Категория:{{#explode:{{{persons}}}|,|2}}]]}}
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|2}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|2}}]]}}<!--
{{#if:{{#explode:{{{persons}}}|,|3}}|[[Категория:{{#explode:{{{persons}}}|,|3}}]]}}
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|3}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|3}}]]}}<!--
{{#if:{{#explode:{{{persons}}}|,|4}}|[[Категория:{{#explode:{{{persons}}}|,|4}}]]}}
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|4}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|4}}]]}}<!--
}}
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|5}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|5}}]]}}<!--
</includeonly>
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|6}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|6}}]]}}<!--
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|7}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|7}}]]}}<!--
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|8}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|8}}]]}}<!--
-->{{#if:{{#explode:{{{reasons_for_cessation}}}|,|9}}|[[Категория:{{#explode:{{{reasons_for_cessation}}}|,|9}}]]}}<!--
-->}}</includeonly><!--


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

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


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

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

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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

без описания

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