Difference between revisions of "Template:Ingredient List/doc"
Jump to navigation
Jump to search
m (typo) |
(changed example in order to reduce Post-expand include size) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
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 == | ||
Line 13: | Line 15: | ||
{{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| | + | <nowiki>{{Ingredient List| Chemfuel|noCollapse=1}}</nowiki> |
on any page would produce: | on any page would produce: | ||
− | {{Ingredient List | | + | {{Ingredient List | Chemfuel|noCollapse=1}} |
− | |||
<includeonly>[[Category:Customized table templates]]</includeonly> | <includeonly>[[Category:Customized table templates]]</includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <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] |
---|---|---|
![]() |
![]() ![]() |
Drug - Hard Drug |
![]() |
![]() |
Drug - Hard Drug |
![]() |
![]() |
Drug - Medical Drug |
![]() |
![]() ![]() ![]() |
Medical Items - Medicine |
![]() ![]() |
![]() ![]() |
Drug - Serum |
![]() ![]() |
![]() ![]() |
Drug - Serum |
{{Ingredient List| Chemfuel|noCollapse=1}}
on any page would produce:
Product | Ingredients | Type [ExpandCollapse] |
---|---|---|
![]() |
![]() ![]() ![]() ![]() |
Building - Security |
![]() |
![]() ![]() ![]() ![]() |
Building - Security |
![]() |
![]() ![]() |
Crafted resources - Mortar shell |
![]() |
![]() ![]() |
Crafted resources - Mortar shell |
![]() |
![]() ![]() |
Crafted resources - Mortar shell |
![]() |
![]() ![]() |
Equipment - Weapons |
![]() |
![]() ![]() |
Equipment - Weapons |
![]() |
![]() ![]() ![]() |
Gear - Utility |
![]() |
![]() ![]() ![]() |
Gear - Utility |
![]() ![]() |
![]() ![]() |
Gear - Clothing |
![]() ![]() |
![]() ![]() ![]() |
Gear - Utility |
![]() ![]() |
![]() ![]() ![]() ![]() ![]() |
Gear - Armor |
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() |
Gear - Armor |
![]() ![]() |
![]() ![]() ![]() |
Gear - Utility |