Шаблон:Prototypes/Машина/Станок/base: различия между версиями

Нет описания правки
 
(не показано 17 промежуточных версий этого же участника)
Строка 1: Строка 1:
<div class="{{#if: {{{mode-emag|}}} | станок__mode-emag }}>
{{GradientBlock
{{GradientBlock
|class  = {{#if: {{{mode-emag|}}} | станок__mode-emag }}
|header =
|header =
<div class="станок__header">
<div class="станок__product-and-info-text">
<div class="станок__product-and-info-text">
<div class="станок__product">{{#if: {{{mode-chem|}}} | {{#invoke:Entity Lookup|createimagetooltip|File:LargeBeaker.png|LargeBeaker|Мета=32x32px,link=}} {{{amount|1}}} {{{product|Plant-B-gone}}} | {{#invoke:Entity Lookup|createimagetooltip|File:{{{product|PortableFlasher}}}.png|{{{product|PortableFlasher}}}|Мета=32x32px,link=}} {{{amount|1}}} {{#invoke:Entity Lookup|getname|{{{product|PortableFlasher}}}}} }}</div>
<div class="станок__product">{{#if: {{{mode-chem|}}} | {{#invoke:Entity Lookup|createimagetooltip|File:LargeBeaker.png|LargeBeaker|Мета=32x32px,link=}} {{{amount|1}}} {{{product|Plant-B-gone}}} | {{#invoke:Entity Lookup|createimagetooltip|File:{{{product|PortableFlasher}}}.png|{{{product|PortableFlasher}}}|Мета=32x32px,link=}} {{{amount|1}}} {{#invoke:Entity Lookup|getname|{{{product|PortableFlasher}}}}} }} </div>  
{{#if: {{{info|}}}|<div class="станок__info-text">{{{info}}}</div>}}
{{#if:{{{info|}}}|<div class="станок__info-text">{{{info}}}</div>}}</div>
</div>
<div class="станок__info-icons"><!--
<div class="станок__info-icons"><!--
-->{{#if: {{{mode-research|}}} | {{AltTooltip|[[File:JobIconResearchDirector.png|24px|link=]]|Рецепт становится доступным после исследования определённой технологии.|posX=left}} }}<!--
-->{{#if: {{{mode-research|}}} | {{AltTooltip|[[File:JobIconResearchDirector.png|24px|link=]]|Рецепт становится доступным после исследования определённой технологии.|posX=left}} }}<!--
-->{{#if: {{{mode-emag|}}}    | {{#if: {{{mode-research|}}} | <span class="станок__progression-symbol">↓</span> | }} | }}<!--
-->{{#if: {{{mode-emag|}}}    | {{#if: {{{mode-research|}}} | <span class="станок__progression-symbol">↓</span> | }} | }}<!--
-->{{#if: {{{mode-emag|}}}    | {{AltTooltip|[[File:Emag.png|32px|link=]]|Рецепт становится доступным после взлома с помощью криптографического секвенсора.|posX=left}} }}
-->{{#if: {{{mode-emag|}}}    | {{AltTooltip|[[File:Emag.png|32px|link=]]|Рецепт становится доступным после взлома с помощью криптографического секвенсора.|posX=left}} }}</div>
</div>
</div>
|body =
 
|body   =
<div class="станок__materials">{{{materials}}}</div>
<div class="станок__materials">{{{materials}}}</div>
<div class="станок__complete-time">[[Файл:Small_watch.png]] {{{complete-time|1 сек.}}}</div>
<div class="станок__complete-time">[[Файл:Small_watch.png]] {{{complete-time|1 сек.}}}</div>
}}
</div>
{{#css:
.станок__product-and-info-text {
    display: grid;
    gap: 4px;
}
.станок__product {
    font-weight: bold;
}
.станок__info-text {
    font-size: 14px;
}
.станок__info-icons {   
    display: flex;
    flex-direction: column;
    align-items: center;
}
.станок__info-icons > * {
    width: 32px;
    height: 32px;
    text-align: center;
}
.станок__progression-symbol {
    color: gray;
    font-size: small;
    height: 0rem;
    line-height: 0;
    margin: 2px 0px;
}
.станок__materials {
    display: grid;
    gap: 4px;
}


.станок__complete-time {
|sub-body  =
    position: absolute;
{{#if: {{{method-container|}}} | <div class="станок__method-container">{{#invoke:Entity Lookup|createimagetooltip|File:{{{method-container|PortableFlasher}}}.png|{{{method-container|PortableFlasher}}}|Мета=32x32px,link=}} '''[[{{#invoke:Entity Lookup|getname|{{{method-container|PortableFlasher}}}}}|{{#invoke:Entity Lookup|getname|{{{method-container|PortableFlasher}}}}}]]'''</div>}}
    bottom: 4px;
}}<!--
    right: 4px;
    font-size: small;
    font-size: 12px;
}


.станок__mode-emag > .gradient-block {
--><templatestyles src="Prototypes/Машина/Станок/styles.css" />
    border: 2px dashed hsla(0, 75%, 50%, 0.5);
}
}}