(research recipe starting point) |
(support weapon icons) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="position: relative; width: 354px; height: | <onlyinclude><div style="position: relative; width: 354px; height: fit-content; background: #141414; border: solid 1px #6A6A6A; padding: 2px"><!-- | ||
=== Background Image | |||
--><span style="position: absolute; top: 2px; left: 2px; pointer-events: none;">[[File:UI Detailed Research Item Background.png|275px]]</span><!-- | |||
=== Item Icon | |||
--><span style="position: absolute; | |||
{{#ifeq: {{{special|}}}|weapon | |||
|top: 41px; left: 2px; | |||
|top: 7px; left: 2px; | |||
}}">[[File:{{#if: {{{icon|}}}|{{{icon}}}|Icon {{{name|Dummy}}}.png}}|96px|{{{name}}}]]</span><!-- | |||
=== Item Details | |||
--><div style="height: 105px; display: grid; grid-template-rows: min-content 1fr; margin: 5px 7px 0px 120px"><span style="display: block;">'''[[{{{name|Item Name}}}]]'''</span><div style="display: flex; flex-direction: column; flex-wrap: wrap; height: 60px;"><span title="Research Time">[[File:Icon Timer.png|25px|link=]] {{{time|Time}}}</span><span title="Research Cost">[[File:Icon Currency {{{currency|Gold}}}.png|25px|link=]] {{{cost|Cost}}}</span><span title="Required Mastery Rank">[[File:Icon Mastery Rank.png|25px|link=]] Rank {{{rank|#}}}</span></div> | |||
</div><!-- | |||
=== Materials | |||
--><div style="display: flex; flex-direction: column; gap: 4px; margin-left: 5px;"><!-- | |||
== Material #1 | |||
-->{{#if: {{{m1_name|}}}|{{ResearchRecipe/Material|name={{{m1_name}}}|amt={{{m1_amt}}}}}}}<!-- | |||
== Material #2 | |||
-->{{#if: {{{m2_name|}}}|{{ResearchRecipe/Material|name={{{m2_name}}}|amt={{{m2_amt}}}}}}}<!-- | |||
== Material #3 | |||
-->{{#if: {{{m3_name|}}}|{{ResearchRecipe/Material|name={{{m3_name}}}|amt={{{m3_amt}}}}}}}<!-- | |||
== Material #4 | |||
-->{{#if: {{{m4_name|}}}|{{ResearchRecipe/Material|name={{{m4_name}}}|amt={{{m4_amt}}}}}}}<!-- | |||
== Material #5 | |||
-->{{#if: {{{m5_name|}}}|{{ResearchRecipe/Material|name={{{m5_name}}}|amt={{{m5_amt}}}}}}}</div></div></onlyinclude> | |||
---- | |||
== Example == | |||
{{ResearchRecipe|name=Energy Activators|time=1d 6h|cost=750,000|rank=1 | |||
|m1_name=Low-Carbon Activator|m1_amt=55 | |||
|m2_name=Conductive Metallic Foil|m2_amt=25 | |||
|m3_name=Heat Plasma Battery|m3_amt=55 | |||
|m4_name=Polyatomic Ion Particle|m4_amt=72 | |||
|m5_name=Energy Activator Blueprint|m5_amt=1}} | |||
== Documentation == | |||
==== Research Details (Required) ==== | |||
<pre> | |||
name = Item name | |||
time = Research time | |||
cost = Research cost | |||
rank = Required Mastery Rank | |||
</pre> | |||
==== Research Materials (Suggested) ==== | |||
Follows a pattern of <code>m#_name</code> and <code>m#_amt</code>. # ranges from 1 to 5 | |||
<pre> | |||
m1_name = Name of 1st material | |||
m1_amt = Amount of 1st material | |||
... | |||
m5_name = Name of 5th material | |||
m5_amt = Amount of 5th material | |||
</pre> | |||
==== Other (Optional) ==== | |||
<pre> | |||
icon = image file path (defaults to "Icon {name}.png") | |||
currency = Name of currency (defaults to "Gold") | |||
special = Type of item (only "weapon" is supported, used to display icon properly) | |||
</pre> |
Latest revision as of 14:11, 6 August 2024
Example
Documentation
Research Details (Required)
name = Item name time = Research time cost = Research cost rank = Required Mastery Rank
Research Materials (Suggested)
Follows a pattern of m#_name
and m#_amt
. # ranges from 1 to 5
m1_name = Name of 1st material m1_amt = Amount of 1st material ... m5_name = Name of 5th material m5_amt = Amount of 5th material
Other (Optional)
icon = image file path (defaults to "Icon {name}.png") currency = Name of currency (defaults to "Gold") special = Type of item (only "weapon" is supported, used to display icon properly)