Difference between revisions of "Template:Recipe List Row"

From RimWorld Wiki
Jump to navigation Jump to search
(replaced type column with Required Research)
(proper links)
Line 4: Line 4:
 
| data-sort-value="{{#vardefineecho:cumulatedAmount|{{#expr:{{{R1a}}}{{#if:{{{R2a}}}|+{{{R2a}}}}}{{#if:{{{R3a}}}|+{{{R3a}}}}}{{#if:{{{R4a}}}|+{{{R4a}}}}}{{#if:{{{R5a}}}|+{{{R5a}}}}}{{#if:{{{R6a}}}|+{{{R6a}}}}}}}}}" | {{Required Resources|{{{?Name}}}|sep= +|simple=1}}  
 
| data-sort-value="{{#vardefineecho:cumulatedAmount|{{#expr:{{{R1a}}}{{#if:{{{R2a}}}|+{{{R2a}}}}}{{#if:{{{R3a}}}|+{{{R3a}}}}}{{#if:{{{R4a}}}|+{{{R4a}}}}}{{#if:{{{R5a}}}|+{{{R5a}}}}}{{#if:{{{R6a}}}|+{{{R6a}}}}}}}}}" | {{Required Resources|{{{?Name}}}|sep= +|simple=1}}  
 
| {{#vardefine:efficiency|{{Q|{{#var:name}}|Work Speed Factor}}}}{{Align Ticks|{{#expr:{{formatnum:{{{?Work}}}|R}}/{{#var:efficiency|1}} round 0}} }}
 
| {{#vardefine:efficiency|{{Q|{{#var:name}}|Work Speed Factor}}}}{{Align Ticks|{{#expr:{{formatnum:{{{?Work}}}|R}}/{{#var:efficiency|1}} round 0}} }}
| {{#if:{{{?Tech}}}|- [[{{{?Tech}}}]] }}<!--
+
| {{#if:{{{?Tech}}}| [[Research#{{{?Tech}}}|{{{?Tech}}}]] | – }}<!--
 
-->{{#if: {{#vardefineecho:amountBulk|{{Q|{{{?Name}}}|Bulk Product Amount}}}} |
 
-->{{#if: {{#vardefineecho:amountBulk|{{Q|{{{?Name}}}|Bulk Product Amount}}}} |
 
<tr style="text-align:left;">
 
<tr style="text-align:left;">
Line 10: Line 10:
 
{{!}} data-sort-value="{{#expr:{{#var:cumulatedAmount}}*{{#var:amountBulk}}/{{#var:amount|1}} }}" {{!}} {{Required Resources|{{{?Name}}}|sep=&nbsp;+|simple=1|{{#var:amountBulk}}/{{#var:amount|1}}}}
 
{{!}} data-sort-value="{{#expr:{{#var:cumulatedAmount}}*{{#var:amountBulk}}/{{#var:amount|1}} }}" {{!}} {{Required Resources|{{{?Name}}}|sep=&nbsp;+|simple=1|{{#var:amountBulk}}/{{#var:amount|1}}}}
 
{{!}} {{Align Ticks|{{#expr:{{formatnum:{{{?Work}}}|R}}/{{#var:efficiency|1}}*{{#var:amountBulk}}/{{#var:amount|1}} round 0}} }}
 
{{!}} {{Align Ticks|{{#expr:{{formatnum:{{{?Work}}}|R}}/{{#var:efficiency|1}}*{{#var:amountBulk}}/{{#var:amount|1}} round 0}} }}
{{!}} {{#if:{{{?Tech}}}|- [[{{{?Tech}}}]] }}
+
{{!}} {{#if:{{{?Tech}}}| [[Research#{{{?Tech}}}|{{{?Tech}}}]] | – }}
 
}}</tr>
 
}}</tr>
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Revision as of 01:38, 30 December 2022

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

This template is only ever called as part of Template:Recipe 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 {{Recipe List|Fabrication bench}}

  • Name Materials Work to Make Required Research Type
    Advanced component Advanced component Component 1 + Steel 20 + Plasteel 10 + Gold 3 010,000 ticks (2.78 mins) Advanced fabrication
    Component Component Steel 12 005,000 ticks (1.39 mins)
    Charge lance Charge lance Plasteel 60 + Advanced component 3 060,000 ticks (16.67 mins) Pulse charged munitions
    Charge rifle Charge rifle Plasteel 50 + Advanced component 2 045,000 ticks (12.5 mins) Pulse charged munitions
    Marine armor Marine armor Plasteel 100 + Uranium 20 + Advanced component 4 060,000 ticks (16.67 mins) Marine armor
    Marine helmet Marine helmet Plasteel 40 + Advanced component 1 021,000 ticks (5.83 mins) Marine armor
    Recon armor Recon armor Plasteel 80 + Uranium 10 + Advanced component 3 045,000 ticks (12.5 mins) Recon armor
    Recon helmet Recon helmet Plasteel 30 + Advanced component 1 015,750 ticks (4.38 mins) Recon armor
    Bionic arm Bionic arm Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Bionic replacements
    Bionic ear Bionic ear Plasteel 10 + Advanced component 3 026,000 ticks (7.22 mins) Bionic replacements
    Bionic eye Bionic eye Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Bionic replacements
    Bionic heart Bionic heart Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Bionic replacements
    Bionic leg Bionic leg Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Bionic replacements
    Bionic spine Bionic spine Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Bionic replacements
    Bionic stomach Bionic stomach Plasteel 10 + Advanced component 3 026,000 ticks (7.22 mins) Bionic replacements
    Bionic tongue Bionic tongue Plasteel 8 + Advanced component 2 026,000 ticks (7.22 mins) Bionic replacements
    Integrator headset Integrator headset Content added by the Biotech DLC Plasteel 50 + Component 4 + Advanced component 4 + Powerfocus chip 1 015,750 ticks (4.38 mins) High mechtech
    Mechlord helmet Mechlord helmet Content added by the Biotech DLC Plasteel 120 + Advanced component 6 + Nano structuring chip 2 015,750 ticks (4.38 mins) Ultra mechtech
    Mechlord suit Mechlord suit Content added by the Biotech DLC Plasteel 120 + Advanced component 8 + Nano structuring chip 2 + Powerfocus chip 1 060,000 ticks (16.67 mins) Ultra mechtech
    Detoxifier kidney Detoxifier kidney Content added by the Biotech DLC Plasteel 15 + Advanced component 2 026,000 ticks (7.22 mins) Toxin filtration
    Detoxifier lung Detoxifier lung Content added by the Biotech DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Toxin filtration
    Cataphract armor Cataphract armor Content added by the Royalty DLC Plasteel 150 + Uranium 50 + Advanced component 6 075,000 ticks (20.83 mins) Cataphract armor
    Cataphract helmet Cataphract helmet Content added by the Royalty DLC Plasteel 50 + Advanced component 1 026,250 ticks (7.29 mins) Cataphract armor
    Grenadier armor Grenadier armor Content added by the Royalty DLC Plasteel 100 + Uranium 20 + Advanced component 4 + Steel 75 + Component 4 060,000 ticks (16.67 mins) Marine armor
    Gunlink Gunlink Content added by the Royalty DLC Plasteel 10 + Advanced component 1 015,750 ticks (4.38 mins) Gunlink
    Locust armor Locust armor Content added by the Royalty DLC Plasteel 120 + Uranium 10 + Advanced component 3 + Component 3 + Chemfuel 100 045,000 ticks (12.5 mins) Jump packs, Recon armor
    Phoenix armor Phoenix armor Content added by the Royalty DLC Plasteel 150 + Uranium 50 + Advanced component 6 + Steel 75 + Component 4 + Chemfuel 40 075,000 ticks (20.83 mins) Cataphract armor
    Prestige cataphract armor Prestige cataphract armor Content added by the Royalty DLC Plasteel 190 + Uranium 50 + Advanced component 6 + Gold 180 150,000 ticks (41.67 mins) Cataphract armor
    Prestige cataphract helmet Prestige cataphract helmet Content added by the Royalty DLC Plasteel 75 + Advanced component 1 + Gold 90 052,500 ticks (14.58 mins) Cataphract armor
    Prestige marine armor Prestige marine armor Content added by the Royalty DLC Plasteel 120 + Uranium 20 + Advanced component 4 + Gold 100 120,000 ticks (33.33 mins) Marine armor
    Prestige marine helmet Prestige marine helmet Content added by the Royalty DLC Plasteel 50 + Advanced component 1 + Gold 50 042,000 ticks (11.67 mins) Marine armor
    Prestige recon armor Prestige recon armor Content added by the Royalty DLC Plasteel 100 + Uranium 10 + Advanced component 3 + Gold 90 090,000 ticks (25 mins) Recon armor
    Prestige recon helmet Prestige recon helmet Content added by the Royalty DLC Plasteel 40 + Advanced component 1 + Gold 40 015,750 ticks (4.38 mins) Recon armor
    Aesthetic nose Aesthetic nose Content added by the Royalty DLC Plasteel 10 + Advanced component 2 026,000 ticks (7.22 mins) Flesh shaping
    Aesthetic shaper Aesthetic shaper Content added by the Royalty DLC Plasteel 15 + Advanced component 3 026,000 ticks (7.22 mins) Flesh shaping
    Armorskin gland Armorskin gland Content added by the Royalty DLC Plasteel 20 + Advanced component 6 026,000 ticks (7.22 mins) Skin hardening
    Circadian assistant Circadian assistant Content added by the Royalty DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Circadian influence
    Circadian half-cycler Circadian half-cycler Content added by the Royalty DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Circadian influence
    Coagulator Coagulator Content added by the Royalty DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Healing factors
    Gastro-analyzer Gastro-analyzer Content added by the Royalty DLC Plasteel 15 + Advanced component 3 026,000 ticks (7.22 mins) Molecular analysis
    Healing enhancer Healing enhancer Content added by the Royalty DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Healing factors
    Immunoenhancer Immunoenhancer Content added by the Royalty DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Molecular analysis
    Learning assistant Learning assistant Content added by the Royalty DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Neural computation
    Love enhancer Love enhancer Content added by the Royalty DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Flesh shaping
    Neurocalculator Neurocalculator Content added by the Royalty DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Neural computation
    Nuclear stomach Nuclear stomach Content added by the Royalty DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Artificial metabolism
    Reprocessor stomach Reprocessor stomach Content added by the Royalty DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Artificial metabolism
    Sterilizing stomach Sterilizing stomach Content added by the Royalty DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Artificial metabolism
    Stoneskin gland Stoneskin gland Content added by the Royalty DLC Plasteel 25 + Advanced component 8 026,000 ticks (7.22 mins) Skin hardening
    Toughskin gland Toughskin gland Content added by the Royalty DLC Plasteel 15 + Advanced component 4 026,000 ticks (7.22 mins) Skin hardening
  • And {{Recipe List|Fueled smithy}}

  • Name Materials Work to Make Required Research Type
    Breach axe Breach axe Stuff 50 (Metallic) 005,000 ticks (1.39 mins) Smithing
    Club Club Stuff 40 (Metallic/Woody/Stony) 001,200 ticks (20 secs)
    Gladius Gladius Stuff 50 (Metallic/Woody) 012,000 ticks (3.33 mins) Smithing
    Greatbow Greatbow Wood 60 009,000 ticks (2.5 mins) Greatbow
    Ikwa Ikwa Stuff 50 (Metallic/Woody) 005,000 ticks (1.39 mins) Smithing
    Knife Knife Stuff 30 (Metallic) 001,800 ticks (30 secs) Smithing
    Longsword Longsword Stuff 100 (Metallic/Woody) 018,000 ticks (5 mins) Long blades
    Mace Mace Stuff 50 (Metallic/Woody) 006,000 ticks (1.67 mins) Smithing
    Pila Pila Wood 70 007,000 ticks (1.94 mins) Smithing
    Recurve bow Recurve bow Wood 40 005,000 ticks (1.39 mins) Recurve bow
    Short bow Short bow Wood 30 002,400 ticks (40 secs)
    Spear Spear Stuff 75 (Metallic/Woody) 012,000 ticks (3.33 mins) Long blades
    Plate armor Plate armor Stuff 170 (Metallic/Woody) 038,000 ticks (10.56 mins) Plate armor
    Simple helmet Simple helmet Stuff 40 (Metallic) 003,200 ticks (53.33 secs) Smithing
    Kid helmet Kid helmet Content added by the Biotech DLC Stuff 20 (Metallic) 002,000 ticks (33.33 secs) Smithing
    Torture crown Torture crown Content added by the Ideology DLC Stuff 25 (Metallic/Woody) 001,200 ticks (20 secs)
    Harp Harp Content added by the Royalty DLC Wood 150 018,000 ticks (5 mins) Harp
    Harpsichord Harpsichord Content added by the Royalty DLC Wood 250 032,000 ticks (8.89 mins) Harpsichord
    Piano Piano Content added by the Royalty DLC Steel 120 + Wood 220 050,000 ticks (13.89 mins) Piano
    Axe Axe Content added by the Royalty DLC Stuff 50 (Metallic/Woody) 007,000 ticks (1.94 mins) Smithing
    Warhammer Warhammer Content added by the Royalty DLC Stuff 150 (Metallic/Woody) 018,000 ticks (5 mins) Long blades
    Coronet Coronet Content added by the Royalty DLC Stuff 50 (Metallic) 008,000 ticks (2.22 mins) Royal apparel
    Crown Crown Content added by the Royalty DLC Stuff 75 (Metallic) 012,000 ticks (3.33 mins) Royal apparel