Шаблон:Prototype/reaction/wrapper: различия между версиями
Материал из Space Station 14 Вики
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) Нет описания правки Метка: ручная отмена |
||
| (не показаны 24 промежуточные версии этого же участника) | |||
| Строка 1: | Строка 1: | ||
{{GradientBlock | |||
{{#invoke: | |margin = 0 | ||
|{{{requiredMixerCategories}}} | |header = {{#invoke:GetField|jsonList | ||
|type = none | |{{{requiredMixerCategories|["DummyMix"]}}} | ||
|value_replace = <nowiki>{{ | |type = none | ||
|value_replace = <nowiki>{{serialization/mixingCategory|\1}}</nowiki> | |||
}} | }} | ||
|body = | |||
< | <div style=" | ||
{{#invoke: | display: grid; | ||
< | gap: 12px; | ||
{{#invoke: | grid-template-rows: auto auto auto; | ||
align-items: start; | |||
"> | |||
<div style=" | |||
display: flex; | |||
gap: 0 4px; | |||
flex-wrap: wrap; | |||
justify-content: space-evenly; | |||
">{{#invoke:GetField|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:GetField|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:GetField|json|{{{effects}}}|{{#tag:nowiki|serialization/EntityEffect{{!}}prefix=}}}} }}</div> | |||
</div> | </div> | ||
}} | |||