Шаблон:RecipeImage: различия между версиями
м (Замена текста — «{{cri|» на «{{Current_recipe_items|») |
м (Замена текста — «{{crd|» на «{{Current_recipe_data|») |
||
Строка 1: | Строка 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><div class="recipe-block" style="width:{{#switch:{{ | --><div class="recipe-block" style="width:{{#switch:{{Current_recipe_data|{{{1}}}|types|num={{{2}}}}}|1=134px|2=178px|3=222px|default=222px}};"><!-- | ||
--><div style="color: #efefef; font-size: 13px; text-align: center; font-weight: bold; margin-bottom: -7px;">Шанс успеха: <span style="color:#efde22">{{ | --><div style="color: #efefef; font-size: 13px; text-align: center; font-weight: bold; margin-bottom: -7px;">Шанс успеха: <span style="color:#efde22">{{Current_recipe_data|{{{1}}}|chance|num={{{2}}}}}%</span></div><!-- | ||
--><div class="item-main">{{ItemIcon|{{{1}}}|{{Current_item_data|{{{1}}}|icon}}|{{Current_item_data|{{{1}}}|rarity}}|size=70px|count={{ | --><div class="item-main">{{ItemIcon|{{{1}}}|{{Current_item_data|{{{1}}}|icon}}|{{Current_item_data|{{{1}}}|rarity}}|size=70px|count={{Current_recipe_data|{{{1}}}|count|num={{{2}}}}}}}</div><!-- | ||
--><div class="item-small-block"><!-- | --><div class="item-small-block"><!-- | ||
-->{{#if:{{Current_recipe_items|{{{1}}}|num={{{2}}}|index=1}}|<div class="item-small">{{ItemIcon|{{#explode:{{Current_recipe_items|{{{1}}}|num={{{2}}}|index=1}}|!}}|{{Current_item_data|{{#explode:{{Current_recipe_items|{{{1}}}|num={{{2}}}|index=1}}|!}}|icon}}|{{Current_item_data|{{#explode:{{Current_recipe_items|{{{1}}}|num={{{2}}}|index=1}}|!}}|rarity}}|size=30px|count={{#explode:{{Current_recipe_items|{{{1}}}|num={{{2}}}|index=1}}|!|1}}}}</div>}}<!-- | -->{{#if:{{Current_recipe_items|{{{1}}}|num={{{2}}}|index=1}}|<div class="item-small">{{ItemIcon|{{#explode:{{Current_recipe_items|{{{1}}}|num={{{2}}}|index=1}}|!}}|{{Current_item_data|{{#explode:{{Current_recipe_items|{{{1}}}|num={{{2}}}|index=1}}|!}}|icon}}|{{Current_item_data|{{#explode:{{Current_recipe_items|{{{1}}}|num={{{2}}}|index=1}}|!}}|rarity}}|size=30px|count={{#explode:{{Current_recipe_items|{{{1}}}|num={{{2}}}|index=1}}|!|1}}}}</div>}}<!-- |