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

Нет описания правки
Нет описания правки
Строка 5: Строка 5:
<div class="ts-Component-lathe__product-and-info-text">
<div class="ts-Component-lathe__product-and-info-text">
<div class="ts-Component-lathe__product">{{#if: {{{resultReagents|}}} | {{serialization/reagent|{{{resultReagents}}}|sep=<nowiki> </nowiki>|prefix=}} | {{предмет|link=|{{{result}}}}} }} </div>  
<div class="ts-Component-lathe__product">{{#if: {{{resultReagents|}}} | {{serialization/reagent|{{{resultReagents}}}|sep=<nowiki> </nowiki>|prefix=}} | {{предмет|link=|{{{result}}}}} }} </div>  
{{#if:{{{info|}}}|<div class="ts-Component-lathe__info-text">{{{info}}}</div>}}</div>
{{#vardefine:technology|{{#invoke:GetField|searchId|{{{id}}}|prototype/technology.json|recipeUnlocks}}}}
<div class="ts-Component-lathe__info-text">{{#if: {{#var:technology}} | {{#invoke:GetField|jsonList|type=enum|{{#var:technology}}|value_replace=<nowiki>[[Файл:{{#invoke:GetField|get|\1|prototype/technology.json|discipline}}.png|16x16px|link=]] [[Исследования|{{loc|режим=GetRawString|{{#invoke:GetField|get|\1|prototype/technology.json|name}}}}]] уровень: {{#invoke:GetField|get|\1|prototype/technology.json|tier}}</nowiki>}} }}</div>
<div class="ts-Component-lathe__info-icons"><!--
<div class="ts-Component-lathe__info-icons"><!--
-->{{#if: {{#var:lathe_mode_research}} | {{AltTooltip|[[File:JobIconResearchDirector.png|24px|link=]]|Рецепт становится доступным после исследования определённой технологии.|posX=left}} }}<!--
-->{{#if: {{#var:technology}} | {{AltTooltip|[[File:JobIconResearchDirector.png|24px|link=]]|Рецепт становится доступным после исследования определённой технологии.|posX=left}} }}<!--
-->{{#if: {{#var:lathe_mode_emag}} | {{#if: {{#var:lathe_mode_research}} | <span class="ts-Component-lathe__progression-symbol">↓</span> | }} | }}<!--
-->{{#if: {{#var:lathe_mode_emag}} | {{#if: {{#var:lathe_mode_research}} | <span class="ts-Component-lathe__progression-symbol">↓</span> | }} | }}<!--
-->{{#if: {{#var:lathe_mode_emag}} | {{AltTooltip|[[File:Emag.png|32px|link=]]|Рецепт становится доступным после взлома с помощью криптографического секвенсора.|posX=left}} }}</div>
-->{{#if: {{#var:lathe_mode_emag}} | {{AltTooltip|[[File:Emag.png|32px|link=]]|Рецепт становится доступным после взлома с помощью криптографического секвенсора.|posX=left}} }}</div>
Строка 20: Строка 21:
}}<!--
}}<!--


--><templatestyles src=" Component/lathe/styles.css" />
--><templatestyles src="Component/lathe/styles.css" />