Ma3xak2 (обсуждение | вклад) Нет описания правки |
Ma3xak2 (обсуждение | вклад) Нет описания правки |
||
| (не показано 26 промежуточных версий этого же участника) | |||
| Строка 1: | Строка 1: | ||
<includeonly> | <includeonly> | ||
<div style="display:inline-flex; flex-direction:column; background:# | <div style=" | ||
display:inline-flex; | |||
vertical-align:top; | |||
flex-direction:column; | |||
background:#171B22; | |||
border:1px solid #FFFFFF; | |||
box-sizing:border-box; | |||
overflow:hidden; | |||
color:#FFFFFF; | |||
font-family:Arial,sans-serif; | |||
margin:4px; | |||
width:auto; | |||
max-width:350px; | |||
"> | |||
<!-- НАЗВАНИЕ --> | <!-- НАЗВАНИЕ --> | ||
<div style=" | <div style=" | ||
min-height:28px; | |||
<div style="font-size: | background:#202632; | ||
{{{title|Рецепт}}} | display:flex; | ||
</div> | align-items:center; | ||
justify-content:center; | |||
padding:3px 10px; | |||
box-sizing:border-box; | |||
border-bottom:1px solid #FFFFFF; | |||
"> | |||
<div style=" | |||
font-size:14px; | |||
font-weight:bold; | |||
color:#FFFFFF; | |||
text-align:center; | |||
line-height:18px; | |||
">{{{title|Рецепт}}} | |||
</div> | |||
</div> | </div> | ||
<!-- ОСНОВНАЯ ЧАСТЬ --> | <!-- ОСНОВНАЯ ЧАСТЬ --> | ||
<div style="display:inline-flex; align-items:center; justify-content:center; gap: | <div style=" | ||
display:inline-flex; | |||
align-items:center; | |||
justify-content:center; | |||
gap:15px; | |||
padding:12px; | |||
box-sizing:border-box; | |||
flex-wrap:nowrap; | |||
"> | |||
<!-- ИНГРЕДИЕНТЫ --> | <!-- ИНГРЕДИЕНТЫ --> | ||
<div style="display:flex; align-items:flex-start; justify-content:center; gap: | <div style=" | ||
display:flex; | |||
align-items:flex-start; | |||
justify-content:center; | |||
gap:8px; | |||
flex-wrap:wrap; | |||
min-width:0; | |||
max-width:200px; | |||
"> | |||
<!-- ИНГРЕДИЕНТ 1 --> | <!-- ИНГРЕДИЕНТ 1 --> | ||
{{#if:{{{ingredient1_name|}}}| | {{#if:{{{ingredient1_name|}}}| | ||
<div style="display:flex; flex-direction:column; align-items:center; width: | <div style=" | ||
display:flex; | |||
<div style="width: | flex-direction:column; | ||
[[File:{{{ingredient1_img}}}| | align-items:center; | ||
</div> | width:70px; | ||
"> | |||
<div style="font-size: | <div style=" | ||
{{{ingredient1_name}}}{{#if:{{{ingredient1_amount|}}}| [{{{ingredient1_amount}}}]|}} | width:58px; | ||
</div> | height:58px; | ||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
overflow:hidden; | |||
">[[File:{{{ingredient1_img}}}|46px]] | |||
</div> | |||
<div style=" | |||
font-size:12px; | |||
color:#FFFFFF; | |||
text-align:center; | |||
margin-top:5px; | |||
line-height:16px; | |||
">{{{ingredient1_name}}}{{#if:{{{ingredient1_amount|}}}| [{{{ingredient1_amount}}}]|}} | |||
</div> | |||
</div> | </div> | ||
|}} | |}} | ||
| Строка 34: | Строка 88: | ||
<!-- ИНГРЕДИЕНТ 2 --> | <!-- ИНГРЕДИЕНТ 2 --> | ||
{{#if:{{{ingredient2_name|}}}| | {{#if:{{{ingredient2_name|}}}| | ||
<div style="display:flex; flex-direction:column; align-items:center; width: | <div style=" | ||
display:flex; | |||
<div style="width: | flex-direction:column; | ||
[[File:{{{ingredient2_img}}}| | align-items:center; | ||
</div> | width:70px; | ||
"> | |||
<div style="font-size: | <div style=" | ||
{{{ingredient2_name}}}{{#if:{{{ingredient2_amount|}}}| [{{{ingredient2_amount}}}]|}} | width:58px; | ||
</div> | height:58px; | ||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
overflow:hidden; | |||
">[[File:{{{ingredient2_img}}}|46px]] | |||
</div> | |||
<div style=" | |||
font-size:12px; | |||
color:#FFFFFF; | |||
text-align:center; | |||
margin-top:5px; | |||
line-height:16px; | |||
">{{{ingredient2_name}}}{{#if:{{{ingredient2_amount|}}}| [{{{ingredient2_amount}}}]|}} | |||
</div> | |||
</div> | </div> | ||
|}} | |}} | ||
| Строка 49: | Строка 116: | ||
<!-- ИНГРЕДИЕНТ 3 --> | <!-- ИНГРЕДИЕНТ 3 --> | ||
{{#if:{{{ingredient3_name|}}}| | {{#if:{{{ingredient3_name|}}}| | ||
<div style="display:flex; flex-direction:column; align-items:center; width: | <div style=" | ||
display:flex; | |||
<div style="width: | flex-direction:column; | ||
[[File:{{{ingredient3_img}}}| | align-items:center; | ||
</div> | width:70px; | ||
"> | |||
<div style="font-size: | <div style=" | ||
{{{ingredient3_name}}}{{#if:{{{ingredient3_amount|}}}| [{{{ingredient3_amount}}}]|}} | width:58px; | ||
</div> | height:58px; | ||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
overflow:hidden; | |||
">[[File:{{{ingredient3_img}}}|46px]] | |||
</div> | |||
<div style=" | |||
font-size:12px; | |||
color:#FFFFFF; | |||
text-align:center; | |||
margin-top:5px; | |||
line-height:16px; | |||
">{{{ingredient3_name}}}{{#if:{{{ingredient3_amount|}}}| [{{{ingredient3_amount}}}]|}} | |||
</div> | |||
</div> | </div> | ||
|}} | |}} | ||
| Строка 64: | Строка 144: | ||
<!-- ИНГРЕДИЕНТ 4 --> | <!-- ИНГРЕДИЕНТ 4 --> | ||
{{#if:{{{ingredient4_name|}}}| | {{#if:{{{ingredient4_name|}}}| | ||
<div style="display:flex; flex-direction:column; align-items:center; width: | <div style=" | ||
display:flex; | |||
<div style="width: | flex-direction:column; | ||
[[File:{{{ingredient4_img}}}| | align-items:center; | ||
</div> | width:70px; | ||
"> | |||
<div style="font-size: | <div style=" | ||
{{{ingredient4_name}}}{{#if:{{{ingredient4_amount|}}}| [{{{ingredient4_amount}}}]|}} | width:58px; | ||
</div> | height:58px; | ||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
overflow:hidden; | |||
">[[File:{{{ingredient4_img}}}|46px]] | |||
</div> | |||
<div style=" | |||
font-size:12px; | |||
color:#FFFFFF; | |||
text-align:center; | |||
margin-top:5px; | |||
line-height:16px; | |||
">{{{ingredient4_name}}}{{#if:{{{ingredient4_amount|}}}| [{{{ingredient4_amount}}}]|}} | |||
</div> | |||
</div> | </div> | ||
|}} | |}} | ||
| Строка 79: | Строка 172: | ||
<!-- ИНГРЕДИЕНТ 5 --> | <!-- ИНГРЕДИЕНТ 5 --> | ||
{{#if:{{{ingredient5_name|}}}| | {{#if:{{{ingredient5_name|}}}| | ||
<div style="display:flex; flex-direction:column; align-items:center; width: | <div style=" | ||
display:flex; | |||
<div style="width: | flex-direction:column; | ||
[[File:{{{ingredient5_img}}}| | align-items:center; | ||
</div> | width:70px; | ||
"> | |||
<div style="font-size: | <div style=" | ||
{{{ingredient5_name}}}{{#if:{{{ingredient5_amount|}}}| [{{{ingredient5_amount}}}]|}} | width:58px; | ||
</div> | height:58px; | ||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
overflow:hidden; | |||
">[[File:{{{ingredient5_img}}}|46px]] | |||
</div> | |||
<div style=" | |||
font-size:12px; | |||
color:#FFFFFF; | |||
text-align:center; | |||
margin-top:5px; | |||
line-height:16px; | |||
">{{{ingredient5_name}}}{{#if:{{{ingredient5_amount|}}}| [{{{ingredient5_amount}}}]|}} | |||
</div> | |||
</div> | </div> | ||
|}} | |}} | ||
| Строка 95: | Строка 201: | ||
<!-- СПОСОБ ПРИГОТОВЛЕНИЯ --> | <!-- СПОСОБ ПРИГОТОВЛЕНИЯ --> | ||
<div style="display:flex; flex-direction:column; align-items:center; justify-content:center; flex-shrink:0; min-width: | <div style=" | ||
display:flex; | |||
flex-direction:column; | |||
align-items:center; | |||
justify-content:center; | |||
flex-shrink:0; | |||
min-width:70px; | |||
border-left:1px solid #FFFFFF; | |||
padding-left:10px; | |||
"> | |||
<!-- АВТОМАТИЧЕСКАЯ КАРТИНКА МЕТОДА (с fallback) --> | |||
<div style=" | |||
width:60px; | |||
height:60px; | |||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
overflow:hidden; | |||
">{{#switch:{{{method_name|}}} | |||
|Микроволновка={{#ifexist:File:Microwave.gif|[[File:Microwave.gif|60px]]|[[File:Microwave.png|60px]]}} | |||
|Смешивание={{#ifexist:File:Beaker.png|[[File:Beaker.png|60px]]|[[File:Beaker.gif|60px]]}} | |||
|Нож={{#ifexist:File:Knife.png|[[File:Knife.png|60px]]|[[File:Knife.gif|60px]]}} | |||
|Скалка={{#ifexist:File:RollingPin.png|[[File:RollingPin.png|60px]]|[[File:RollingPin.gif|60px]]}} | |||
|#default=[[File:Microwave.gif|60px]] | |||
}} | |||
</div> | </div> | ||
<div style="font-size: | <div style=" | ||
{{{method_name|Приготовление}}}{{#if:{{{method_time|}}}|<br>{{{method_time}}}|}} | font-size:13px; | ||
font-weight:bold; | |||
line-height:17px; | |||
text-align:center; | |||
color:#FFFFFF; | |||
margin-top:4px; | |||
">{{{method_name|Приготовление}}}{{#if:{{{method_time|}}}|<br>{{{method_time}}}|}} | |||
</div> | </div> | ||
| Строка 110: | Строка 242: | ||
<!-- РЕЗУЛЬТАТ --> | <!-- РЕЗУЛЬТАТ --> | ||
<div style="display:flex; align-items:flex-start; justify-content:center;"> | <div style=" | ||
display:flex; | |||
<div style="display:flex; flex-direction:column; align-items:center; width: | align-items:flex-start; | ||
justify-content:center; | |||
<div style="width: | border-left:1px solid #FFFFFF; | ||
[[File:{{{result_img}}}| | padding-left:10px; | ||
"> | |||
<div style=" | |||
display:flex; | |||
flex-direction:column; | |||
align-items:center; | |||
width:75px; | |||
</div> | "> | ||
<div style=" | |||
width:58px; | |||
height:58px; | |||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
overflow:hidden; | |||
">[[File:{{{result_img}}}|46px]] | |||
</div> | |||
<div style=" | |||
font-size:12px; | |||
color:#FFFFFF; | |||
text-align:center; | |||
margin-top:5px; | |||
line-height:16px; | |||
">{{{result_name|Результат}}} | |||
</div> | |||
</div> | |||
</div> | </div> | ||
| Строка 129: | Строка 279: | ||
</div> | </div> | ||
</includeonly> | </includeonly> | ||