|
|
| Строка 1: |
Строка 1: |
| <includeonly> | | <includeonly> |
| <!-- Надежный инфобокс на основе таблицы. -->
| | {| class="infobox" style="float:right; width:300px; max-width:300px; margin:0 0 0.8em 1em; border:1px solid #c8d0da; background:#f8fbff; border-collapse:collapse; box-sizing:border-box;" |
| <table class="infobox" role="complementary"
| | |- |
| style="float:right; width:300px; max-width:300px; margin:0 0 0.8em 1em; border:1px solid #c8d0da; background:#fff; border-collapse:collapse; box-sizing:border-box;">
| | ! style="text-align:center; padding:0.6em; font-weight:700; font-size:1.05em;" | {{{name}}} |
| <tbody>
| | {{#if:{{{image|}}} |
| <tr>
| | |- |
| <td style="padding:0.6em 0.6em 0.4em 0.6em; text-align:center; font-weight:700; font-size:1.05em;">
| | | style="text-align:center; padding:0.4em 0.6em 0.6em 0.6em;" | [[File:{{{image}}}|200px|link=|alt={{{name}}}]] |
| {{{name}}}
| | }} |
| </td>
| | |- |
| </tr>
| | | style="padding:0.5em 0.6em; font-size:0.92em; line-height:1.25; vertical-align:top;" | |
| | {{#if:{{{status|}}}|'''Статус:''' {{{status}}}<br/>}} |
| | {{#if:{{{organization_type|}}}|'''Тип организации:''' {{{organization_type}}}<br/>}} |
| | {{#if:{{{ideology|}}}|'''Идеология:''' {{{ideology}}}<br/>}} |
| | {{#if:{{{region|}}}|'''Регион:''' [[:Категория:{{{region}}}|{{{region}}}]]<br/>}} |
| | {{#if:{{{influence|}}}|'''Влияние:''' {{{influence}}}<br/>}} |
|
| |
|
| {{#if:{{{image|}}}
| | {{#if:{{{tags|}}} |
| |<tr>
| | |'''Теги:''' |
| <td style="padding:0 0.6em 0.6em 0.6em; text-align:center;">
| | {{#if:{{#explode:{{{tags}}}|,|0}}|[[:Категория:{{#explode:{{{tags}}}|,|0}}|{{#explode:{{{tags}}}|,|0}}]]}} |
| <!-- изображение: display:block чтобы не создавать лишних пробелов -->
| | {{#if:{{#explode:{{{tags}}}|,|1}}|, [[:Категория:{{#explode:{{{tags}}}|,|1}}|{{#explode:{{{tags}}}|,|1}}]]}} |
| [[File:{{{image}}}|200px|link=|alt={{{name}}}]]
| | {{#if:{{#explode:{{{tags}}}|,|2}}|, [[:Категория:{{#explode:{{{tags}}}|,|2}}|{{#explode:{{{tags}}}|,|2}}]]}} |
| </td>
| | <br/> |
| </tr>
| | }} |
| }}
| |
|
| |
|
| <tr><td style="padding:0; border-top:1px solid #e6eef6;"></td></tr>
| | {{#if:{{{creation_date|}}}|'''Дата создания:''' {{{creation_date}}}<br/>}} |
| | {{#if:{{{end_of_activity|}}}|'''Дата прекращения активности:''' {{{end_of_activity}}}<br/>}} |
|
| |
|
| <tr>
| | {{#if:{{{reasons_for_cessation|}}} |
| <td style="padding:0.5em 0.6em; font-size:0.92em; line-height:1.25;">
| | |'''Причины прекращения активности:''' |
| {{#if:{{{status|}}}|<div style="margin:0 0 0.5em 0;"><strong>Статус:</strong> {{{status}}}</div>}}
| | {{#if:{{#explode:{{{reasons_for_cessation}}}|,|0}}|[[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|0}}|{{#explode:{{{reasons_for_cessation}}}|,|0}}]]}} |
| {{#if:{{{organization_type|}}}|<div style="margin:0 0 0.5em 0;"><strong>Тип организации:</strong> {{{organization_type}}}</div>}}
| | {{#if:{{#explode:{{{reasons_for_cessation}}}|,|1}}|, [[:Категория:{{#explode:{{{reasons_for_cessation}}}|,|1}}|{{#explode:{{{reasons_for_cessation}}}|,|1}}]]}} |
| {{#if:{{{ideology|}}}|<div style="margin:0 0 0.5em 0;"><strong>Идеология:</strong> {{{ideology}}}</div>}}
| | <br/> |
| {{#if:{{{region|}}}|<div style="margin:0 0 0.5em 0;"><strong>Регион:</strong> [[:Категория:{{{region}}}|{{{region}}}]]</div>}}
| | }} |
| {{#if:{{{influence|}}}|<div style="margin:0 0 0.5em 0;"><strong>Влияние:</strong> {{{influence}}}</div>}}
| |
|
| |
|
| {{#if:{{{tags|}}|
| | {{#if:{{{persons|}}} |
| |<div style="margin:0 0 0.5em 0;"><strong>Теги:</strong>
| | |'''Лица:''' |
| {{#if:{{#explode:{{{tags}}}|,|0}}|[[:Категория:{{#explode:{{{tags}}}|,|0}}|{{#explode:{{{tags}}}|,|0}}]]}}
| | {{#if:{{#explode:{{{persons}}}|,|0}}|[[:Категория:{{#explode:{{{persons}}}|,|0}}|{{#explode:{{{persons}}}|,|0}}]]}} |
| {{#if:{{#explode:{{{tags}}}|,|1}}|, [[:Категория:{{#explode:{{{tags}}}|,|1}}|{{#explode:{{{tags}}}|,|1}}]]}}
| | {{#if:{{#explode:{{{persons}}}|,|1}}|, [[:Категория:{{#explode:{{{persons}}}|,|1}}|{{#explode:{{{persons}}}|,|1}}]]}} |
| {{#if:{{#explode:{{{tags}}}|,|2}}|, [[:Категория:{{#explode:{{{tags}}}|,|2}}|{{#explode:{{{tags}}}|,|2}}]]}}
| | <br/> |
| </div>
| | }} |
| }}
| |
| | |
| {{#if:{{{creation_date|}}}|<div style="margin:0 0 0.5em 0;"><strong>Дата создания:</strong> {{{creation_date}}}</div>}}
| |
| {{#if:{{{end_of_activity|}}}|<div style="margin:0 0 0.5em 0;"><strong>Дата прекращения активности:</strong> {{{end_of_activity}}}</div>}}
| |
| | |
| {{#if:{{{reasons_for_cessation|}}|
| |
| |<div style="margin:0 0 0.5em 0;"><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}}]]}}
| |
| </div>
| |
| }}
| |
| | |
| {{#if:{{{persons|}}|
| |
| |<div style="margin:0 0 0.5em 0;"><strong>Лица:</strong>
| |
| {{#if:{{#explode:{{{persons}}}|,|0}}|[[:Категория:{{#explode:{{{persons}}}|,|0}}|{{#explode:{{{persons}}}|,|0}}]]}}
| |
| {{#if:{{#explode:{{{persons}}}|,|1}}|, [[:Категория:{{#explode:{{{persons}}}|,|1}}|{{#explode:{{{persons}}}|,|1}}]]}}
| |
| </div>
| |
| }}
| |
|
| |
|
| {{#if:{{{size|}}}|<div style="margin:0 0 0.5em 0;"><strong>Численность:</strong> {{{size}}}</div>}}
| | {{#if:{{{size|}}}|'''Численность:''' {{{size}}}<br/>}} |
| {{#if:{{{resources|}}}|<div style="margin:0 0 0.5em 0;"><strong>Ресурсы:</strong> {{{resources}}}</div>}}
| | {{#if:{{{resources|}}}|'''Ресурсы:''' {{{resources}}}<br/>}} |
| {{#if:{{{links|}}}|<div style="margin:0 0 0.5em 0;"><strong>Ссылки:</strong> {{{links}}}</div>}}
| | {{#if:{{{links|}}}|'''Ссылки:''' {{{links}}}<br/>}} |
| {{#if:{{{predecessor|}}}|<div style="margin:0 0 0.5em 0;"><strong>Предшественник:</strong> {{{predecessor}}}</div>}}
| | {{#if:{{{predecessor|}}}|'''Предшественник:''' {{{predecessor}}}<br/>}} |
| {{#if:{{{successor|}}}|<div style="margin:0 0 0.5em 0;"><strong>Преемник:</strong> {{{successor}}}</div>}}
| | {{#if:{{{successor|}}}|'''Преемник:''' {{{successor}}}<br/>}} |
| </td>
| | |} |
| </tr>
| |
| </tbody>
| |
| </table>
| |
|
| |
|
| <!-- автоматические категории (оставляем без лишних переносов) --> | | <!-- автоматические категории --> |
| {{#if:{{{region|}}}|[[Категория:{{{region}}}]]}} | | {{#if:{{{region|}}}|[[Категория:{{{region}}}]]}} |
| {{#if:{{{tags|}}} | | {{#if:{{{tags|}}} |
| Строка 82: |
Строка 65: |
| <templatedata> | | <templatedata> |
| { | | { |
| "description": "Инфобокс для отображения сведений об организации с автокатегоризацией (таблица, float:right).", | | "description": "Инфобокс для организации (таблица, float:right).", |
| "params": { | | "params": { "name": {"label":"Название","type":"string","required":true}, "image": {"label":"Изображение","type":"string"} } |
| "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> | | </templatedata> |
| </noinclude> | | </noinclude> |