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)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
|-
+
{{#ifexist:{{{?Name}}} |
{{#ifexist:{{{?Name}}}|
+
<tr class="mw-collapsible {{#if: {{{noCollapse|}}}||mw-collapsed}}" id="mw-customcollapsible-ingredient-list">
 
! {{DLC Icons|{{{?Name}}}}}
 
! {{DLC Icons|{{{?Name}}}}}
{{!}} {{#ifeq: {{{?R1|-}}}   | {{#var:name}} | {{{?R1a}}}|<!--
+
{{!}} {{#ifeq: {{{?R1|-}}} | {{#var:name}} | {{{?R1a}}}|<!--
-->{{#ifeq: {{{?R2|-}}} | {{#var:name}} | {{{?R2a}}}|<!--
+
  -->{{#ifeq: {{{?R2|-}}} | {{#var:name}} | {{{?R2a}}}|<!--
-->{{#ifeq: {{{?R3|-}}} | {{#var:name}} | {{{?R3a}}}|<!--
+
  -->{{#ifeq: {{{?R3|-}}} | {{#var:name}} | {{{?R3a}}}|<!--
-->{{#ifeq: {{{?R4|-}}} | {{#var:name}} | {{{?R4a}}}|<!--
+
  -->{{#ifeq: {{{?R4|-}}} | {{#var:name}} | {{{?R4a}}}|<!--
-->{{#ifeq: {{{?R5|-}}} | {{#var:name}} | {{{?R5a}}}|<!--
+
  -->{{#ifeq: {{{?R5|-}}} | {{#var:name}} | {{{?R5a}}}|<!--
-->{{#ifeq: {{{?R6|-}}} | {{#var:name}} | {{{?R6a}}}}} }} }} }} }} }}
+
  -->{{#ifeq: {{{?R6|-}}} | {{#var:name}} | {{{?R6a}}}}} }} }} }} }} }}
 
{{!}} [[{{{?Type}}}]] {{#if:{{{?Type2}}}|- [[{{{?Type2}}}]] }}
 
{{!}} [[{{{?Type}}}]] {{#if:{{{?Type2}}}|- [[{{{?Type2}}}]] }}
 +
</tr>
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Revision as of 09:52, 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]
    Grand sculpture Art
    Large sculpture Art
    Small sculpture Art
    Animal sleeping box Building - Furniture
    Bed Building - Furniture
    Bookcase Building - Furniture
    Dining chair Building - Furniture
    Double bed Building - Furniture
    Dresser Building - Furniture
    End table Building - Furniture
    Flood light Building - Furniture
    Hospital bed Building - Furniture
    Plant pot Building - Furniture
    Royal bed Building - Furniture
    Shelf Building - Furniture
    Small bookcase Building - Furniture
    Small shelf Building - Furniture
    Standing lamp Building - Furniture
    Stool Building - Furniture
    Sun lamp Building - Furniture
    Table (1x2) Building - Furniture
    Table (2x2) Building - Furniture
    Table (2x4) Building - Furniture
    Table (3x3) Building - Furniture
    Wall lamp Building - Furniture
    Comms console Building - Misc
    Cryptosleep casket Building - Misc
    Egg box Building - Misc
    Firefoam popper Building - Misc
    Ground-penetrating scanner Building - Misc
    Long-range mineral scanner Building - Misc
    Moisture pump Building - Misc
    Multi-analyzer Building - Misc
    Orbital trade beacon Building - Misc
    Pen marker Building - Misc
    Pod launcher Building - Misc
    Sarcophagus Building - Misc
    Tool cabinet Building - Misc
    Transport pod Building - Misc
    Urn Building - Misc
    Vitals monitor Building - Misc
    Battery Building - Power
    Chemfuel powered generator Building - Power
    Geothermal generator Building - Power
    Hidden conduit Building - Power
    Power conduit Building - Power
    Power switch Building - Power
    Solar generator Building - Power
    Watermill generator Building - Power
    Waterproof conduit Building - Power
    Wind turbine Building - Power
    Wood-fired generator Building - Power
    Art bench Building - Production
    Biofuel refinery Building - Production
    Brewery Building - Production
    Butcher table Building - Production
    Deep drill Building - Production
    Drug lab Building - Production
    Electric crematorium Building - Production
    Electric smelter Building - Production
    Electric smithy Building - Production
    Electric stove Building - Production
    Electric tailor bench Building - Production
    Fabrication bench Building - Production
    Fermenting barrel Building - Production
    Fueled smithy Building - Production
    Fueled stove Building - Production
    Hand tailor bench Building - Production
    Hi-tech research bench Building - Production
    Hopper Building - Production
    Hydroponics basin Building - Production
    Machining table Building - Production
    Nutrient paste dispenser Building - Production
    Simple research bench Building - Production
    Stonecutter's table Building - Production
    Billiards table Building - Recreation
    Chess table Building - Recreation
    Flatscreen television Building - Recreation
    Game-of-Ur board Building - Recreation
    Hoopstone ring Building - Recreation
    Horseshoes pin Building - Recreation
    Poker table Building - Recreation
    Tube television Building - Recreation
    Autocannon turret Building - Security
    Barricade Building - Security
    Foam turret Building - Security
    Mini-turret Building - Security
    Mortar Building - Security
    Rocketswarm launcher Building - Security
    Spike trap Building - Security
    Uranium slug turret Building - Security
    Sensor cluster Building - Ship
    Ship computer core Building - Ship
    Ship cryptosleep casket Building - Ship
    Ship engine Building - Ship
    Ship reactor Building - Ship
    Ship structural beam Building - Ship
    Autodoor Building - Structure
    Column Building - Structure
    Door Building - Structure
    Fence Building - Structure
    Fence gate Building - Structure
    Ornate door Building - Structure
    Wall Building - Structure
    Cooler Building - Temperature
    Heater Building - Temperature
    Vent Building - Temperature
    Advanced component Crafted resources
    Component Crafted resources
    EMP shell Crafted resources - Mortar shell
    Firefoam shell Crafted resources - Mortar shell
    High-explosive shell Crafted resources - Mortar shell
    Incendiary shell Crafted resources - Mortar shell
    Smoke shell Crafted resources - Mortar shell
    Assault rifle Equipment - Weapons
    Autopistol Equipment - Weapons
    Bolt-action rifle Equipment - Weapons
    Breach axe Equipment - Weapons
    Chain shotgun Equipment - Weapons
    Club Equipment - Weapons
    EMP grenades Equipment - Weapons
    EMP launcher Equipment - Weapons
    Frag grenades Equipment - Weapons
    Gladius Equipment - Weapons
    Heavy SMG Equipment - Weapons
    Ikwa Equipment - Weapons
    Incendiary launcher Equipment - Weapons
    Knife Equipment - Weapons
    LMG Equipment - Weapons
    Longsword Equipment - Weapons
    Mace Equipment - Weapons
    Machine pistol Equipment - Weapons
    Minigun Equipment - Weapons
    Pump shotgun Equipment - Weapons
    Revolver Equipment - Weapons
    Smoke launcher Equipment - Weapons
    Sniper rifle Equipment - Weapons
    Spear Equipment - Weapons
    Concrete Floor
    Paved tile Floor
    Steel tile Floor
    Sterile tile Floor
    Flak helmet Gear - Armor
    Flak jacket Gear - Armor
    Flak pants Gear - Armor
    Flak vest Gear - Armor
    Plate armor Gear - Armor
    Simple helmet Gear - Armor
    Firefoam pop pack Gear - Utility
    Shield belt Gear - Utility
    Smokepop pack Gear - Utility
    Centipede blaster Mechanoid
    Centipede burner Mechanoid
    Centipede gunner Mechanoid
    Lancer Mechanoid
    Pikeman Mechanoid
    Scyther Mechanoid
    Cochlear implant Medical Items - Body Parts
    Joywire Medical Items - Body Parts
    Painstopper Medical Items - Body Parts
    Power claw Medical Items - Body Parts
    Prosthetic arm Medical Items - Body Parts
    Prosthetic heart Medical Items - Body Parts
    Prosthetic leg Medical Items - Body Parts
    Atmospheric heater Content added by the Anomaly DLC Building - Anomaly (Buildings)
    Bioferrite harvester Content added by the Anomaly DLC Building - Anomaly (Buildings)
    Bioferrite shaper Content added by the Anomaly DLC Building - Anomaly (Buildings)
    Electric inhibitor Content added by the Anomaly DLC Building - Anomaly (Buildings)
    Electroharvester Content added by the Anomaly DLC Building - Anomaly (Buildings)
    Holding platform Content added by the Anomaly DLC Building - Anomaly (Buildings)
    Serum lab Content added by the Anomaly DLC Building - Anomaly (Buildings)
    Shard inhibitor Content added by the Anomaly DLC Building - Anomaly (Buildings)
    Sleep suppressor Content added by the Anomaly DLC Building - Anomaly (Buildings)
    Bioferrite generator Content added by the Anomaly DLC Building - Power
    Tactical turret Content added by the Anomaly DLC Building - Security
    Hellcat rifle Content added by the Anomaly DLC Equipment - Weapons
    Incinerator Content added by the Anomaly DLC Equipment - Weapons
    Turret pack Content added by the Anomaly DLC Gear - Utility
    Band node Content added by the Biotech DLC Building - Biotech (Buildings)
    Deathrest accelerator Content added by the Biotech DLC Building - Biotech (Buildings)
    Deathrest casket Content added by the Biotech DLC Building - Biotech (Buildings)
    Gene assembler Content added by the Biotech DLC Building - Biotech (Buildings)
    Gene bank Content added by the Biotech DLC Building - Biotech (Buildings)
    Gene extractor Content added by the Biotech DLC Building - Biotech (Buildings)
    Gene processor Content added by the Biotech DLC Building - Biotech (Buildings)
    Glucosoid pump Content added by the Biotech DLC Building - Biotech (Buildings)
    Growth vat Content added by the Biotech DLC Building - Biotech (Buildings)
    Hemogen amplifier Content added by the Biotech DLC Building - Biotech (Buildings)
    Hemopump Content added by the Biotech DLC Building - Biotech (Buildings)
    Large mech gestator Content added by the Biotech DLC Building - Biotech (Buildings)
    Large mech recharger Content added by the Biotech DLC Building - Biotech (Buildings)
    Mech booster Content added by the Biotech DLC Building - Biotech (Buildings)
    Mech gestator Content added by the Biotech DLC Building - Biotech (Buildings)
    Mech recharger Content added by the Biotech DLC Building - Biotech (Buildings)
    Mechband antenna Content added by the Biotech DLC Building - Biotech (Buildings)
    Mechband dish Content added by the Biotech DLC Building - Biotech (Buildings)
    Pollution pump Content added by the Biotech DLC Building - Biotech (Buildings)
    Psychofluid pump Content added by the Biotech DLC Building - Biotech (Buildings)
    Subcore encoder Content added by the Biotech DLC Building - Biotech (Buildings)
    Subcore ripscanner Content added by the Biotech DLC Building - Biotech (Buildings)
    Subcore softscanner Content added by the Biotech DLC Building - Biotech (Buildings)
    Wastepack atomizer Content added by the Biotech DLC Building - Biotech (Buildings)
    Baby decoration Content added by the Biotech DLC Building - Furniture
    Crib Content added by the Biotech DLC Building - Furniture
    School desk Content added by the Biotech DLC Building - Furniture
    Toy box Content added by the Biotech DLC Building - Furniture
    Crashed mechanitor ship Content added by the Biotech DLC Building - Misc
    Toxifier generator Content added by the Biotech DLC Building - Power
    Basic subcore Content added by the Biotech DLC Crafted resources
    High subcore Content added by the Biotech DLC Crafted resources
    Standard subcore Content added by the Biotech DLC Crafted resources
    Tox shell Content added by the Biotech DLC Crafted resources - Mortar shell
    Tox grenades Content added by the Biotech DLC Equipment - Weapons
    Toxbomb launcher Content added by the Biotech DLC Equipment - Weapons
    Kid helmet Content added by the Biotech DLC Gear - Armor
    Airwire headset Content added by the Biotech DLC Gear - Clothing
    Array headset Content added by the Biotech DLC Gear - Clothing
    Gas mask Content added by the Biotech DLC Gear - Clothing
    Bandwidth pack Content added by the Biotech DLC Gear - Utility
    Control pack Content added by the Biotech DLC Gear - Utility
    Tox pack Content added by the Biotech DLC Gear - Utility
    Agrihand Content added by the Biotech DLC Mechanoid
    Centurion Content added by the Biotech DLC Mechanoid
    Cleansweeper Content added by the Biotech DLC Mechanoid
    Constructoid Content added by the Biotech DLC Mechanoid
    Diabolus Content added by the Biotech DLC Mechanoid
    Fabricor Content added by the Biotech DLC Mechanoid
    Lifter Content added by the Biotech DLC Mechanoid
    Militor Content added by the Biotech DLC Mechanoid
    Paramedic Content added by the Biotech DLC Mechanoid
    Scorcher Content added by the Biotech DLC Mechanoid
    Tunneler Content added by the Biotech DLC Mechanoid
    War queen Content added by the Biotech DLC Mechanoid
    War urchin Content added by the Biotech DLC Mechanoid
    Terror sculpture Content added by the Ideology DLC Art
    Spikecore floor-star (broad) Content added by the Ideology DLC Building - Floor
    Spikecore floor-star (medium) Content added by the Ideology DLC Building - Floor
    Bonsai pot Content added by the Ideology DLC Building - Furniture
    Darklight brazier Content added by the Royalty DLCContent added by the Ideology DLC Building - Furniture
    Slab bed Content added by the Ideology DLC Building - Furniture
    Slab double bed Content added by the Ideology DLC Building - Furniture
    Autobong Content added by the Ideology DLC Building - Ideology (Buildings)
    Biosculpter pod Content added by the Ideology DLC Building - Ideology (Buildings)
    Christmas tree Content added by the Ideology DLC Building - Ideology (Buildings)
    Gibbet cage Content added by the Ideology DLC Building - Ideology (Buildings)
    Grand altar Content added by the Ideology DLC Building - Ideology (Buildings)
    Ideogram Content added by the Ideology DLC Building - Ideology (Buildings)
    Large altar Content added by the Ideology DLC Building - Ideology (Buildings)
    Lectern Content added by the Ideology DLC Building - Ideology (Buildings)
    Lightball Content added by the Ideology DLC Building - Ideology (Buildings)
    Loudspeaker Content added by the Ideology DLC Building - Ideology (Buildings)
    Medium altar Content added by the Ideology DLC Building - Ideology (Buildings)
    Neural supercharger Content added by the Ideology DLC Building - Ideology (Buildings)
    Pew Content added by the Ideology DLC Building - Ideology (Buildings)
    Reliquary Content added by the Ideology DLC Building - Ideology (Buildings)
    Skullspike Content added by the Ideology DLC Building - Ideology (Buildings)
    Sleep accelerator Content added by the Ideology DLC Building - Ideology (Buildings)
    Small altar Content added by the Ideology DLC Building - Ideology (Buildings)
    Styling station Content added by the Ideology DLC Building - Ideology (Buildings)
    Hex tile Content added by the Ideology DLC Floor
    Spikecore plates Content added by the Ideology DLC Floor
    Slave collar Content added by the Ideology DLC Gear - Clothing
    Slicecap Content added by the Ideology DLC Gear - Clothing
    Torture crown Content added by the Ideology DLC Gear - Clothing
    Visage mask Content added by the Ideology DLC Gear - Clothing
    Brazier Content added by the Royalty DLC Building - Furniture
    Grand meditation throne Content added by the Royalty DLC Building - Furniture
    Meditation throne Content added by the Royalty DLC Building - Furniture
    Large nature shrine Content added by the Royalty DLC Building - Misc
    Ship landing beacon Content added by the Royalty DLC Building - Misc
    Small nature shrine Content added by the Royalty DLC Building - Misc
    Piano Content added by the Royalty DLC Building - Recreation
    Axe Content added by the Royalty DLC Equipment - Weapons
    Warhammer Content added by the Royalty DLC Equipment - Weapons
    Grenadier armor Content added by the Royalty DLC Gear - Armor
    Phoenix armor Content added by the Royalty DLC Gear - Armor
    Coronet Content added by the Royalty DLC Gear - Clothing
    Crown Content added by the Royalty DLC Gear - Clothing
    Stellic crown Content added by the Royalty DLC Gear - Clothing
    Drill arm Content added by the Royalty DLC Medical Items - Body Parts
    Elbow blade Content added by the Royalty DLC Medical Items - Body Parts
    Field hand Content added by the Royalty DLC Medical Items - Body Parts
    Hand talon Content added by the Royalty DLC Medical Items - Body Parts
    Knee spike Content added by the Royalty DLC Medical Items - Body Parts
    Mindscrew Content added by the Royalty DLC Medical Items - Body Parts
    Venom fangs Content added by the Royalty DLC Medical Items - Body Parts
    Venom talon Content added by the Royalty DLC Medical Items - Body Parts
  • And {{Ingredient List|Patchleather}}

  • Product Ingredients Type [ExpandCollapse]
    Animal bed Building - Furniture
    Armchair Building - Furniture
    Bedroll Building - Furniture
    Couch Building - Furniture
    Double bedroll Building - Furniture
    Sandbags Building - Security
    Animal flap Building - Structure
    Bowler hat Gear - Clothing
    Button-down shirt Gear - Clothing
    Cowboy hat Gear - Clothing
    Duster Gear - Clothing
    Hood Gear - Clothing
    Jacket Gear - Clothing
    Pants Gear - Clothing
    Parka Gear - Clothing
    Robe Gear - Clothing
    T-shirt Gear - Clothing
    Tribalwear Gear - Clothing
    Patchleather Textile - Leather
    Lab coat Content added by the Anomaly DLC Gear - Clothing
    Cape Content added by the Royalty DLCContent added by the Biotech DLC Gear - Clothing
    Heavy bandolier Content added by the Biotech DLC Gear - Clothing
    Kid pants Content added by the Biotech DLC Gear - Clothing
    Kid parka Content added by the Biotech DLC Gear - Clothing
    Kid romper Content added by the Biotech DLC Gear - Clothing
    Kid shirt Content added by the Biotech DLC Gear - Clothing
    Kid tribalwear Content added by the Biotech DLC Gear - Clothing
    Sash Content added by the Biotech DLC Gear - Clothing
    Drum Content added by the Ideology DLC Building - Ideology (Buildings)
    Kneel pillow Content added by the Ideology DLC Building - Ideology (Buildings)
    Kneel sheet Content added by the Ideology DLC Building - Ideology (Buildings)
    Authority cap Content added by the Ideology DLC Gear - Clothing
    Shadecone Content added by the Ideology DLC Gear - Clothing
    Slave body strap Content added by the Ideology DLC Gear - Clothing
    Slave collar Content added by the Ideology DLC Gear - Clothing
    Tailcap Content added by the Ideology DLC Gear - Clothing
    Drape Content added by the Royalty DLC Building - Furniture
    Beret Content added by the Royalty DLC Gear - Clothing
    Corset Content added by the Royalty DLC Gear - Clothing
    Formal shirt Content added by the Royalty DLC Gear - Clothing
    Formal vest Content added by the Royalty DLC Gear - Clothing
    Ladies hat Content added by the Royalty DLC Gear - Clothing
    Prestige robe Content added by the Royalty DLC Gear - Clothing
    Top hat Content added by the Royalty DLC Gear - Clothing