Difference between revisions of "Template:Recipe List Row"
Jump to navigation
Jump to search
(Readding type because getting a summary of what a table makes or finding classes of items without it is cancerous.) |
|||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | |- | + | |- style="text-align:left;" |
− | ! | + | ! style="text-align:left;" data-sort-value="{{{?Name}}}" | {{#if:{{#vardefineecho:amount|{{Q|{{{?Name}}}|Product Amount}}}}|{{#var:amount}}× }}{{#vardefineecho:header|{{Icon Small|{{{?Name}}} }} {{DLC Icons|{{{?Name}}}}}}} |
− | | | + | | 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}} }} | |
− | + | | {{#if:{{{?Tech}}}| [[Research#{{{?Tech}}}|{{{?Tech}}}]] | – }} | |
− | + | | [[{{{?Type}}}]] {{#if:{{{?Type2}}}|- [[{{{?Type2}}}]] }}<!-- | |
+ | -->{{#if: {{#vardefineecho:amountBulk|{{Q|{{{?Name}}}|Bulk Product Amount}}}} | | ||
+ | <tr style="text-align:left;"> | ||
+ | ! style="text-align:left;" data-sort-value="{{{?Name}}}" {{!}} {{#var:amountBulk}}× {{#var:header}} | ||
+ | {{!}} 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}} }} | ||
+ | {{!}} {{#if:{{{?Tech}}}| [[Research#{{{?Tech}}}|{{{?Tech}}}]] | – }} | ||
+ | {{!}} [[{{{?Type}}}]] {{#if:{{{?Type2}}}|- [[{{{?Type2}}}]] }} | ||
+ | }}</tr> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |
Latest revision as of 12:28, 25 January 2023
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[edit]
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}}
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. |