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

Нет описания правки
Нет описания правки
 
(не показаны 4 промежуточные версии этого же участника)
Строка 1: Строка 1:
{{GradientBlock
{{GradientBlock
|class  = {{#if: {{#var:lathe_mode_emag}} | станок__mode-emag }}
|class  = {{#if: {{#var:lathe_mode_emag}} | ts-Component-lathe__mode-emag }}
|header =
|header =
<div class="ts-Component-lathe__header">
<div class="ts-Component-lathe__header">
<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}}}}
{{#if: {{#var:technology}} | <div class="ts-Component-lathe__info-text">{{#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>
<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:technology}} | <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>
</div>
</div>
Строка 20: Строка 21:
}}<!--
}}<!--


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