Шаблон:Производство(кол-во): различия между версиями

Материал из Star Conflict Wiki
Перейти к навигации Перейти к поиску
мНет описания правки
мНет описания правки
 
(не показано 12 промежуточных версий этого же участника)
Строка 1: Строка 1:
{{#switch: {{{item}}}
<!--Тип ресурса
|metal_plate = quantity_r1=2 resource1=vanadium
{{#if:{{{resource_type|}}}|
|pure_silicon = quantity_r1=1 resource1=raw_silicon
{{#switch: {{{resource_type}}}
|osmium_crystal = quantity_r1=2 resource1=raw_osmium
|vanadium = 1
|graphite_plate = quantity_r1=2 resource1=raw_graphite
|raw_silicon = 2
|enriched_berillium = quantity_r1=10 resource1=berillium
|crystal_shard = 3
|neodium_plate = quantity_r1=10 resource1=neodium
|raw_graphite = 4
|cpu_chip = quantity_r1=1 resource1=crystal_shard
|raw_osmium = 5
|cpu_block = product=cpu_block {{!}}quantity_i1=4 {{!}}item1=pure_silicon {{!}}quantity_i2=2 {{!}}item2=cpu_chip
|raw_neodium = 6
|shielded_battery = quantity_i1=1 item1=graphite_plate quantity_i2=1 item2=cpu_chip quantity_i3=3 item3=osmium_crystal
|berillium = 7
|monocrystal = 8
|live_crystal_container = 9
|
|
}}
}} }}-->
<!--Компоненты предмета-->
{{#ifeq:{{{product|}}}|metal_plate | {{#if:{{{quantity|}}}|quantity_r1={{#expr: 2 * {{{quantity|1}}} }} | resource1=vanadium }} |}}
{{#ifeq:{{{product|}}}|pure_silicon | {{#if:{{{quantity|}}}|quantity_r1={{{quantity|1}}} | resource1=raw_silicon }} |}}
 
<!--
{{#ifeq:{{{item|}}}|osmium_crystal | resource1=raw_osmium {{#ifeq:{{{item|}}}|osmium_crystal | quantity_r1={{{quantity|1}}} }} }}<!--
->{{#ifeq:{{{item|}}}|graphite_plate | resource1=raw_graphite {{#ifeq:{{{item|}}}|graphite_plate | quantity_r1={{#expr: 2 * {{{quantity|1}}} }} }} }}<!--
->{{#ifeq:{{{item|}}}|enriched_berillium | resource1=berillium {{#ifeq:{{{item|}}}|enriched_berillium | quantity_r1={{#expr: 10 * {{{quantity|1}}} }} }} }}<!--
->{{#ifeq:{{{item|}}}|neodium_plate | resource1=neodium {{#ifeq:{{{item|}}}|neodium_plate | quantity_r1={{#expr: 10 * {{{quantity|1}}} }} }} }}<!--
->{{#ifeq:{{{item|}}}|cpu_chip | resource1=crystal_shard {{#ifeq:{{{item|}}}|cpu_chip | quantity_r1={{{quantity|1}}} }} }}<!--
->{{#ifeq:{{{item|}}}|cpu_block | item1=pure_silicon {{#ifeq:{{{item|}}}|cpu_block | quantity_i1={{#expr: 4 * {{{quantity|1}}} }}<!--
->{{#ifeq:{{{item|}}}|cpu_block | item2=cpu_chip {{#ifeq:{{{item|}}}|cpu_block | quantity_i2={{#expr: 2 * {{{quantity|1}}} }} }} }} }} }}<!--
->{{#ifeq:{{{item|}}}|shielded_battery | item1=graphite_plate {{#ifeq:{{{item|}}}|shielded_battery | quantity_i1={{{quantity|1}}}<!--
->{{#ifeq:{{{item|}}}|shielded_battery | item2=cpu_chip {{#ifeq:{{{item|}}}|shielded_battery | quantity_i2={{{quantity|1}}}<!--
->{{#ifeq:{{{item|}}}|shielded_battery | item3=osmium_crystal {{#ifeq:{{{item|}}}|shielded_battery | quantity_i3={{#expr: 3 * {{{quantity|1}}} }} }} }} }} }} }} }}
<!--Компоненты части корабля-->

Текущая версия от 16:13, 6 сентября 2016