Difference between revisions of "Template:Recipe draw/doc"
From Captain of Industry Wiki
m (Added example usage for recipes with variable quantity) |
(Changed way to declare dumping or mining. Now "Input1Name = Mining" and "Output1Name = Dumping" are the way.) |
||
Line 15: | Line 15: | ||
{{markup|<nowiki> | {{markup|<nowiki> | ||
{{Recipe | {{Recipe | ||
| Mining | | Input1Name = Mining | ||
| Output1Name = Copper Ore | | Output1Name = Copper Ore | ||
}}</nowiki>| | }}</nowiki>| | ||
{{Recipe | {{Recipe | ||
| Mining | | Input1Name = Mining | ||
| Output1Name = Copper Ore | | Output1Name = Copper Ore | ||
}} | }} | ||
Line 27: | Line 27: | ||
{{markup|<nowiki> | {{markup|<nowiki> | ||
{{Recipe | {{Recipe | ||
| Dumping | | Output1Name = Dumping | ||
| Input1Name = Rock | | Input1Name = Rock | ||
}}</nowiki>| | }}</nowiki>| | ||
{{Recipe | {{Recipe | ||
| Dumping | | Output1Name = Dumping | ||
| Input1Name = Rock | | Input1Name = Rock | ||
}} | }} | ||
}} | }} |
Revision as of 00:47, 3 October 2022
- Purpose
- This template provides a method to rapidly illustrate crafting recipes without in-depth knowledge of wiki syntax or manual repetition/copy-pasting.
- Automations
-
- On pages using Template:Infobox machine, the building is automatically detected. No need to specify.
| Building =
- On pages using Template:Infobox machine, the building is automatically hidden.
- If needed elsewhere, it can be manually called with
| HideBldg = yes
- If needed elsewhere, it can be manually called with
- On pages using Template:Infobox machine, the building is automatically detected. No need to specify.
- Limitations
- This template can accept up to 6 inputs, 6 outputs, and 1 time value per recipe.
- Usage
- 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 (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 dumping/flaring/venting polluting liquids/gasses:
Markup | Renders as |
---|---|
{{Recipe | Building = Liquid Dump | Input1Name = Waste Water | Input1Qty = 2 | Time = 2 | Output1Name = Air Pollution | Output1Qty = 2 }} |
|
- 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 }} |
|