Difference between revisions of "Template:Ingredient List/doc"
Jump to navigation
Jump to search
(Created page with "== Description == This template automatically creates a table of all items that use given material in their creation recipes, as well as how much of the material is required....") |
(changed example in order to reduce Post-expand include size) |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
This template automatically creates a table of all items that use given material in their creation recipes, as well as how much of the material is required. | This template automatically creates a table of all items that use given material in their creation recipes, as well as how much of the material is required. | ||
+ | |||
+ | This template is dependent on [[Template: Ingredient List Row]]. | ||
== Parameters == | == Parameters == | ||
The first parameter (if present) will specify which material to generate the template for. | The first parameter (if present) will specify which material to generate the template for. | ||
If absent, <code><nowiki>{{PAGENAME}}</nowiki></code> will be used. | If absent, <code><nowiki>{{PAGENAME}}</nowiki></code> will be used. | ||
+ | |||
+ | <code>noCollapse=1</code> will suppress the collapsible nature of table. | ||
== Example usage == | == Example usage == | ||
− | <nowiki>{Ingredient List}}</nowiki> | + | <nowiki>{{Ingredient List}}</nowiki> |
on the [[Steel]] page would produce: | on the [[Steel]] page would produce: | ||
{{Ingredient List | Steel}} | {{Ingredient List | Steel}} | ||
− | <nowiki>{{Ingredient List| | + | <nowiki>{{Ingredient List| Neutroamine}}</nowiki> |
on any page would produce: | on any page would produce: | ||
− | {{Ingredient List | | + | {{Ingredient List | Neutroamine}} |
+ | |||
+ | <nowiki>{{Ingredient List| Chemfuel|noCollapse=1}}</nowiki> | ||
+ | on any page would produce: | ||
+ | {{Ingredient List | Chemfuel|noCollapse=1}} | ||
+ | |||
+ | <includeonly>[[Category:Customized table templates]]</includeonly> | ||
+ | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 17:08, 12 December 2023
Description[edit]
This template automatically creates a table of all items that use given material in their creation recipes, as well as how much of the material is required.
This template is dependent on Template: Ingredient List Row.
Parameters[edit]
The first parameter (if present) will specify which material to generate the template for.
If absent, {{PAGENAME}}
will be used.
noCollapse=1
will suppress the collapsible nature of table.
Example usage[edit]
{{Ingredient List}}
on the Steel page would produce:
{{Ingredient List| Neutroamine}}
on any page would produce:
Product | Ingredients | Type [ExpandCollapse] |
---|---|---|
Go-juice | 2 + 1 | Drug - Hard Drug |
Wake-up | 2 | Drug - Hard Drug |
Penoxycyline | 2 | Drug - Medical Drug |
Medicine | 3 + 1 + 1 | Medical Items - Medicine |
Mind-numb serum | 2 + 30 | Drug - Serum |
Voidsight serum | 2 + 10 | Drug - Serum |
{{Ingredient List| Chemfuel|noCollapse=1}}
on any page would produce:
Product | Ingredients | Type [ExpandCollapse] |
---|---|---|
Foam turret | 30 (Metallic) + 70 + 3 + 140 | Building - Security |
Rocketswarm launcher | 20 + 200 + 2 + 180 | Building - Security |
High-explosive shell | 15 + 15 | Crafted resources - Mortar shell |
Incendiary shell | 10 + 20 | Crafted resources - Mortar shell |
Tox shell | 10 + 10 | Crafted resources - Mortar shell |
Frag grenades | 20 + 80 | Equipment - Weapons |
Molotov cocktails | 25 + 80 | Equipment - Weapons |
Firefoam pop pack | 20 + 1 + 30 | Gear - Utility |
Smokepop pack | 20 + 1 + 40 | Gear - Utility |
Gas mask | 20 + 20 | Gear - Clothing |
Tox pack | 10 + 1 + 35 | Gear - Utility |
Locust armor | 120 + 10 + 3 + 3 + 100 | Gear - Armor |
Phoenix armor | 150 + 50 + 6 + 75 + 4 + 40 | Gear - Armor |
Jump pack | 30 + 3 + 100 | Gear - Utility |