Difference between revisions of "Template:Recipe List Row"
Jump to navigation
Jump to search
(Merged stuff tags column into materials. sorting and formatting) |
m (account for even smaller numbers) |
||
Line 3: | Line 3: | ||
! style="text-align:left;" | {{Icon Small|{{{?Name}}} }} [[{{{?Name}}}]]{{#ifeq: {{Q|{{{?Name}}}|From DLC}}|Ideology (DLC)|{{IdeologyIcon}}}} {{#ifeq: {{Q|{{{?Name}}}|From DLC}}|Royalty (DLC)|{{RoyaltyIcon}}}} | ! style="text-align:left;" | {{Icon Small|{{{?Name}}} }} [[{{{?Name}}}]]{{#ifeq: {{Q|{{{?Name}}}|From DLC}}|Ideology (DLC)|{{IdeologyIcon}}}} {{#ifeq: {{Q|{{{?Name}}}|From DLC}}|Royalty (DLC)|{{RoyaltyIcon}}}} | ||
| data-sort-value="{{#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="{{#expr: {{{?R1a}}} {{#if: {{{?R2a}}} | + {{{?R2a}}} }} {{#if: {{{?R3a}}} | + {{{?R3a}}} }} {{#if: {{{?R4a}}} | + {{{?R4a}}} }} {{#if: {{{?R5a}}} | + {{{?R5a}}} }} {{#if: {{{?R6a}}} | + {{{?R6a}}} }} }}" | {{Required Resources|{{{?Name}}}|sep= +|simple=1}} | ||
− | | {{#ifexpr: {{formatnum:{{{?Work}}} < | + | | {{#ifexpr: {{formatnum:{{{?Work}}} < 10|R}} | {{0|000,00}} | {{#ifexpr: {{formatnum:{{{?Work}}} < 100|R}} | {{0|000,0}} | {{#ifexpr: {{formatnum:{{{?Work}}} < 1000|R}} | {{0|000,}} | {{#ifexpr: {{formatnum:{{{?Work}}} < 10000|R}} | {{0|00}} | {{#ifexpr: {{formatnum:{{{?Work}}} < 100000|R}} | {{0}} }} }} }} }} }}{{Ticks|{{{?Work}}} }} |
| [[{{{?Type}}}]] {{#if:{{{?Type2}}}|- [[{{{?Type2}}}]] }} | | [[{{{?Type}}}]] {{#if:{{{?Type2}}}|- [[{{{?Type2}}}]] }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |
Revision as of 22:35, 10 August 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 |
---|---|---|---|---|
![]() |
![]() |
ticks (1.39 mins) | 5,000Equipment - Weapons | |
![]() |
![]() |
ticks (20 secs) | 1,200Equipment - Weapons | |
![]() |
![]() |
ticks (3.33 mins) | 12,000Equipment - Weapons | |
![]() |
![]() |
ticks (2.5 mins) | 9,000Equipment - Weapons | |
![]() |
![]() |
ticks (1.39 mins) | 5,000Equipment - Weapons | |
![]() |
![]() |
ticks (30 secs) | 1,800Equipment - Weapons | |
![]() |
![]() |
ticks (5 mins) | 18,000Equipment - Weapons | |
![]() |
![]() |
ticks (1.67 mins) | 6,000Equipment - Weapons | |
![]() |
![]() |
ticks (1.94 mins) | 7,000Equipment - Weapons | |
![]() |
![]() |
ticks (1.39 mins) | 5,000Equipment - Weapons | |
![]() |
![]() |
ticks (40 secs) | 2,400Equipment - Weapons | |
![]() |
![]() |
ticks (3.33 mins) | 12,000Equipment - Weapons | |
![]() |
![]() |
ticks (10.56 mins) | 38,000Gear - Armor | |
![]() |
![]() |
ticks (53.33 secs) | 3,200Gear - Armor | |
![]() |
![]() |
ticks (33.33 secs) | 2,000Gear - Armor | |
![]() ![]() |
![]() |
ticks (20 secs) | 1,200Gear - Clothing | |
![]() ![]() |
![]() |
ticks (5 mins) | 18,000Building - Recreation | |
![]() ![]() |
![]() |
ticks (8.89 mins) | 32,000Building - Recreation | |
![]() ![]() |
![]() ![]() |
ticks (13.89 mins) | 50,000Building - Recreation | |
![]() ![]() |
![]() |
ticks (1.94 mins) | 7,000Equipment - Weapons | |
![]() ![]() |
![]() |
ticks (5 mins) | 18,000Equipment - Weapons | |
![]() ![]() |
![]() |
ticks (2.22 mins) | 8,000Gear - Clothing | |
![]() ![]() |
![]() |
ticks (3.33 mins) | 12,000Gear - Clothing |
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. |