Шаблон:Магический предмет: различия между версиями

Нет описания правки
Нет описания правки
Строка 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;">
<div class="infobox" style="min-width:200px; max-width:300px; width:auto; float:right; margin:0 0 1em 1em; border:1px solid #aaa; padding:4px; background:#f9f9f9; clear:right;">
   <!-- Заголовок -->
   <!-- Заголовок -->
   <div style="background:#4A5568; color:white; padding:8px; text-align:center; font-weight:bold; margin:-4px -4px 4px -4px;">
   <div style="background:#4A5568; color:white; padding:8px; text-align:center; font-weight:bold; margin:-4px -4px 4px -4px;">
Строка 96: Строка 96:


   <!-- Таблица характеристик -->
   <!-- Таблица характеристик -->
   <table style="width:100%; margin-top:4px;">
   <table style="width:100%; margin-top:4px; border-collapse:collapse;">
     <!-- Тип -->
     <!-- Тип -->
     {{#if: {{{тип|{{{type|}}}}}}
     {{#if: {{{тип|{{{type|}}}}}}
       | <tr>
       | <tr>
           <td style="font-weight:bold; white-space:nowrap; padding-right:10px;">Тип:</td>
           <td style="font-weight:bold; white-space:nowrap; padding:4px 10px 4px 0;">Тип:</td>
           <td style="width:100%;">{{{тип|{{{type|}}}}}}}</td>
           <td style="width:100%; padding:4px 0;">{{{тип|{{{type|}}}}}}}</td>
         </tr>
         </tr>
       |
       |
Строка 109: Строка 109:
     {{#if: {{{редкость|{{{rarity|}}}}}}
     {{#if: {{{редкость|{{{rarity|}}}}}}
       | <tr>
       | <tr>
           <td style="font-weight:bold; white-space:nowrap; padding-right:10px;">Редкость:</td>
           <td style="font-weight:bold; white-space:nowrap; padding:4px 10px 4px 0;">Редкость:</td>
           <td style="width:100%;">{{{редкость|{{{rarity|}}}}}}}</td>
           <td style="width:100%; padding:4px 0;">{{{редкость|{{{rarity|}}}}}}}</td>
         </tr>
         </tr>
       |
       |
Строка 118: Строка 118:
     {{#if: {{{настройка|{{{attunement|}}}}}}
     {{#if: {{{настройка|{{{attunement|}}}}}}
       | <tr>
       | <tr>
           <td style="font-weight:bold; white-space:nowrap; padding-right:10px;">Настройка:</td>
           <td style="font-weight:bold; white-space:nowrap; padding:4px 10px 4px 0;">Настройка:</td>
           <td style="width:100%;">{{#switch: {{{настройка|{{{attunement|}}}}}}
           <td style="width:100%; padding:4px 0;">{{#switch: {{{настройка|{{{attunement|}}}}}}
             | true = Да
             | true = Да
             | false = Нет
             | false = Нет
Строка 131: Строка 131:
     {{#if: {{{цена|{{{price|}}}}}}
     {{#if: {{{цена|{{{price|}}}}}}
       | <tr>
       | <tr>
           <td style="font-weight:bold; white-space:nowrap; padding-right:10px;">Цена:</td>
           <td style="font-weight:bold; white-space:nowrap; padding:4px 10px 4px 0;">Цена:</td>
           <td style="width:100%;">{{{цена|{{{price|}}}}}}}</td>
           <td style="width:100%; padding:4px 0;">{{{цена|{{{price|}}}}}}}</td>
         </tr>
         </tr>
       |
       |
Строка 140: Строка 140:
     {{#if: {{{формула_зелья|{{{potion_formula|}}}}}}
     {{#if: {{{формула_зелья|{{{potion_formula|}}}}}}
       | <tr>
       | <tr>
           <td style="font-weight:bold; white-space:nowrap; padding-right:10px;">Формула зелья:</td>
           <td style="font-weight:bold; white-space:nowrap; padding:4px 10px 4px 0;">Формула зелья:</td>
           <td style="width:100%;">{{{формула_зелья|{{{potion_formula|}}}}}}}</td>
           <td style="width:100%; padding:4px 0;">{{{формула_зелья|{{{potion_formula|}}}}}}}</td>
         </tr>
         </tr>
       |
       |
Строка 147: Строка 147:
   </table>
   </table>
</div>
</div>
<style>
@media (max-width: 600px) {
  .infobox {
    float: none;
    margin: 1em auto;
    width: 100%;
  }
}
</style>
</onlyinclude>
</onlyinclude>