Difference between revisions of "Template:Recipe List Row"
Jump to navigation
Jump to search
(replaced type column with Required Research) |
|||
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: {{#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= +|simple=1|{{#var:amountBulk}}/{{#var:amount|1}}}} | {{!}} data-sort-value="{{#expr:{{#var:cumulatedAmount}}*{{#var:amountBulk}}/{{#var:amount|1}} }}" {{!}} {{Required Resources|{{{?Name}}}|sep= +|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}}}]] }} |
}}</tr> | }}</tr> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |
Revision as of 01:35, 30 December 2022
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}}
And {{Recipe List|Fueled smithy}}
Name | Materials | Work to Make | Required Research | Type |
---|---|---|---|---|
Breach axe | 50 (Metallic, 500 for SMVs) | ticks (1.39 mins) | 5,000- Smithing | |
Club | 40 (Metallic/Woody/Stony, 400 for SMVs) | ticks (20 secs) | 1,200||
Gladius | 50 (Metallic/Woody, 500 for SMVs) | ticks (3.33 mins) | 12,000- Smithing | |
Greatbow | 60 | ticks (2.5 mins) | 9,000- Greatbow | |
Ikwa | 50 (Metallic/Woody, 500 for SMVs) | ticks (1.39 mins) | 5,000- Smithing | |
Knife | 30 (Metallic, 300 for SMVs) | ticks (30 secs) | 1,800- Smithing | |
Longsword | 100 (Metallic/Woody, 1000 for SMVs) | ticks (5 mins) | 18,000- Long blades | |
Mace | 50 (Metallic/Woody, 500 for SMVs) | ticks (1.67 mins) | 6,000- Smithing | |
Pila | 70 | ticks (1.94 mins) | 7,000- Smithing | |
Recurve bow | 40 | ticks (1.39 mins) | 5,000- Recurve bow | |
Short bow | 30 | ticks (40 secs) | 2,400||
Spear | 75 (Metallic/Woody, 750 for SMVs) | ticks (3.33 mins) | 12,000- Long blades | |
Plate armor | 170 (Metallic/Woody, 1700 for SMVs) | ticks (10.56 mins) | 38,000- Plate armor | |
Simple helmet | 40 (Metallic, 400 for SMVs) | ticks (53.33 secs) | 3,200- Smithing | |
Kid helmet | 20 (Metallic, 200 for SMVs) | ticks (33.33 secs) | 2,000- Smithing | |
Torture crown | 25 (Metallic/Woody, 250 for SMVs) | ticks (20 secs) | 1,200||
Harp | 150 | ticks (5 mins) | 18,000- Harp | |
Harpsichord | 250 | ticks (8.89 mins) | 32,000- Harpsichord | |
Piano | 120 + 220 | ticks (13.89 mins) | 50,000- Piano | |
Axe | 50 (Metallic/Woody, 500 for SMVs) | ticks (1.94 mins) | 7,000- Smithing | |
Warhammer | 150 (Metallic/Woody, 1500 for SMVs) | ticks (5 mins) | 18,000- Long blades | |
Coronet | 50 (Metallic, 500 for SMVs) | ticks (2.22 mins) | 8,000- Royal apparel | |
Crown | 75 (Metallic, 750 for SMVs) | ticks (3.33 mins) | 12,000- Royal apparel |
The above documentation is transcluded from Template:Recipe List Row/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. |