Шаблон:Prototype/reaction/wrapper: различия между версиями
Материал из Space Station 14 Вики
Pok (обсуждение | вклад) Новая страница: «{{#invoke:Сущность|json|{{{reactants}}}|serialization/reactant}}» |
Pok (обсуждение | вклад) м Pok переименовал страницу Шаблон:Prototype/reaction в Шаблон:Prototype/reaction/wrapper |
||
| (не показаны 22 промежуточные версии этого же участника) | |||
| Строка 1: | Строка 1: | ||
{{#invoke:Сущность|json|{{{reactants}}}|serialization/reactant}} | {{GradientBlock | ||
|margin = 0 | |||
|header = {{#invoke:Сущность|jsonList | |||
|{{{requiredMixerCategories|["DummyMix"]}}} | |||
|type = none | |||
|value_replace = <nowiki>{{serialization/mixingCategory|\1}}</nowiki> | |||
}} | |||
|body = | |||
<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 | |||
|{{{products}}} | |||
|type = none | |||
|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> | |||
}} | |||