Difference between revisions of "Template:Ingredient List"
Jump to navigation
Jump to search
(recoding was done) |
|||
(9 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
VARIABLES | VARIABLES | ||
− | -->{{#vardefine: | + | -->{{#vardefine:ingredient | {{{ 1 | {{PAGENAME}} }}} }}<!-- |
-->{{#vardefine:noCollapse | {{{noCollapse|}}} }}<!-- | -->{{#vardefine:noCollapse | {{{noCollapse|}}} }}<!-- | ||
TABLE | TABLE | ||
--><div><li style="display: inline-table;"> | --><div><li style="display: inline-table;"> | ||
− | {| {{STDT|sortable c_03 text- | + | {| {{STDT|sortable c_03 text-left}} |
− | ! | + | ! Product !! Ingredients !! Type [<span style="color:#0645ad;" class="mw-collapsible {{#if: {{#var:noCollapse}}|mw-collapsed}} mw-customtoggle-ingredient-list-{{#replace:{{#var:ingredient}}|<nowiki> </nowiki>}}" id="mw-customcollapsible-ingredient-list-{{#replace:{{#var:ingredient}}|<nowiki> </nowiki>}}">Expand</span><span style="color:#0645ad;" class="mw-collapsible {{#if: {{#var:noCollapse}}||mw-collapsed}} mw-customtoggle-ingredient-list-{{#replace:{{#var:ingredient}}|<nowiki> </nowiki>}}" id="mw-customcollapsible-ingredient-list-{{#replace:{{#var:ingredient}}|<nowiki> </nowiki>}}">Collapse</span>] |
− | {{#ask: [[Resource 1::Stuff]] [[Stuff Tags::~*{{Q|{{#var: | + | {{#ask: [[Resource 1::Stuff]]<!-- Filters out buildings that have Stufftags but can't be created by the player --> [[Stuff Tags::~*{{Q|{{#var:ingredient}}|Stuff Category|noStuff}}*]] OR [[Resource 1::{{#var:ingredient}}]] OR [[Resource 2::{{#var:ingredient}}]] OR [[Resource 3::{{#var:ingredient}}]] OR [[Resource 4::{{#var:ingredient}}]] OR [[Resource 5::{{#var:ingredient}}]] OR [[Resource 6::{{#var:ingredient}}]] |
| named args = yes | | named args = yes | ||
− | | ?Name = ? | + | | ?Name = ?Product |
| ?Type = ?Type | | ?Type = ?Type | ||
| ?Type2 = ?Type2 | | ?Type2 = ?Type2 | ||
Line 33: | Line 33: | ||
}} | }} | ||
|} | |} | ||
− | </li></div></includeonly><noinclude> | + | </li></div></includeonly><noinclude>{{Recode|reason= Given we now have a control panel standard, it might be best to add a toggle for the stuffable options to limit table bloat - ideally needs to be autodisabled if the material ONLY has stuffables, and otherwise should be toggled off by default to increase initialusability }} |
{{Documentation}}</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! --> | {{Documentation}}</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! --> |
Latest revision as of 22:17, 27 July 2024
This page has been suggested for recoding. Reason: Given we now have a control panel standard, it might be best to add a toggle for the stuffable options to limit table bloat - ideally needs to be autodisabled if the material ONLY has stuffables, and otherwise should be toggled off by default to increase initialusability. You can help RimWorld Wiki by improving it. |
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, 300 for SMVs) + 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 |
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 |
Tox shell | 10 + 10 | Crafted resources - Mortar shell |
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 |
The above documentation is transcluded from Template:Ingredient List/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |