Шаблон:Магический предмет: различия между версиями
Dmitri (обсуждение | вклад) Нет описания правки |
Dmitri (обсуждение | вклад) Нет описания правки |
||
Строка 67: | Строка 67: | ||
<onlyinclude> | <onlyinclude> | ||
<div class="infobox" style="min-width:200px; max-width:100%; width:fit-content; float:right; margin-left:10px; border:1px solid #aaa; padding:4px; background:#f9f9f9;"> | |||
! | <!-- Заголовок --> | ||
|- | {{#if: {{{название|{{{name|}}}}}} | ||
| <div style="font-weight:bold; font-size:120%; text-align:center; background:#4A5568; color:white; padding:4px; margin:-4px -4px 4px -4px;"> | |||
|- | {{{название|{{{name|}}}}}} | ||
</div> | |||
| | | | ||
| | }} | ||
! Тип | <!-- Подзаголовок --> | ||
| {{{тип|{{{type|}}}}}} | {{#if: {{{название2|{{{name2|}}}}}} | ||
| | | <div style="font-style:italic; text-align:center; margin:4px 0;"> | ||
! Редкость | {{{название2|{{{name2|}}}}}} | ||
| {{{редкость|{{{rarity|}}}}}} | </div> | ||
| | | | ||
! Настройка | }} | ||
| {{#switch: {{{настройка|{{{attunement|}}}}}} | |||
<!-- Изображение --> | |||
{{#if: {{{изображение|}}} | |||
| <div style="text-align:center; margin:4px 0;"> | |||
}} | [[Файл:{{{изображение}}}|width=100%|max-width=300px]] | ||
| | {{#if: {{{описание_изображения|}}} | ||
! Цена | | <div style="font-size:90%; font-style:italic; margin-top:4px;">{{{описание_изображения}}}</div> | ||
| {{{цена|{{{price|}}}}}} | | | ||
| | }} | ||
! Формула зелья | </div> | ||
| | |||
|- | }} | ||
|} | |||
<!-- Таблица характеристик --> | |||
<table style="width:100%; margin-top:4px;"> | |||
<!-- Тип --> | |||
{{#if: {{{тип|{{{type|}}}}}} | |||
| <tr> | |||
<td style="font-weight:bold; white-space:nowrap; padding-right:10px;">Тип:</td> | |||
<td style="width:100%;">{{{тип|{{{type|}}}}}}</td> | |||
</tr> | |||
| | |||
}} | |||
<!-- Редкость --> | |||
{{#if: {{{редкость|{{{rarity|}}}}}} | |||
| <tr> | |||
<td style="font-weight:bold; white-space:nowrap; padding-right:10px;">Редкость:</td> | |||
<td style="width:100%;">{{{редкость|{{{rarity|}}}}}}</td> | |||
</tr> | |||
| | |||
}} | |||
<!-- Настройка --> | |||
{{#if: {{{настройка|{{{attunement|}}}}}} | |||
| <tr> | |||
<td style="font-weight:bold; white-space:nowrap; padding-right:10px;">Настройка:</td> | |||
<td style="width:100%;">{{#switch: {{{настройка|{{{attunement|}}}}}} | |||
| true = Да | |||
| false = Нет | |||
| #default = {{{настройка|{{{attunement|}}}}}} | |||
}}</td> | |||
</tr> | |||
| | |||
}} | |||
<!-- Цена --> | |||
{{#if: {{{цена|{{{price|}}}}}} | |||
| <tr> | |||
<td style="font-weight:bold; white-space:nowrap; padding-right:10px;">Цена:</td> | |||
<td style="width:100%;">{{{цена|{{{price|}}}}}}</td> | |||
</tr> | |||
| | |||
}} | |||
<!-- Формула зелья --> | |||
{{#if: {{{формула_зелья|{{{potion_formula|}}}}}} | |||
| <tr> | |||
<td style="font-weight:bold; white-space:nowrap; padding-right:10px;">Формула зелья:</td> | |||
<td style="width:100%;">{{{формула_зелья|{{{potion_formula|}}}}}}</td> | |||
</tr> | |||
| | |||
}} | |||
</table> | |||
</div> | |||
</onlyinclude> | </onlyinclude> |