Шаблон:Prototype/reaction/wrapper: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) м Pok переименовал страницу Шаблон:Prototype/reaction в Шаблон:Prototype/reaction/wrapper |
||
| (не показано 20 промежуточных версий этого же участника) | |||
| Строка 1: | Строка 1: | ||
{{GradientBlock | |||
{{#invoke:Сущность|jsonList | |margin = 0 | ||
|{{{requiredMixerCategories|["DummyMix"]}}} | |header = {{#invoke:Сущность|jsonList | ||
|type = none | |{{{requiredMixerCategories|["DummyMix"]}}} | ||
|value_replace = <nowiki>{{ | |type = none | ||
|value_replace = <nowiki>{{serialization/mixingCategory|\1}}</nowiki> | |||
}} | }} | ||
< | |body = | ||
{{#invoke:Сущность|json|{{{reactants}}}|serialization/reactant}} | <div style=" | ||
< | display: grid; | ||
gap: 12px; | |||
grid-template-rows: auto auto auto; | |||
align-items: start; | |||
"> | |||
<div style=" | |||
display: flex; | |||
gap: 0 4px; | |||
flex-wrap: wrap; | |||
justify-content: space-evenly; | |||
">{{#invoke:Сущность|json|{{{reactants}}}|serialization/reactant}}</div> | |||
<div style="font-size:20px; line-height:0; text-align:center;">↓</div> | |||
<div style=" | |||
display: flex; | |||
gap: 0 4px; | |||
flex-wrap: wrap; | |||
justify-content: space-evenly; | |||
">{{#if: {{{products|}}} | | |||
{{#invoke:Сущность|jsonList | {{#invoke:Сущность|jsonList | ||
|{{{products}}} | |{{{products}}} | ||
|type = none | |type = none | ||
|value_replace = <nowiki>[[Химия#chem_\ | |key_replace = <span style="display:none"></span> | ||
|value_replace = <nowiki></nowiki><div><nowiki>'''[[Химия#chem_\2|{{ucfirst:{{loc|режим=GetRawString|{{#invoke:GetField|get|\2|prototype/reagent.json|name}}}}}}]] [\1]'''</nowiki></div><nowiki></nowiki> | |||
}} | }} | ||
}}<!-- | |||
-->{{#if: {{{effects|}}} | {{#invoke:Сущность|json|{{{effects}}}|{{#tag:nowiki|serialization/EntityEffect{{!}}prefix=}}}} }}</div> | |||
</div> | </div> | ||
}} | |||