Difference between revisions of "Template:Ingredient List"

From RimWorld Wiki
Jump to navigation Jump to search
Line 4: Line 4:
 
<div class="mw-collapsible-content" style="width:7000%">
 
<div class="mw-collapsible-content" style="width:7000%">
 
{{#vardefine:name | {{{ 1 | {{PAGENAME}}}}} }}{| {{STDT|sortable c_03 text-center}}
 
{{#vardefine:name | {{{ 1 | {{PAGENAME}}}}} }}{| {{STDT|sortable c_03 text-center}}
! Name !! Amount
+
! Name !! Amount !! Type
 
|-
 
|-
 
{{#ask:[[Resource 1::{{lc:{{#var:name}}}}]]
 
{{#ask:[[Resource 1::{{lc:{{#var:name}}}}]]

Revision as of 14:59, 2 February 2021

Documentation icon Template documentation[view] [edit] [history] [purge]

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 is dependent on Template: Ingredient List Row.

Parameters

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

{{Ingredient List}}

on the Steel page would produce:

  • {{Ingredient List| Neutroamine}}
    

    on any page would produce:

  • {{Ingredient List| Chemfuel|noCollapse=1}}
    

    on any page would produce: