Шаблон:Prototype/reaction: различия между версиями

Нет описания правки
Нет описания правки
 
Строка 1: Строка 1:
<div>
{{ColoredTextFrame/ColorPalette|Неон|content=
{{#invoke:Сущность|jsonList
[[Файл:LargeBeaker.png|32px]] {{#invoke:Сущность|jsonList
|{{{requiredMixerCategories|["DummyMix"]}}}
|{{{requiredMixerCategories|["DummyMix"]}}}
|type = none  
|type = none  
|value_replace = <nowiki>{{ucfirst:{{loc|режим=GetRawString|{{#invoke:GetField|get|\1|prototype/mixingCategory.json|verbText}}}}}}</nowiki>
|value_replace = <nowiki>{{ucfirst:{{loc|режим=GetRawString|{{#invoke:GetField|get|\1|prototype/mixingCategory.json|verbText}}}}}}</nowiki>
}}
}}
<br>
<div style="
{{#invoke:Сущность|json|{{{reactants}}}|serialization/reactant}}
    display: grid;
<br>
    gap: 8px;
{{#ifeq: {{{products|}}} | {} | |  
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-items: start;
    width: max-content;
">
<div style="
    display: flex;
    flex-direction: column;
">{{#invoke:Сущность|json|{{{reactants}}}|serialization/reactant}}</div>
<div style="font-size:20px; line-height:0;">→</div>
<div>{{#ifeq: {{{products|}}} | {} | |  
{{#invoke:Сущность|jsonList
{{#invoke:Сущность|jsonList
|{{{products}}}
|{{{products}}}
|type = none  
|type = none  
|key_replace = <span></span>
|key_replace = <span></span>
|value_replace = <nowiki>[[Химия#chem_\2|{{ucfirst:{{loc|режим=GetRawString|{{#invoke:GetField|get|\2|prototype/reagent.json|name}}}}}}]] \1</nowiki>
|value_replace = <nowiki></nowiki><span><nowiki>[[Химия#chem_\2|{{ucfirst:{{loc|режим=GetRawString|{{#invoke:GetField|get|\2|prototype/reagent.json|name}}}}}}]] \1</nowiki></span><nowiki></nowiki>
}}
}}</div>
}}
}}
</div>
</div>}}