Difference between revisions of "Template:Ingredient List Row"

From RimWorld Wiki
Jump to navigation Jump to search
(show the header even if the table is collapsed)
(individual toggles)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{{#ifexist:{{{?Name}}} |
 
{{#ifexist:{{{?Name}}} |
<tr class="mw-collapsible {{#if: {{{noCollapse|}}}||mw-collapsed}}" id="mw-customcollapsible-ingredient-list">
+
<tr class="mw-collapsible {{#if: {{{noCollapse|}}}||mw-collapsed}}" id="mw-customcollapsible-ingredient-list-{{#replace:{{#var:name}}|<nowiki> </nowiki>}}">
 
! {{DLC Icons|{{{?Name}}}}}
 
! {{DLC Icons|{{{?Name}}}}}
 
{{!}} {{#ifeq: {{{?R1|-}}} | {{#var:name}} | {{{?R1a}}}|<!--
 
{{!}} {{#ifeq: {{{?R1|-}}} | {{#var:name}} | {{{?R1a}}}|<!--

Revision as of 09:58, 12 December 2023

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

This template is only ever called as part of Template:Ingredient List. It uses the variables provided by the different #asks in that template to create sections of the table that the primary template then assembles into one table.

Example usage

This template isn't designed to be used in isolation, so as an example we'll show {{Ingredient List|Steel}}

  • Product Ingredients Type [ExpandCollapse]

















































































































































  • And {{Ingredient List|Patchleather}}

  • Product Ingredients Type [ExpandCollapse]