Difference between revisions of "Template:Recipe draw/doc"

From Captain of Industry Wiki
Jump to: navigation, search
(Re-order, fix some examples for new syntax)
(reformat for readability)
Line 1: Line 1:
;Purpose
;Purpose
:This template provides a method to rapidly illustrate crafting recipes without in-depth knowledge of wiki syntax or manual repetition/copy-pasting.
:This template provides a method to rapidly illustrate crafting recipes without in-depth knowledge of wiki syntax or manual repetition/copy-pasting.


;Limitations
;Limitations
:This template can accept up to 6 inputs, 6 outputs, and 1 time value per recipe.
:This template can accept up to 6 inputs, 6 outputs, and 1 time value per recipe.


Example usage for a machine with both inputs and outputs:
{{Recipe
  | Building    = Rotary Kiln
  | Input1Name  = Limestone
  | Input1Qty  = 12
  | Input2Name  = Coal
  | Input2Qty  = 2
  | Time        = 10
  | Output1Name = Cement
  | Output1Qty  = 4
  | Output2Name = Exhaust
  | Output2Qty  = 8
}}
<pre>
{{Recipe
  | Building    = Rotary Kiln
  | Input1Name  = Limestone
  | Input1Qty  = 12
  | Input2Name  = Coal
  | Input2Qty  = 2
  | Time        = 10
  | Output1Name = Cement
  | Output1Qty  = 4
  | Output2Name = Exhaust
  | Output2Qty  = 8
}}</pre>
----


Example usages for flaring liquids:
;Usage
:Example usage for a machine with both inputs and outputs:


{{Recipe
{{markup|<nowiki>
   | Building    = Flare
  {{Recipe
  | Input1Name  = Diesel
    | Building    = Rotary Kiln
  | Input1Qty  = 10
    | Input1Name  = Limestone
   | Time        = 20
    | Input1Qty  = 12
  | Output1Name = Air Pollution
    | Input2Name  = Coal
  | Output1Qty  = 20
    | Input2Qty   = 2
    | Time        = 10
    | Output1Name = Cement
    | Output1Qty  = 4
    | Output2Name = Exhaust
    | Output2Qty  = 8
  }}</nowiki>|
  {{Recipe
    | Building    = Rotary Kiln
    | Input1Name  = Limestone
    | Input1Qty  = 12
    | Input2Name  = Coal
    | Input2Qty   = 2
    | Time        = 10
    | Output1Name = Cement
    | Output1Qty  = 4
    | Output2Name = Exhaust
    | Output2Qty  = 8
  }}
}}
}}


<pre>
:Example usage for flaring liquids:
{{Recipe
{{markup|<nowiki>
   | Building    = Flare
  {{Recipe
  | Input1Name  = Diesel
    | Building    = Flare
  | Input1Qty  = 10
    | Input1Name  = Diesel
  | Time        = 20
    | Input1Qty   = 10
  | Output1Name = Air Pollution
    | Time        = 20
  | Output1Qty  = 20
    | Output1Name = Air Pollution
    | Output1Qty  = 20
  }}</nowiki>|
  {{Recipe
    | Building    = Flare
    | Input1Name  = Diesel
    | Input1Qty  = 10
    | Time        = 20
    | Output1Name = Air Pollution
    | Output1Qty  = 20
  }}
}}
}}
</pre>


----
----


Examples usages for venting gasses or dumping liquids:
:Examples usages for venting gasses or dumping liquids:
 
{{markup|<nowiki>
{{Recipe
  {{Recipe
   | Venting    = yes
    | Venting    = yes
  | Building    = Smoke Stack
    | Building    = Smoke Stack
  | Input1Name  = Oxygen
    | Input1Name  = Oxygen
  | Input1Qty  = 200
    | Input1Qty   = 200
  | Time        = 20
    | Time        = 20
  }}</nowiki>|
  {{Recipe
    | Venting    = yes
    | Building    = Smoke Stack
    | Input1Name  = Oxygen
    | Input1Qty  = 200
    | Time        = 20
  }}
}}
}}


