Шаблон:recipe
| Строка 4: | Строка 4: | ||
<!-- НАЗВАНИЕ --> | <!-- НАЗВАНИЕ --> | ||
<div style="background:#1b1b1b; min-height:42px; display:flex; align-items:center; justify-content:center; padding:0 20px; box-sizing:border-box; box-shadow:inset 0 1px 2px rgba(255,255,255,0.06), inset 0 -2px 3px rgba(0,0,0,0.45); border-bottom:1px solid rgba(255,255,255,0.04);"> | <div style="background:#1b1b1b; min-height:42px; display:flex; align-items:center; justify-content:center; padding:0 20px; box-sizing:border-box; box-shadow:inset 0 1px 2px rgba(255,255,255,0.06), inset 0 -2px 3px rgba(0,0,0,0.45); border-bottom:1px solid rgba(255,255,255,0.04);"> | ||
<div style="font-size:18px; font-weight:bold; color:#eee; text-align:center; line-height:22px;"> | <div style="font-size:18px; font-weight:bold; color:#eee; text-align:center; line-height:22px;"> | ||
{{{title|Рецепт}}} | {{{title|Рецепт}}} | ||
</div> | </div> | ||
</div> | </div> | ||
| Строка 20: | Строка 18: | ||
{{#if:{{{ingredient1_name|}}}| | {{#if:{{{ingredient1_name|}}}| | ||
<div style="display:flex; flex-direction:column; align-items:center; width:75px;"> | <div style="display:flex; flex-direction:column; align-items:center; width:75px;"> | ||
<div style="width:63px; height:63px; background:#555; border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:inset 2px 2px 3px rgba(255,255,255,0.08), inset -2px -2px 3px rgba(0,0,0,0.35);"> | <div style="width:63px; height:63px; background:#555; border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:inset 2px 2px 3px rgba(255,255,255,0.08), inset -2px -2px 3px rgba(0,0,0,0.35);"> | ||
[[File:{{{ingredient1_img}}}|40px]] | [[File:{{{ingredient1_img}}}|40px]] | ||
</div> | </div> | ||
<div style="font-size:14px; color:#ddd; text-align:center; margin-top:8px; line-height:18px;"> | <div style="font-size:14px; color:#ddd; text-align:center; margin-top:8px; line-height:18px;"> | ||
{{{ingredient1_name}}}{{#if:{{{ingredient1_amount|}}}| [{{{ingredient1_amount}}}]|}} | {{{ingredient1_name}}}{{#if:{{{ingredient1_amount|}}}| [{{{ingredient1_amount}}}]|}} | ||
</div> | </div> | ||
</div> | </div> | ||
|}} | |}} | ||
| Строка 35: | Строка 30: | ||
{{#if:{{{ingredient2_name|}}}| | {{#if:{{{ingredient2_name|}}}| | ||
<div style="display:flex; flex-direction:column; align-items:center; width:75px;"> | <div style="display:flex; flex-direction:column; align-items:center; width:75px;"> | ||
<div style="width:63px; height:63px; background:#555; border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:inset 2px 2px 3px rgba(255,255,255,0.08), inset -2px -2px 3px rgba(0,0,0,0.35);"> | <div style="width:63px; height:63px; background:#555; border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:inset 2px 2px 3px rgba(255,255,255,0.08), inset -2px -2px 3px rgba(0,0,0,0.35);"> | ||
[[File:{{{ingredient2_img}}}|40px]] | [[File:{{{ingredient2_img}}}|40px]] | ||
</div> | </div> | ||
<div style="font-size:14px; color:#ddd; text-align:center; margin-top:8px; line-height:18px;"> | <div style="font-size:14px; color:#ddd; text-align:center; margin-top:8px; line-height:18px;"> | ||
{{{ingredient2_name}}}{{#if:{{{ingredient2_amount|}}}| [{{{ingredient2_amount}}}]|}} | {{{ingredient2_name}}}{{#if:{{{ingredient2_amount|}}}| [{{{ingredient2_amount}}}]|}} | ||
</div> | </div> | ||
</div> | </div> | ||
|}} | |}} | ||
| Строка 50: | Строка 42: | ||
{{#if:{{{ingredient3_name|}}}| | {{#if:{{{ingredient3_name|}}}| | ||
<div style="display:flex; flex-direction:column; align-items:center; width:75px;"> | <div style="display:flex; flex-direction:column; align-items:center; width:75px;"> | ||
<div style="width:63px; height:63px; background:#555; border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:inset 2px 2px 3px rgba(255,255,255,0.08), inset -2px -2px 3px rgba(0,0,0,0.35);"> | <div style="width:63px; height:63px; background:#555; border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:inset 2px 2px 3px rgba(255,255,255,0.08), inset -2px -2px 3px rgba(0,0,0,0.35);"> | ||
[[File:{{{ingredient3_img}}}|40px]] | [[File:{{{ingredient3_img}}}|40px]] | ||
</div> | </div> | ||
<div style="font-size:14px; color:#ddd; text-align:center; margin-top:8px; line-height:18px;"> | <div style="font-size:14px; color:#ddd; text-align:center; margin-top:8px; line-height:18px;"> | ||
{{{ingredient3_name}}}{{#if:{{{ingredient3_amount|}}}| [{{{ingredient3_amount}}}]|}} | {{{ingredient3_name}}}{{#if:{{{ingredient3_amount|}}}| [{{{ingredient3_amount}}}]|}} | ||
</div> | </div> | ||
</div> | </div> | ||
|}} | |}} | ||
| Строка 65: | Строка 54: | ||
{{#if:{{{ingredient4_name|}}}| | {{#if:{{{ingredient4_name|}}}| | ||
<div style="display:flex; flex-direction:column; align-items:center; width:75px;"> | <div style="display:flex; flex-direction:column; align-items:center; width:75px;"> | ||
<div style="width:63px; height:63px; background:#555; border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:inset 2px 2px 3px rgba(255,255,255,0.08), inset -2px -2px 3px rgba(0,0,0,0.35);"> | <div style="width:63px; height:63px; background:#555; border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:inset 2px 2px 3px rgba(255,255,255,0.08), inset -2px -2px 3px rgba(0,0,0,0.35);"> | ||
[[File:{{{ingredient4_img}}}|40px]] | [[File:{{{ingredient4_img}}}|40px]] | ||
</div> | </div> | ||
<div style="font-size:14px; color:#ddd; text-align:center; margin-top:8px; line-height:18px;"> | <div style="font-size:14px; color:#ddd; text-align:center; margin-top:8px; line-height:18px;"> | ||
{{{ingredient4_name}}}{{#if:{{{ingredient4_amount|}}}| [{{{ingredient4_amount}}}]|}} | {{{ingredient4_name}}}{{#if:{{{ingredient4_amount|}}}| [{{{ingredient4_amount}}}]|}} | ||
</div> | </div> | ||
</div> | </div> | ||
|}} | |}} | ||
| Строка 80: | Строка 66: | ||
{{#if:{{{ingredient5_name|}}}| | {{#if:{{{ingredient5_name|}}}| | ||
<div style="display:flex; flex-direction:column; align-items:center; width:75px;"> | <div style="display:flex; flex-direction:column; align-items:center; width:75px;"> | ||
<div style="width:63px; height:63px; background:#555; border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:inset 2px 2px 3px rgba(255,255,255,0.08), inset -2px -2px 3px rgba(0,0,0,0.35);"> | <div style="width:63px; height:63px; background:#555; border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:inset 2px 2px 3px rgba(255,255,255,0.08), inset -2px -2px 3px rgba(0,0,0,0.35);"> | ||
[[File:{{{ingredient5_img}}}|40px]] | [[File:{{{ingredient5_img}}}|40px]] | ||
</div> | </div> | ||
<div style="font-size:14px; color:#ddd; text-align:center; margin-top:8px; line-height:18px;"> | <div style="font-size:14px; color:#ddd; text-align:center; margin-top:8px; line-height:18px;"> | ||
{{{ingredient5_name}}}{{#if:{{{ingredient5_amount|}}}| [{{{ingredient5_amount}}}]|}} | {{{ingredient5_name}}}{{#if:{{{ingredient5_amount|}}}| [{{{ingredient5_amount}}}]|}} | ||
</div> | </div> | ||
</div> | </div> | ||
|}} | |}} | ||
| Строка 133: | Строка 116: | ||
== Recipe — шаблон рецепта == | == Recipe — шаблон рецепта == | ||
Универсальный шаблон для отображения рецептов | Универсальный шаблон для отображения рецептов. | ||
=== Параметры === | === Параметры === | ||
| Строка 172: | Строка 155: | ||
| <code>ingredient5_amount</code> || Количество пятого ингредиента || Нет | | <code>ingredient5_amount</code> || Количество пятого ингредиента || Нет | ||
|- | |- | ||
| <code>method_name</code> || | | <code>method_name</code> || Способ приготовления || Да | ||
|- | |- | ||
| <code>method_img</code> || Изображение способа приготовления || Нет | | <code>method_img</code> || Изображение способа приготовления || Нет | ||
| Строка 210: | Строка 193: | ||
</pre> | </pre> | ||
Количество теперь отображается с неразрывным пробелом: | |||
<code>Мясо [3]</code> | <code>Мясо [3]</code> | ||
| Строка 218: | Строка 201: | ||
<code>Соль [1]</code> | <code>Соль [1]</code> | ||
Если количество не указано, | Если количество не указано, отображается только название ингредиента. | ||
[[Категория:Шаблоны]] | [[Категория:Шаблоны]] | ||
</noinclude> | </noinclude> | ||