Module:TechRecipe/doc: Difference between revisions

From Desynced Wiki
No edit summary
No edit summary
 
Line 11: Line 11:
=== Example ===
=== Example ===


==== Building ====
The following call: <br>
The following call: <br>
<code><nowiki>{{#invoke:TechRecipe|render|name=Ultra-tech Framework}}</nowiki></code>
<code><nowiki>{{#invoke:TechRecipe|render|name=Ultra-tech Framework}}</nowiki></code>

Latest revision as of 07:25, 12 August 2025

Description[edit source]

The recipe part of the tech pages.

If new research components are added to the game, UPLINK_REPLACEMENTS needs be extended to enable replacing the component with the related building. Otherwise it will just show the new component instead.

Usage[edit source]

Example {{#invoke:TechRecipe|render|name=<techName>}}

Example[edit source]

The following call:
{{#invoke:TechRecipe|render|name=Ultra-tech Framework}}

Results in:

Recipe
Fused ElectrodesIC ChipRobotics ResearchUltra-tech Framework
Fused Electrodes 1IC Chip 1Robotics Research 3Arrow RightUltra-tech Framework 1
Researched with
Building/ComponentResearch time
UplinkUplink500 seconds
NexaspireNexaspire100 seconds
Human Science LabHuman Science Lab100 seconds
Total Requirements
Fused ElectrodesIC ChipRobotics ResearchUltra-tech Framework
Fused Electrodes 20IC Chip 20Robotics Research 60Arrow RightUltra-tech Framework 20