<pre>
{{markup|<nowiki>
{{Recipe
  {{Recipe
   | Venting     = yes
    | DumpingLiq  = yes
  | Building    = Smoke Stack
    | Building    = Liquid Dump
  | Input1Name  = Oxygen
    | Input1Name  = Waste Water
  | Input1Qty  = 200
    | Input1Qty  = 2
  | Time        = 20
    | Time        = 2
   }}</nowiki>|
  {{Recipe
     | DumpingLiq  = yes
    | Building    = Liquid Dump
    | Input1Name  = Waste Water
    | Input1Qty  = 2
    | Time        = 2
  }}
}}
}}
</pre>


{{Recipe
:Example usage for mining:
  | DumpingLiq  = yes
{{markup|<nowiki>
  | Building    = Liquid Dump
  {{Recipe
   | Input1Name  = Waste Water
    | Mining      = yes
   | Input1Qty  = 2
    | Output1Name = Copper Ore
  | Time        = 2
   }}</nowiki>|
   {{Recipe
    | Mining      = yes
    | Output1Name = Copper Ore
  }}
}}
}}
<pre>
{{Recipe
  | DumpingLiq  = yes
  | Building    = Liquid Dump
  | Input1Name  = Waste Water
  | Input1Qty  = 2
  | Time        = 2
}}
</pre>


----
----


Example usage for mining:
:Example usage for dumping loose materials:
 
{{markup|<nowiki>
{{Recipe
   {{Recipe
  | Mining      = yes
    | Dumping    = yes
  | Output1Name = Copper Ore
    | Input1Name = Rock
}}
  }}</nowiki>|
 
  {{Recipe
<pre>
    | Dumping    = yes
{{Recipe
    | Input1Name = Rock
  | Mining      = yes
  }}
   | Output1Name = Copper Ore
}}
</pre>
 
----
 
Example usage for dumping loose materials:
 
{{Recipe
  | Dumping    = yes
  | Input1Name = Rock
}}
 
<pre>
{{Recipe
  | Dumping    = yes
  | Input1Name = Rock
}}
}}
</pre>


<includeonly>[[Category:Formatting templates]]</includeonly><!--
<includeonly>[[Category:Formatting templates]]</includeonly><!--
--><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
--><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 12:16, 13 January 2022

Purpose
This template provides a method to rapidly illustrate crafting recipes without in-depth knowledge of wiki syntax or manual repetition/copy-pasting.


Limitations
This template can accept up to 6 inputs, 6 outputs, and 1 time value per recipe.


Usage
Example usage for a machine with both inputs and outputs:
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
  }}
Rotary Kiln.pngCoal
:
12
Limestone.png
72
Plus.png
2
Coal.png
12
10 Clock.png
Transform.png
60 Clock 60s.png
4
Cement.png
24
Plus.png
8
Exhaust.png
48
Example usage for flaring liquids:
Markup Renders as
  {{Recipe
    | Building    = Flare
    | Input1Name  = Diesel
    | Input1Qty   = 10
    | Time        = 20
    | Output1Name = Air Pollution
    | Output1Qty  = 20
  }}
Flare.png
:
ACCEPTS
10
Diesel.png
30
/ 20 Clock.png

/ 60 Clock 60s.png
20
Air Pollution.png
60

Examples usages for venting gasses or dumping liquids:
Markup Renders as
  {{Recipe
    | Venting     = yes
    | Building    = Smoke Stack
    | Input1Name  = Oxygen
    | Input1Qty   = 200
    | Time        = 20
  }}
Smoke Stack.pngSmall
:
ACCEPTS
200
Oxygen.png
600
/ 20 Clock.png

/ 60 Clock 60s.png
Markup Renders as
  {{Recipe
    | DumpingLiq  = yes
    | Building    = Liquid Dump
    | Input1Name  = Waste Water
    | Input1Qty   = 2
    | Time        = 2
  }}
Liquid Dump.png
:
ACCEPTS
2
Waste Water.png
60
/ 2 Clock.png

/ 60 Clock 60s.png
Example usage for mining:
Markup Renders as
  {{Recipe
    | Mining      = yes
    | Output1Name = Copper Ore
  }}
Building not defined

Example usage for dumping loose materials:
Markup Renders as
  {{Recipe
    | Dumping    = yes
    | Input1Name = Rock
  }}
Building not defined