Template:Recipe draw: Difference between revisions
From Captain of Industry Wiki
Tag: Undo |
No edit summary |
||
| (18 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
** Clear variables in case of multiple uses on one page ** | ** Clear variables in case of multiple uses on one page ** | ||
| Line 7: | Line 6: | ||
-->{{#vardefine: accepts | no}}<!-- | -->{{#vardefine: accepts | no}}<!-- | ||
-->{{#vardefine: provides | no}}<!-- | -->{{#vardefine: provides | no}}<!-- | ||
-->{{#vardefine: special_output | no}}<!-- | |||
** Set up variables to specify desired settings and reuse code ** | ** Set up variables to specify desired settings and reuse code ** | ||
| Line 16: | Line 16: | ||
-->{{#vardefine: imgsz_reg | 48x48px }}<!-- | -->{{#vardefine: imgsz_reg | 48x48px }}<!-- | ||
** List of pollution: must input in small latter ** | |||
-->{{#vardefine: pollution_1 | air pollution }}<!-- | |||
-->{{#vardefine: pollution_2 | water pollution }}<!-- | |||
-->{{#vardefine: pollution_3 | }}<!-- | |||
-->{{#vardefine: pollution_4 | }}<!-- | |||
** A short text to discriminate similar-looking buildings ** | |||
-->{{#vardefine: building_aux |<!-- | |||
-->{{#switch: {{lc:{{{Building|}}}}} | |||
| assembly (electric) = Electric I | |||
| assembly (electric) ii = Electric II | |||
| assembly (manual) = Manual | |||
| assembly (robotic) = Robotic I | |||
| assembly (robotic) ii = Robotic II | |||
| concrete mixer = Tier I | |||
| concrete mixer ii = Tier II | |||
| concrete mixer iii = Tier III | |||
| microchip machine = Tier I | |||
| microchip machine ii = Tier II | |||
| mixer = Tier I | |||
| mixer ii = Tier II | |||
| cooling tower = Small | |||
| cooling tower (large) = Large | |||
| electrolyzer = Tier I | |||
| electrolyzer ii = Tier II | |||
| evaporation pond = Standard | |||
| evaporation pond (heated) = Heated | |||
| greenhouse = Tier I | |||
| greenhouse ii = Tier II | |||
| arc furnace = Tier I | |||
| arc furnace ii = Tier II | |||
| blast furnace = Tier I | |||
| blast furnace ii = Tier II | |||
| cooled caster = Tier I | |||
| cooled caster ii = Tier II | |||
| glass maker = Tier I | |||
| glass maker ii = Tier II | |||
| metal caster = Tier I | |||
| metal caster ii = Tier II | |||
| oxygen furnace = Tier I | |||
| oxygen furnace ii = Tier II | |||
| rotary kiln = Coal | |||
| rotary kiln (gas) = Gas | |||
| diesel generator = Tier I | |||
| diesel generator ii = Tier II | |||
| high-pressure turbine = Tier I | |||
| high-pressure turbine ii = Tier II | |||
| low-pressure turbine = Tier I | |||
| low-pressure turbine ii = Tier II | |||
| nuclear reactor = Tier I | |||
| nuclear reactor ii = Tier II | |||
| fast breeder reactor = FBR | |||
| chemical plant = Tier I | |||
| chemical plant ii = Tier II | |||
| smoke stack = Small | |||
| smoke stack (large) = Large | |||
| maintenance depot = Tier I | |||
| maintenance ii depot = Tier II | |||
| maintenance iii depot = Tier III | |||
| research lab = Tier I | |||
| research lab ii = Tier II | |||
| research lab iii = Tier III | |||
| research lab iv = Tier IV | |||
| research lab v = Tier V | |||
| #default = | |||
}}<!-- | |||
-->}}<!-- | |||
** Apply style ** | |||
--><templatestyles src="Template:Recipe draw/styles.css" /><!-- | |||
--><div class="recipe-wrapper {{#if: {{{Unreleased|}}} | unreleased_border}}"><!-- | --><div class="recipe-wrapper {{#if: {{{Unreleased|}}} | unreleased_border}}"><!-- | ||
** Special output for when `Mining = yes` ** | ** Special output for when `Mining = yes` ** | ||
-->{{# | -->{{#ifeq: {{lc:{{{Input1Name|}}}}} | mining |<!-- | ||
--><div class="block">[[File:Mining.png{{!}}{{#var: imgsz_large}}{{!}}link=Mining]]</div><!-- | --><div class="block">[[File:Mining.png{{!}}{{#var: imgsz_large}}{{!}}link=Designations#Mining]]</div><!-- | ||
--><div class="block">{{#var: img_arrow}}</div><!-- | --><div class="block">{{#var: img_arrow}}</div><!-- | ||
--><div class="block">[[File:{{{ | --><div class="block">[[File:{{{Output1Icon}}}.png{{!}}{{#var: imgsz_large}}{{!}}link={{{Output1Name}}}]]</div><!-- | ||
-->{{#vardefine: special_output | yes}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
** Special output for when `Dumping = yes` ** | ** Special output for when `Dumping = yes` ** | ||
-->{{# | -->{{#ifeq: {{lc:{{{Output1Name|}}}}} | dumping |<!-- | ||
--><div class="block">[[File:{{{ | --><div class="block">[[File:{{{Input1Icon}}}.png{{!}}{{#var: imgsz_large}}{{!}}link={{{Input1Name}}}]]</div><!-- | ||
--><div class="block">{{#var: img_arrow}}</div><!-- | --><div class="block">{{#var: img_arrow}}</div><!-- | ||
--><div class="block">[[File:Dumping.png{{!}}{{#var: imgsz_large}}{{!}}link=Dumping]]</div><!-- | --><div class="block">[[File:Dumping.png{{!}}{{#var: imgsz_large}}{{!}}link=Designations#Dumping]]</div><!-- | ||
-->{{#vardefine: special_output | yes}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
** Stop output if | ** Stop output if we drew Mining or Dumping ** | ||
-->{{# | -->{{#ifeq: {{#var: special_output}} | no |<!-- | ||
** Check if Template:Infobox_machine already knows the building. If not, try the `Building` param. ** | ** Check if Template:Infobox_machine already knows the building. If not, try the `Building` param. ** | ||
| Line 48: | Line 123: | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
** Determine if we should display the "PROVIDES" or "ACCEPTS" text in the output ** | |||
-->{{#if: {{{Input1Name|}}}{{{Input2Name|}}}{{{Input3Name|}}}{{{Input4Name|}}}{{{Input5Name|}}}{{{Input6Name|}}} || {{#vardefine: provides | yes}} }} <!-- | |||
-->{{#vardefine: combined_output | {{lc:{{{Output1Name|}}}{{{Output2Name|}}}{{{Output3Name|}}}{{{Output4Name|}}}{{{Output5Name|}}}{{{Output6Name|}}} }} }}<!-- | |||
-->{{#ifeq: <!-- | |||
-->{{#expr: <!-- | |||
--> {{#ifeq: {{#var: combined_output}} | {{#var: pollution_1}} | 1 | 0 }} <!-- | |||
--> or {{#ifeq: {{#var: combined_output}} | {{#var: pollution_2}} | 1 | 0 }} <!-- | |||
--> or {{#ifeq: {{#var: combined_output}} | {{#var: pollution_3}} | 1 | 0 }} <!-- | |||
--> or {{#ifeq: {{#var: combined_output}} | {{#var: pollution_4}} | 1 | 0 }} <!-- | |||
--> or {{#ifeq: {{#var: combined_output}} | | 1 | 0 }} <!-- | |||
-->}} | 1 | <!-- | |||
-->{{#vardefine: accepts| yes}} | <!-- | |||
-->}} <!-- | |||
** Main sequence starts here ** | ** Main sequence starts here ** | ||
-->{{#ifeq: {{#var: bldg}} | none ||<!-- | -->{{#ifeq: {{#var: bldg}} | none ||<!-- | ||
** Draw the building (and colon) unless the user or Template:Infobox_machine set it to hidden. ** | ** Draw the building (and colon) unless the user or Template:Infobox_machine set it to hidden. ** | ||
-->{{#if: {{{HideBldg|}}}{{#varexists:hidebldg}} ||<!-- | -->{{#if: {{{HideBldg|}}}{{#varexists:hidebldg}} ||<!-- | ||
--><div class="block">[[File:{{{ | --><div class="block">[[File:{{{BuildingIcon}}}.png{{!}}{{#var: imgsz_bldg}}{{!}}link={{{Building}}}]]<small>{{#var: building_aux}}</small></div><!-- | ||
--><div class="block colon">:</div><!-- | --><div class="block colon">:</div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
| Line 81: | Line 156: | ||
-->{{#ifeq: {{#var: provides}} | yes | <div class="block accepts-provides">PROVIDES</div> }}<!-- | -->{{#ifeq: {{#var: provides}} | yes | <div class="block accepts-provides">PROVIDES</div> }}<!-- | ||
** Draw | ** Draw outputs except pollution if {{#var: provides}} is `yes`. ** | ||
** Draw input unless {{#var: provides}} is `yes`. ** | |||
** Draw | |||
-->{{#ifeq: {{#var: provides}} | yes |<!-- | -->{{#ifeq: {{#var: provides}} | yes |<!-- | ||
-->{{ | -->{{Recipe item | Name = {{{Output1Name|}}} | Quantity = {{{Output1Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output1Unit|}}} | Icon = {{{Output1Icon|}}} | Pollution = hide }}<!-- | ||
-->{{Recipe item | Name = {{{Output2Name|}}} | Quantity = {{{Output2Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output2Unit|}}} | Icon = {{{Output2Icon|}}} | Pollution = hide | Plus = yes }}<!-- | |||
-->{{Recipe item | Name = {{{Output3Name|}}} | Quantity = {{{Output3Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output3Unit|}}} | Icon = {{{Output3Icon|}}} | Pollution = hide | Plus = yes }}<!-- | |||
-->{{Recipe item | Name = {{{Output4Name|}}} | Quantity = {{{Output4Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output4Unit|}}} | Icon = {{{Output4Icon|}}} | Pollution = hide | Plus = yes }}<!-- | |||
-->{{Recipe item | Name = {{{Output5Name|}}} | Quantity = {{{Output5Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output5Unit|}}} | Icon = {{{Output5Icon|}}} | Pollution = hide | Plus = yes }}<!-- | |||
-->{{Recipe item | Name = {{{Output6Name|}}} | Quantity = {{{Output6Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output6Unit|}}} | Icon = {{{Output6Icon|}}} | Pollution = hide | Plus = yes }}<!-- | |||
-->|<!-- | |||
-->{{Recipe item | Name = {{{Input1Name|}}} | Quantity = {{{Input1Qty|}}} | Time = {{{Time|}}} | Unit = {{{Input1Unit|}}} | Icon = {{{Input1Icon|}}} |}} <!-- | |||
-->{{Recipe item | Name = {{{Input2Name|}}} | Quantity = {{{Input2Qty|}}} | Time = {{{Time|}}} | Unit = {{{Input2Unit|}}} | Icon = {{{Input2Icon|}}} | Plus = yes }}<!-- | |||
-->{{Recipe item | Name = {{{Input3Name|}}} | Quantity = {{{Input3Qty|}}} | Time = {{{Time|}}} | Unit = {{{Input3Unit|}}} | Icon = {{{Input3Icon|}}} | Plus = yes }}<!-- | |||
-->{{Recipe item | Name = {{{Input4Name|}}} | Quantity = {{{Input4Qty|}}} | Time = {{{Time|}}} | Unit = {{{Input4Unit|}}} | Icon = {{{Input4Icon|}}} | Plus = yes }}<!-- | |||
-->{{Recipe item | Name = {{{Input5Name|}}} | Quantity = {{{Input5Qty|}}} | Time = {{{Time|}}} | Unit = {{{Input5Unit|}}} | Icon = {{{Input5Icon|}}} | Plus = yes }}<!-- | |||
-->{{Recipe item | Name = {{{Input6Name|}}} | Quantity = {{{Input6Qty|}}} | Time = {{{Time|}}} | Unit = {{{Input6Unit|}}} | Icon = {{{Input6Icon|}}} | Plus = yes }}<!-- | |||
-->{{ | |||
-->{{ | |||
--> | |||
-->{{ | |||
-->{{ | |||
-->}}<!-- | -->}}<!-- | ||
** Draw the recipe times unless it has a unit defined (KW, MW, etc). ** | ** Draw the recipe times unless it has a unit defined (KW, MW, etc). ** | ||
** Use the "/ 60 🕓" format if: ** | ** Use the "/ 60 🕓" format if: ** | ||
** {{#var: provides}} is `yes` OR | ** {{#var: provides}} is `yes` OR {{#var: accepts}} is `yes` ** | ||
** Draw an arrow unless: ** | ** Draw an arrow unless: ** | ||
** {{#var: provides}} is `yes` OR | ** {{#var: provides}} is `yes` OR {{#var: accepts}} is `yes` ** | ||
** e.g., pumping groundwater, dumping brine | ** e.g., pumping groundwater, dumping brine ** | ||
-->{{#if: {{{Time|}}} |<!-- | -->{{#if: {{{Time|}}} |<!-- | ||
--><div class="block time"><!-- | --><div class="block time"><!-- | ||
-->{{#ifeq: {{lc:{{{Time}}}}} | instant | <div>{{#var: img_arrow}}</div> |<!-- | -->{{#ifeq: {{lc:{{{Time}}}}} | <!-- instant --> 0 | <div>{{#var: img_arrow}}</div> |<!-- | ||
--><div class="upper"><!-- | --><div class="upper"><!-- | ||
-->{{#ifeq: {{#var: provides}} | yes | | -->{{#ifeq: {{#var: provides}} | yes | / }}<!-- | ||
-->{{#ifeq: {{#var: accepts}} | yes | / }}<!-- | |||
-->{{{Time}}} [[File:Clock.png|link=Time|16x16px]]<!-- | -->{{{Time}}} [[File:Clock.png|link=Time|16x16px]]<!-- | ||
--></div><!-- | --></div><!-- | ||
--><div><!-- | --><div><!-- | ||
-->{{#ifeq: {{#var: provides}} | yes | | -->{{#ifeq: {{#var: provides}} | yes | <br/> |<!-- | ||
-->{{#ifeq: {{#var: accepts}} | yes | <br/> |<!-- | |||
-->{{#ifeq: {{#var: accepts}} | yes | | |||
-->{{#var: img_arrow}}<!-- | -->{{#var: img_arrow}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
| Line 216: | Line 199: | ||
--></div><!-- | --></div><!-- | ||
--><div class="lower blue"><!-- | --><div class="lower blue"><!-- | ||
-->{{#ifeq: {{#var: provides}} | yes | | -->{{#ifeq: {{#var: provides}} | yes | / }}<!-- | ||
-->{{#ifeq: {{#var: accepts}} | yes | / }}<!-- | |||
-->60 [[File:Clock 60s.png|link=Time|16x16px]]<!-- | -->60 [[File:Clock 60s.png|link=Time|16x16px]]<!-- | ||
--></div><!-- | --></div><!-- | ||
| Line 230: | Line 207: | ||
-->}}<!-- | -->}}<!-- | ||
** Draw | |||
** Draw outputs except pollution unless {{#var: provides}} is `yes` ** | |||
-->{{#ifeq: {{#var: provides}} | yes ||<!-- | -->{{#ifeq: {{#var: provides}} | yes ||<!-- | ||
-->{{ | -->{{Recipe item | Name = {{{Output1Name|}}} | Quantity = {{{Output1Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output1Unit|}}} | Icon = {{{Output1Icon|}}} | Pollution = hide }}<!-- | ||
-->{{Recipe item | Name = {{{Output2Name|}}} | Quantity = {{{Output2Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output2Unit|}}} | Icon = {{{Output2Icon|}}} | Pollution = hide | Plus = yes }}<!-- | |||
-->{{Recipe item | Name = {{{Output3Name|}}} | Quantity = {{{Output3Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output3Unit|}}} | Icon = {{{Output3Icon|}}} | Pollution = hide | Plus = yes }}<!-- | |||
-->{{Recipe item | Name = {{{Output4Name|}}} | Quantity = {{{Output4Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output4Unit|}}} | Icon = {{{Output4Icon|}}} | Pollution = hide | Plus = yes }}<!-- | |||
-->{{Recipe item | Name = {{{Output5Name|}}} | Quantity = {{{Output5Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output5Unit|}}} | Icon = {{{Output5Icon|}}} | Pollution = hide | Plus = yes }}<!-- | |||
-->{{Recipe item | Name = {{{Output6Name|}}} | Quantity = {{{Output6Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output6Unit|}}} | Icon = {{{Output6Icon|}}} | Pollution = hide | Plus = yes }}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
** Draw vertical line and pollution if pollution exists ** | |||
-->{{#vardefine: all_pollutions |<!-- | |||
-->{{Recipe item | Name = {{{Output1Name|}}} | Quantity = {{{Output1Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output1Unit|}}} | Icon = {{{Output1Icon|}}} | Pollution = only }}<!-- | |||
-->{{# | -->{{Recipe item | Name = {{{Output2Name|}}} | Quantity = {{{Output2Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output2Unit|}}} | Icon = {{{Output2Icon|}}} | Pollution = only }}<!-- | ||
--> | -->{{Recipe item | Name = {{{Output3Name|}}} | Quantity = {{{Output3Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output3Unit|}}} | Icon = {{{Output3Icon|}}} | Pollution = only }}<!-- | ||
--> | -->{{Recipe item | Name = {{{Output4Name|}}} | Quantity = {{{Output4Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output4Unit|}}} | Icon = {{{Output4Icon|}}} | Pollution = only }}<!-- | ||
-->{{Recipe item | Name = {{{Output5Name|}}} | Quantity = {{{Output5Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output5Unit|}}} | Icon = {{{Output5Icon|}}} | Pollution = only }}<!-- | |||
-->{{Recipe item | Name = {{{Output6Name|}}} | Quantity = {{{Output6Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output6Unit|}}} | Icon = {{{Output6Icon|}}} | Pollution = only }}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
-->{{#if: {{#var: all_pollutions}} |<!-- | |||
--> <!-- | |||
--><div style="display: inline-block; | |||
vertical-align: middle; | |||
-->{{#if: | min-height: 90px; | ||
border-left: 2px solid #6d6d6d; | |||
--> | margin-right: 11px" | ||
--><div | |||
--></div><!-- | --></div><!-- | ||
-->{{#var: all_pollutions}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
| Line 319: | Line 243: | ||
-->}}<!-- End of Mining/Dumping check | -->}}<!-- End of Mining/Dumping check | ||
-->{{#if: {{{Unreleased|}}} | <div class="unreleased_label">UNRELEASED</div> }}<!-- Big ol' label for unreleased content | -->{{#if: {{{Unreleased|}}} | <div class="unreleased_label">UNRELEASED</div> }}<!-- Big ol' label for unreleased content | ||
--></div></includeonly | --></div></includeonly><noinclude>{{documentation}}</noinclude> | ||
Latest revision as of 15:15, 20 May 2025
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
- Purpose
- This template provides a method to rapidly illustrate crafting recipes without in-depth knowledge of wiki syntax or manual repetition/copy-pasting.
- Basic usage
- The following 2 templates are provided for making a recipe.
- Template: Recipe define: Defines a recipe. The defined recipe can be called by Template: Recipe fetch from any page in this wiki. Usually, recipes are defined on the page of a building. This template only defines recipes but does not display anything.
- Template: Recipe draw: Only displays a written recipe. The recipe written with this template cannot be called by Template: Recipe fetch.
- Both templates can be used with the format written in #Examples in this document.
- Parameters
- The template accepts the following parameters:
Building: Name of buildings (example: Blast Furnace). No need to specify on pages using Template:Infobox machine because the building is automatically detected.Input1Name,Input2Name, ...,Input6Name: Name of materials (example: Iron Ore)Input1Name = Mining(optional): Applies special format for mining.
Output1Name,Output2Name, ...Output6Name: Name of products (example: Molten Iron)Output1Name = Dumping(optional): Applies special format for dumping.
Input1Qty, ...,Input6Qty,Output1Qty, ...,Output6Qty: Amount of materials or products per 1 cycle of recipe.Time: Cycle time of recipe.Input1Unit, ...,Input6Unit,Output1Unit, ...,Output6Unit(optional): Adds unit (for Electricity and Mechanical Power)HideBldg(optional, rare): Hides building in recipe. No need to specify on pages using Template:Infobox machine (the building is automatically hidden).Unreleased = yes(optional, rare): Applies special format for unreleased recipe
- Limitations
- This template can accept up to 6 inputs, 6 outputs, and 1 time value per recipe. The output can include only 1 pollution.
Examples
- Example usage for mining
| Markup | Renders as |
|---|---|
{{Recipe
| Input1Name = Mining
| Output1Name = Copper Ore
}}
|
|
- Example usage for dumping loose materials
| Markup | Renders as |
|---|---|
{{Recipe
| Output1Name = Dumping
| Input1Name = Rock
}}
|
|
- Example usage for a machine with both inputs and outputs without pollution (most recipes)
| Markup | Renders as |
|---|---|
{{Recipe
| Building = Rotary Kiln
| Input1Name = Limestone
| Input1Qty = 12
| Input2Name = Coal
| Input2Qty = 2
| Time = 10
| Output1Name = Cement
| Output1Qty = 4
| Output2Name = Exhaust
| Output2Qty = 8
}}
|
|
- Example for buildings that "provide" materials (Groundwater Pump, Air Separator, etc.)
| Markup | Renders as |
|---|---|
{{Recipe
| Building = Groundwater Pump
| Time = 10
| Output1Name = Water
| Output1Qty = 8
}}
|
|
- Example usage for dumping/flaring/venting non-polluting liquids/gasses
| Markup | Renders as |
|---|---|
{{Recipe
| Building = Smoke Stack
| Input1Name = Oxygen
| Input1Qty = 200
| Time = 20
}}
|
|
- Example usage for recipe with pollution
| Markup | Renders as |
|---|---|
{{Recipe
| Building = Liquid Dump
| Input1Name = Waste Water
| Input1Qty = 2
| Time = 2
| Output1Name = Water Pollution
| Output1Qty = 2
}}
|
|
{{Recipe
| Building = Exhaust Scrubber
| Input1Name = Exhaust
| Input1Qty = 30
| Input2Name = Water
| Input2Qty = 4
| Time = 10
| Output1Name = Sulfur
| Output1Qty = 1
| Output2Name = Carbon Dioxide
| Output2Qty = 12
| Output3Name = Steam Lo
| Output3Qty = 4
| Output4Name = Air Pollution
| Output4Qty = 4
}}
|
|
- Example usage for Mechanical Power and Electricity recipes with units
| Markup | Renders as |
|---|---|
{{Recipe
| Building = Low-pressure Turbine
| Input1Name = Steam Lo
| Input1Qty = 4
| Time = 5
| Output1Name = Mechanical Power
| Output1Qty = 1
| Output1Unit = MW
| Output2Name = Steam Depleted
| Output2Qty = 4
}}
|
|
- Example usage for instantaneous recipes
| Markup | Renders as |
|---|---|
{{Recipe
| Building = Power Generator
| Input1Name = Mechanical Power
| Input1Qty = 500
| Input1Unit = KW
| Time = 0
| Output1Name = Electricity
| Output1Qty = 250
| Output1Unit = KW
}}
|
|
- Example usage for recipes with variable quantity
| Markup | Renders as |
|---|---|
{{Recipe
| Building = Waste Collection
| Time = 60
| Output1Name = Waste
| Output1Unit = ?
}}
|
|
- Example usage for hiding the building (automatically happens on pages using Template:Infobox machine)
| Markup | Renders as |
|---|---|
{{Recipe
| Building = Mixer
| HideBldg = yes
| Input1Name = Sand
| Input1Qty = 18
| Input2Name = Limestone
| Input2Qty = 4
| Input3Name = Salt
| Input3Qty = 4
| Time = 20
| Output1Name = Glass Mix
| Output1Qty = 14
}}
|
|
- Example usage for unreleased recipe
| Markup | Renders as |
|---|---|
{{Recipe
| Building = Crusher
| Input1Name = Gravel
| Input1Qty = 18
| Time = 20
| Output1Name = Gold
| Output1Qty = 14
| Unreleased = yes
}}
|
|
The above text is transcluded from Template:Recipe draw/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Please add categories and interwikis to Template:Recipe draw/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Please add categories and interwikis to Template:Recipe draw/doc. (View all subpages of this page.)